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

added registry auth

parent 1a9ff18b
No related branches found
No related tags found
3 merge requests!81New stable release,!43Merge dev to master,!27Draft: Resolve "Zenodo Sandbox integration for PID (e.g. DOI)"
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