Forked from kntyskw/start_docker_registry_on_eb.sh
Last active
January 3, 2016 13:44
-
-
Save ToQoz/a8d615aecff99a59bd14 to your computer and use it in GitHub Desktop.
Revisions
-
ToQoz revised this gist
Jan 3, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ docker run \ --name registry \ -e SETTINGS_FLAVOR=prod \ -e DOCKER_REGISTRY_CONFIG=/docker-registry/config/config_sample.yml \ -e AWS_BUCKET=$DOCKER_REGISTRY_BUCKET \ -e STORAGE_PATH=/ \ -e AWS_KEY=$DOCKER_REGISTRY_AWS_ACCESS_KEY_ID \ -e AWS_SECRET=$DOCKER_REGISTRY_AWS_SECRET_KEY \ -
ToQoz revised this gist
Jan 3, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -18,8 +18,8 @@ docker run \ -e DOCKER_REGISTRY_CONFIG=/docker-registry/config/config_sample.yml \ -e AWS_BUCKET=$DOCKER_REPOSITORY_BUCKET \ -e STORAGE_PATH=/ \ -e AWS_KEY=$DOCKER_REGISTRY_AWS_ACCESS_KEY_ID \ -e AWS_SECRET=$DOCKER_REGISTRY_AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -p 49000:5000 -d \ registry docker-registry -
kntyskw revised this gist
Jun 4, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ rm /tmp/env.sh docker run \ --name registry \ -e SETTINGS_FLAVOR=prod \ -e DOCKER_REGISTRY_CONFIG=/docker-registry/config/config_sample.yml \ -e AWS_BUCKET=$DOCKER_REPOSITORY_BUCKET \ -e STORAGE_PATH=/ \ -e AWS_KEY=$AWS_ACCESS_KEY_ID \ -
kntyskw revised this gist
Jun 4, 2014 . 1 changed file with 13 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,9 +23,16 @@ docker run \ -p 49000:5000 -d \ registry docker-registry nRetry=0 while [[ $((nRetry++)) < 3 ]]; do echo "Checking if the registry is up..." sleep 5 RET=`curl http://127.0.0.1:49000/v1/_ping 2>1 /dev/null` if [[ $RET == "true" ]]; then echo "Registry container is up" exit 0 fi done echo "Failed to launch registry container" exit 1 -
kntyskw revised this gist
Jun 4, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,6 @@ rm /tmp/env.sh docker run \ --name registry \ -e SETTINGS_FLAVOR=prod \ -e AWS_BUCKET=$DOCKER_REPOSITORY_BUCKET \ -e STORAGE_PATH=/ \ -e AWS_KEY=$AWS_ACCESS_KEY_ID \ -
kntyskw revised this gist
May 23, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -24,9 +24,9 @@ docker run \ -p 49000:5000 -d \ registry docker-registry RET=false while [[ $RET != "true" ]]; do echo "Checking if the registry is up..." sleep 5 RET=`curl http://127.0.0.1:49000/v1/_ping` done -
kntyskw revised this gist
May 23, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ docker run \ -e SETTINGS_FLAVOR=prod \ -e DOCKER_REGISTRY_CONFIG=/docker-registry/config/config_s3.yml \ -e AWS_BUCKET=$DOCKER_REPOSITORY_BUCKET \ -e STORAGE_PATH=/ \ -e AWS_KEY=$AWS_ACCESS_KEY_ID \ -e AWS_SECRET=$AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -
kntyskw revised this gist
May 22, 2014 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ chmod 600 /tmp/env.sh jq .docker.env[] $EB_CONFIG_FILE | tr -d \" > /tmp/env.sh source /tmp/env.sh rm /tmp/env.sh # Start docker repository with name "registry" docker run \ @@ -22,4 +22,11 @@ docker run \ -e AWS_SECRET=$AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -p 49000:5000 -d \ registry docker-registry while [[ RET -ne 0 ]]; do sleep 5 echo "Checking if the registry is up..." curl http://127.0.0.1:49000/v1/_ping RET=$? done -
kntyskw revised this gist
May 22, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,5 +21,5 @@ docker run \ -e AWS_KEY=$AWS_ACCESS_KEY_ID \ -e AWS_SECRET=$AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -p 49000:5000 -d \ registry docker-registry >& /tmp/log -
kntyskw revised this gist
May 22, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ chmod 600 /tmp/env.sh jq .docker.env[] $EB_CONFIG_FILE | tr -d \" > /tmp/env.sh source /tmp/env.sh #rm /tmp/env.sh # Start docker repository with name "registry" docker run \ @@ -22,4 +22,4 @@ docker run \ -e AWS_SECRET=$AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -p 49000:5000 \ registry docker-registry >& /tmp/log -
kntyskw created this gist
May 22, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ #!/bin/bash . /opt/elasticbeanstalk/hooks/common.sh # Load ElasticBeanstalk environment variables touch /tmp/env.sh chmod 600 /tmp/env.sh jq .docker.env[] $EB_CONFIG_FILE | tr -d \" > /tmp/env.sh source /tmp/env.sh rm /tmp/env.sh # Start docker repository with name "registry" docker run \ --name registry \ -e SETTINGS_FLAVOR=prod \ -e DOCKER_REGISTRY_CONFIG=/docker-registry/config/config_s3.yml \ -e AWS_BUCKET=$DOCKER_REPOSITORY_BUCKET \ -e STORAGE_PATH=/images \ -e AWS_KEY=$AWS_ACCESS_KEY_ID \ -e AWS_SECRET=$AWS_SECRET_KEY \ -e SEARCH_BACKEND=sqlalchemy \ -p 49000:5000 \ registry docker-registry