Skip to content

Commit 4dc09d7

Browse files
committed
Remove ssh folder from root and .ssh folder from the image
- ssh directory will be taken from jenkins HOME - The image built from Dockerfile contained the ssh directory of host. This is now removed.
1 parent b8a6124 commit 4dc09d7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bin/docker-execute

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ build_image() {
5353
docker build --build-arg BUILDKIT_INLINE_CACHE=1 -t "$IMAGE_NAME" -f "$DOCKERFILE" .
5454
}
5555

56-
IMAGE_ID=$(docker inspect --type=image -f '{{.Id}}' "$IMAGE_NAME" 2> /dev/null || true)
57-
if [ -z "$IMAGE_ID" ]; then
58-
echo "$(tput setaf 4) > image $IMAGE_NAME doesn't exist$(tput sgr0)"
59-
build_image
60-
elif [ "$REBUILD" = "true" ]; then
61-
echo "$(tput setaf 4) > rebuild of $IMAGE_NAME requested$(tput sgr0)"
62-
build_image
63-
else
64-
echo "$(tput setaf 4) > image $IMAGE_NAME already exists$(tput sgr0)"
65-
fi
56+
# IMAGE_ID=$(docker inspect --type=image -f '{{.Id}}' "$IMAGE_NAME" 2> /dev/null || true)
57+
# if [ -z "$IMAGE_ID" ]; then
58+
# echo "$(tput setaf 4) > image $IMAGE_NAME doesn't exist$(tput sgr0)"
59+
# build_image
60+
# elif [ "$REBUILD" = "true" ]; then
61+
# echo "$(tput setaf 4) > rebuild of $IMAGE_NAME requested$(tput sgr0)"
62+
# build_image
63+
# else
64+
# echo "$(tput setaf 4) > image $IMAGE_NAME already exists$(tput sgr0)"
65+
# fi
6666

6767
set +e
6868
RUNNING=$(docker ps --format '{{.Names}}' | grep "$CONTAINER_NAME")

0 commit comments

Comments
 (0)