Skip to content

Commit af52077

Browse files
committed
Change directory layout
1 parent 23cd049 commit af52077

31 files changed

+38
-22
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ USER root
33
RUN \
44
apk add --no-cache bash nodejs && \
55
curl -sSfLo /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x /usr/bin/jq
6+
RUN ln -s /usr/local/lib/githublint/main.sh /usr/local/bin/githublint
67

78
FROM stage-0 as stage-1
89
USER curl_user
9-
RUN mkdir -p /home/curl_user/githublint /home/curl_user/.githublint
10-
WORKDIR /home/curl_user/githublint
10+
WORKDIR /home/curl_user
11+
RUN mkdir -p .githublint
1112
VOLUME [ "/home/curl_user/.githublint" ]
1213

13-
FROM stage-1 as stage-2
14-
COPY --chown=100 githublint.sh .
15-
COPY --chown=100 lib/ ./lib/
14+
FROM stage-1 as stage-deply
15+
COPY src /usr/local/lib/githublint
1616

17-
FROM stage-2 as stage-prd
17+
FROM stage-deply as stage-prd
1818
LABEL org.opencontainers.image.source=https://github.com/kyash/githublint
19-
ENTRYPOINT [ "./githublint.sh" ]
19+
ENTRYPOINT [ "githublint" ]
2020

2121
FROM stage-1 as stage-dev
2222
USER root

launch_dev_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ function main() {
1717
then
1818
docker build . "${BUILD_OPTS[@]}"
1919
docker run -itd --name "$CONTAINER_NAME" -e GITHUB_TOKEN \
20-
-v "$PWD:/home/curl_user/githublint" \
20+
-v "$PWD:/home/curl_user/project" \
2121
-v "$HOME/.gitconfig:/home/curl_user/.gitconfig" \
2222
-v "$HOME/.ssh:/home/curl_user/.ssh" \
23-
-w "/home/curl_user/githublint" \
23+
-w "/home/curl_user/project" \
2424
-u curl_user \
2525
"$(docker build . -q "${BUILD_OPTS[@]}")" \
2626
bash
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)