New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch demo to use version 2 of the Docker registry #71
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
target | ||
work | ||
demo/snapshot-plugins/ | ||
.idea | ||
*.iml |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
snapshot-plugins/ | ||
certs/ |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM registry:2.5.1 | ||
ADD certs/ca.crt certs/ca.key certs/docker-registry.htpasswd /var/registry/certs/ | ||
ENV REGISTRY_HTTP_TLS_CERTIFICATE /var/registry/certs/ca.crt | ||
ENV REGISTRY_HTTP_TLS_KEY /var/registry/certs/ca.key | ||
ENV REGISTRY_AUTH htpasswd | ||
ENV REGISTRY_AUTH_HTPASSWD_REALM Registry Realm | ||
ENV REGISTRY_AUTH_HTPASSWD_PATH /var/registry/certs/docker-registry.htpasswd |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,12 @@ | |
TAG=$(shell perl -n -e 'if (/docker-workflow:(.+)/) {print $$1}' plugins.txt) | ||
IMAGE=jenkinsci/docker-workflow-demo | ||
|
||
build-proxy: | ||
docker build -t nginx:docker-workflow-demo -f Dockerfile-proxy . | ||
build-registry: | ||
./gen-security-data.sh certs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logically would belong in Alternately, could check in a static |
||
docker build -t registry:docker-workflow-demo -f Dockerfile-registry . | ||
|
||
# Builds a demo based on a released version of the plugin. | ||
build: build-proxy | ||
build: build-registry | ||
docker build -t $(IMAGE):$(TAG) . | ||
|
||
# Builds a demo based on the current local snapshot build of the plugin. | ||
|
@@ -55,7 +56,7 @@ run-snapshot: build-snapshot | |
$(DOCKER_RUN) $(IMAGE):SNAPSHOT | ||
|
||
clean: | ||
rm -rf snapshot-plugins | ||
rm -rf certs snapshot-plugins | ||
|
||
push: | ||
docker push $(IMAGE):$(TAG) | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not belong in
run-demo.sh
to begin with.