Commit 30f09c60 authored by marmaduke's avatar marmaduke

initial essay

parent 7d374147
Pipeline #2929 failed with stages
in 15 seconds
variables:
repo: cr.tvb-ins.fr
tag: $repo/docker/squash:$CI_COMMIT_REF_SLUG
build:
stage: build
script:
- docker build -t $tag .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $repo
- docker push $tag
test:
stage: test
script:
- docker save $tag > image.tar
- docker run --rm -it $tag < image.tar > squashed.tar
- docker import squashed.tar $tag
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $repo
- docker push $tag
\ No newline at end of file
FROM alpine
ARG TAG=v0.2.0
RUN curl -L https://github.com/jwilder/docker-squash/releases/download/$TAG/docker-squash-linux-amd64-$TAG.tar.gz \
| tar -C /usr/local/bin -xzvf docker-squash-linux-amd64-$TAG.tar.gz
ENTRYPOINT ["/usr/local/bin/docker-squash"]
\ No newline at end of file
# squash
docker squash in... a container!
\ No newline at end of file
Run [docker-squash](https://github.com/jwilder/docker-squash) in a
container, primarily because it requires root.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment