Last active
July 23, 2020 06:19
-
-
Save Sammers21/5bf2ab0d93d258a64fca4fbdd1f70339 to your computer and use it in GitHub Desktop.
Docker registry vs Artipie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
set -x | |
docker pull ubuntu | |
docker pull graphiteapp/graphite-statsd | |
docker pull g4s8/artipie-base | |
docker tag ubuntu localhost:5000/ubuntu | |
docker tag graphiteapp/graphite-statsd localhost:5000/graphiteapp/graphite-statsd | |
docker tag g4s8/artipie-base localhost:5000/g4s8/artipie-base | |
docker tag ubuntu localhost:8080/my-docker/ubuntu | |
docker tag graphiteapp/graphite-statsd localhost:8080/my-docker/graphite | |
docker tag g4s8/artipie-base localhost:8080/my-docker/artipie-base | |
echo 'Starting docker registy' | |
docker run -d --rm -it -p 5000:5000 --name registry registry:2 | |
echo 'Starting artipie' | |
cat >./artipie.yaml <<EOL | |
meta: | |
storage: | |
type: fs | |
path: /var/artipie/configs | |
layout: flat | |
EOL | |
mkdir -p configs | |
cat >./configs/my-docker.yaml <<EOL | |
repo: | |
type: docker | |
storage: | |
type: fs | |
path: /var/artipie/data | |
EOL | |
docker run -d --rm --name artipie -it -v $(pwd)/artipie.yaml:/etc/artipie.yml -v $(pwd):/var/artipie -p 8080:80 artipie/artipie:latest | |
echo "Pushing to docker registry" | |
time docker push localhost:5000/ubuntu | |
time docker push localhost:5000/graphiteapp/graphite-statsd | |
time docker push localhost:5000/g4s8/artipie-base | |
echo "Pushing to aripie" | |
time docker push localhost:8080/my-docker/ubuntu | |
time docker push localhost:8080/my-docker/graphite | |
time docker push localhost:8080/my-docker/artipie-base | |
docker stop registry | |
docker stop artipie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment