Mounts S3 folder and builds a docker image from it.
2.5K
Mounts S3 folder and builds the docker image from it.
To run you must expose a docker service to the container.
This can be done by binding the docker socket as a volume or setting the DOCKER_HOST environment variable.
docker build . -t build-from-s3
docker run -it -v /var/run/docker.sock:/var/run/docker.sock ... build-from-s3
Environment variables:
Specify a volume for /var/source-code and have it host the target code base.
Downloads a tarball representing a bare git source tree.
Environment variables:
Be sure to set up S3 credentials:
echo MYIDENTITY:MYCREDENTIAL > passwd-s3fs
docker cp passwd-s3fs build-from-s3:/etc/passwd-s3fs
Environment variables:
Environment variables:
An example of how to build this image from within itself:
docker run -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /path/to/docker-build-from-s3:/var/source-code \
-e DOCKER_IMAGE_NAME=build-from-s3 \
-e DOCKER_IMAGE_VERSION=latest \
build-from-s3
Content type
Image
Digest
Size
97.5 MB
Last updated
about 10 years ago
docker pull zbyte64/docker-build-from-s3