dont get fancy just run bash and git clone
This commit is contained in:
@@ -2,8 +2,6 @@ FROM docker:24.0.7-dind-alpine3.18
|
|||||||
|
|
||||||
RUN apk update && apk --no-cache add bash curl git
|
RUN apk update && apk --no-cache add bash curl git
|
||||||
|
|
||||||
RUN mv $(which sh) /bin/sh.sh; mv $(which bash /bin/bash.sh)
|
COPY ./entrypoint.sh /bin/entrypoint.sh
|
||||||
|
RUN chmod +x /bin/entrypoint.sh
|
||||||
COPY ./entrypoint.sh /bin/sh
|
ENTRYPOINT ["/bin/entrypoint.sh"]
|
||||||
COPY ./entrypoint.sh /bin/bash
|
|
||||||
RUN chmod +x /bin/sh /bin/bash
|
|
||||||
|
|||||||
8
build.sh
8
build.sh
@@ -1,6 +1,10 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
img=registry-app.inhome.blapointe.com:5001/docker
|
||||||
|
t=latest
|
||||||
|
docker rmi $img:$t
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
docker build -f ./Dockerfile -t registry-app.inhome.blapointe.com:5001/docker:latest .
|
docker build -f ./Dockerfile -t $img:$t --progress plain .
|
||||||
docker push registry-app.inhome.blapointe.com:5001/docker:latest
|
docker push $img:$t
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! /bin/sh.sh
|
#! /bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -7,4 +7,4 @@ if [ -n "$GITHUB_SERVER_URL" ] && [ -n "$GITHUB_REPOSITORY" ]; then
|
|||||||
cd ./git.d
|
cd ./git.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$0.sh" "$@"
|
exec bash "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user