fix: add entrypoint.sh
This commit is contained in:
parent
513e50f7f5
commit
9de64c0d8d
@ -12,4 +12,7 @@ ENV GONOSUMDB=gitlab.connectone.pro/*
|
|||||||
WORKDIR /opt/app
|
WORKDIR /opt/app
|
||||||
RUN apk add --no-cache tzdata ca-certificates git openssh
|
RUN apk add --no-cache tzdata ca-certificates git openssh
|
||||||
COPY --from=build /build/gomodproxy ./
|
COPY --from=build /build/gomodproxy ./
|
||||||
|
ADD entrypoint.sh .
|
||||||
|
RUN chmod a+x *.sh
|
||||||
|
ENTRYPOINT ["/opt/app/entrypoint.sh"]
|
||||||
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]
|
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]
|
@ -17,6 +17,9 @@ services:
|
|||||||
target: /root/.ssh
|
target: /root/.ssh
|
||||||
bind:
|
bind:
|
||||||
propagation: shared
|
propagation: shared
|
||||||
|
environment:
|
||||||
|
GIT_USER: ""
|
||||||
|
GIT_PASS: ""
|
||||||
command:
|
command:
|
||||||
- /opt/app/gomodproxy
|
- /opt/app/gomodproxy
|
||||||
- --dir
|
- --dir
|
||||||
@ -26,4 +29,4 @@ services:
|
|||||||
- -git
|
- -git
|
||||||
- gitlab.connectone.pro/:/root/.ssh/id_rsa
|
- gitlab.connectone.pro/:/root/.ssh/id_rsa
|
||||||
- -git
|
- -git
|
||||||
- gitlab.connectone.pro/:goproxy:glpat-_4p1YmfjcMsxdfXnayLm
|
- gitlab.connectone.pro/:${GIT_USER}:${GIT_PASS}
|
2
entrypoint.sh
Normal file
2
entrypoint.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
git config --global url."https://${GIT_USER}:${GIT_PASS}@gitlab.connectone.pro".insteadOf "https://gitlab.connectone.pro"
|
Loading…
x
Reference in New Issue
Block a user