1
0
Fork 0

pull existing image before building, note reserved paths

This commit is contained in:
Sean Sube 2018-04-08 09:33:26 -05:00
parent 22cef23d27
commit ccf924892c
2 changed files with 13 additions and 1 deletions

View File

@ -19,6 +19,7 @@ variables:
- mkdir /root/.docker
- ln -s /secrets/docker /root/.docker/config.json
- docker info
- docker pull ${IMAGE_TAG}:${CI_COMMIT_REF_SLUG} || true
script:
- cd ${IMAGE_DIR}
- docker build -t ${IMAGE_TAG}:${CI_COMMIT_REF_SLUG} .

View File

@ -2,4 +2,15 @@
These are dockerfiles maintained for third-party tools, languages, and the `apextoaster/base` utility image.
To make pipelines and updates easy, these are in a monorepo. Make sure images build to the same hash (clean up caches).
To make pipelines and updates easy, these are in a monorepo. Make sure images build to the same hash (clean up caches).
## Cleanup
Clean up `apt-get` with `apt-get autoclean && apt-get clean && rm -rf /var/lib/apt/lists/*`.
## Paths
`/build` and `/secrets` are reserved mount points for CI jobs.
`/config` and `/data` are reserved mount points for runtime data.
Tools that need an install directory should use `/<tool>`.