Skip to content
Snippets Groups Projects
Commit 36185dac authored by Martin Weise's avatar Martin Weise
Browse files

added registry auth

Former-commit-id: e7a6bb5f
parent 6726dbad
No related branches found
No related tags found
1 merge request!42Fixed the query service tests
mweise:$2y$05$eC9011766P4kKvgUYeZ1d.4AISb6IEge3zEFbrZGXXUa8BKIfUPra
#!/bin/bash
if [ $# -ne 2 ]; then
echo "USAGE: ./create username password"
exit 1
fi
docker run \
--entrypoint htpasswd \
httpd:2 -Bbn $1 $2 > auth/htpasswd
\ No newline at end of file
#!/bin/bash #!/bin/bash
docker run -d -p 5000:5000 -v /var/lib/docker/registry:/var/lib/registry registry:2 docker run -d \
\ No newline at end of file -p 5000:5000 \
--restart=always \
--name registry \
-v "$(pwd)"/auth:/auth \
-e "REGISTRY_AUTH=htpasswd" \
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
-e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
-v "$(pwd)"/certs:/certs \
registry:2
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment