1
0
Fork 0

add 2.7 docker tag
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2020-02-08 17:37:02 -05:00
parent 1c155743cb
commit 7739788720
No known key found for this signature in database
GPG Key ID: E8FEA551AA478F9A
3 changed files with 41 additions and 2 deletions

View File

@ -8,7 +8,14 @@ platform:
arch: amd64
steps:
- name: build
- name: build-2.7
commands:
- docker build --pull -t pdr.nephatrine.net/nephatrine/docker-registry:2.7 -f Dockerfile-2.7 .
- HOME=/mnt/config/home docker push pdr.nephatrine.net/nephatrine/docker-registry:2.7
- docker tag pdr.nephatrine.net/nephatrine/docker-registry:2.7 nephatrine/docker-registry:2.7
- HOME=/mnt/config/home docker push nephatrine/docker-registry:2.7
- docker rmi pdr.nephatrine.net/nephatrine/docker-registry:2.7
- name: build-latest
commands:
- docker build --pull -t pdr.nephatrine.net/nephatrine/docker-registry:latest .
- HOME=/mnt/config/home docker push pdr.nephatrine.net/nephatrine/docker-registry:latest

26
Dockerfile-2.7 Normal file
View File

@ -0,0 +1,26 @@
FROM nephatrine/alpine-s6:3.10
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
ARG REGISTRY_VERSION=release/2.7
ARG GOPATH="/usr"
RUN echo "====== COMPILE REGISTRY ======" \
&& mkdir /etc/registry \
&& apk add --virtual .build-registry build-base git go \
&& cd /usr/src \
&& go get -d github.com/docker/distribution/cmd/registry \
&& cd github.com/docker/distribution/cmd/registry \
&& git fetch && git fetch --tags \
&& git checkout "$REGISTRY_VERSION" && cd /usr/src \
&& go install github.com/docker/distribution/cmd/registry \
&& cp github.com/docker/distribution/cmd/registry/config-example.yml /etc/registry/config-example.yml \
&& cp /etc/registry/config-example.yml /etc/registry/config.yml \
&& sed -i 's~/var/lib/registry~/mnt/config/data/registry~g' /etc/registry/config.yml \
&& sed -i 's~/etc/registry~/mnt/config/etc/registry~g' /etc/registry/config.yml \
&& cd /usr/src && rm -rf /usr/pkg/* /usr/src/* \
&& apk del --purge .build-registry && rm -rf /var/cache/apk/*
ENV REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/mnt/config/data/registry
EXPOSE 5000/tcp
COPY override /

View File

@ -2,7 +2,7 @@
[Docker](https://hub.docker.com/r/nephatrine/docker-registry/) |
[unRAID](https://code.nephatrine.net/nephatrine/unraid-containers)
[![Build Status](https://ci.nephatrine.net/api/badges/nephatrine/docker-registry/status.svg)](https://ci.nephatrine.net/nephatrine/docker-registry)
[![Build Status](https://ci.nephatrine.net/api/badges/nephatrine/docker-registry/status.svg?ref=refs/heads/master)](https://ci.nephatrine.net/nephatrine/docker-registry)
# Docker Registry
@ -21,6 +21,12 @@ You can spin up a quick temporary test container like this:
docker run --rm -p 5000:5000 -it nephatrine/docker-registry:latest /bin/bash
~~~
## Docker Tags
- **nephatrine/drone-server:testing**: Registry Master (Alpine Edge)
- **nephatrine/drone-server:latest**: Registry v2.7 (Alpine v3.11)
- **nephatrine/drone-server:2.7**: Registry v2.7 (Alpine v3.10)
## Configuration Variables
You can set these parameters using the syntax ``-e "VARNAME=VALUE"`` on your