This project contains Linux bash scripts to use with docker.
The main repository is hosted in gitlab.com/singletonsd/scripts/docker but it is automaticaly mirrored to github.com/singletonsd, github.com/patoperpetua and to gitlab.com/patoperpetua. If you are in the Github page it may occur that is not updated to the last version.
Generates all docker images contained in a folder named docker-images. The project must have the following structure:
- docker-images
- base_name
- Dockerfile
- tags
- another_base_name
- Dockerfile
- tagsEach folder represent a type of image. The folder name will be base name of the generated folder.
The file tags contains the different tags of the base image used. It must contain one tag per line and finished with an empty line. Example:
8-alpine
10-alpine
It has the following available options:
-h | --help: display help.
-p | --push: push images after building.
-x | --proxy: use proxy.
-b | --base-name: base name of images.
-c | --commit-sha: sha of commit to attach to image.
-t | --tag: tag of images.Also, it can be used envieronment variables:
DOCKER_BUILD_BASE_NAME=
DOCKER_BUILD_TAG=It can be downloaded by:
curl -o docker_build_multiple_images.sh -L https://singletonsd.gitlab.io/scripts/docker/latest/docker_build_multiple_images.shMaster branch is setup as latest folder. To use an specific version, put the version name before the file name like:
https://singletonsd.gitlab.io/scripts/docker/latest/gitlab-ci_lint_test_standalone.sh
https://singletonsd.gitlab.io/scripts/docker/develop/gitlab-ci_lint_test_standalone.sh
https://singletonsd.gitlab.io/scripts/docker/v0.0.2/gitlab-ci_lint_test_standalone.sh- Fix documentation.
- Add script to download test script from gitlab pages.
- Zip all scripts and put inside pages.
© Singleton SD, Italy, 2019.