move to registry main/v3 branch
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5bbb2594cb
commit
9247282743
12
.drone.yml
12
.drone.yml
|
@ -8,19 +8,13 @@ platform:
|
|||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build-2.7
|
||||
- name: build
|
||||
commands:
|
||||
- docker build -t nephatrine/docker-registry:2.7 .
|
||||
- HOME=/mnt/config/home docker push nephatrine/docker-registry:2.7
|
||||
- name: build-latest
|
||||
commands:
|
||||
- docker tag nephatrine/docker-registry:2.7 pdr.nephatrine.net/nephatrine/docker-registry:latest
|
||||
- docker build -t pdr.nephatrine.net/nephatrine/docker-registry:latest .
|
||||
- HOME=/mnt/config/home docker push pdr.nephatrine.net/nephatrine/docker-registry:latest
|
||||
- docker tag pdr.nephatrine.net/nephatrine/docker-registry:latest nephatrine/docker-registry:latest
|
||||
- HOME=/mnt/config/home docker push nephatrine/docker-registry:latest
|
||||
- docker rmi pdr.nephatrine.net/nephatrine/docker-registry:latest
|
||||
depends_on:
|
||||
- build-2.7
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
@ -48,6 +42,6 @@ trigger:
|
|||
|
||||
---
|
||||
kind: signature
|
||||
hmac: b6dbf8ecf2e6959e7c5b42f0ad00850a0469ceb2ca856d9d44e81e8e1bd0f18b
|
||||
hmac: 6c6c1544bcd3b611f80d48129803e6e5d3fd475c00462dfceb290a24df4d9854
|
||||
|
||||
...
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
fix-perms.sh
|
||||
sign-build.sh
|
||||
test-build.sh
|
||||
|
|
22
Dockerfile
22
Dockerfile
|
@ -1,25 +1,27 @@
|
|||
FROM nephatrine/alpine-s6:latest
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
ARG REGISTRY_VERSION=release/2.7
|
||||
ARG REGISTRY_VERSION=main
|
||||
ARG BUILDTAGS="include_oss include_gcs"
|
||||
ARG GOPATH="/usr"
|
||||
|
||||
RUN echo "====== COMPILE REGISTRY ======" \
|
||||
&& mkdir /etc/registry \
|
||||
&& apk add python3 \
|
||||
&& apk add --virtual .build-registry build-base git go \
|
||||
&& mkdir -p /usr/src/github.com/docker \
|
||||
&& git -C /usr/src/github.com/docker clone -b "$REGISTRY_VERSION" --single-branch --depth=1 https://github.com/docker/distribution.git \
|
||||
&& 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 \
|
||||
&& apk add --virtual .build-registry \
|
||||
git go \
|
||||
make \
|
||||
&& mkdir -p /usr/src/github.com/distribution \
|
||||
&& git -C /usr/src/github.com/distribution clone -b "$REGISTRY_VERSION" --single-branch --depth=1 https://github.com/distribution/distribution.git \
|
||||
&& cd /usr/src/github.com/distribution/distribution && go build -i . \
|
||||
&& make build -j4 && make binaries -j4 && install -m 0755 bin/registry /usr/bin/ \
|
||||
&& cp 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~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
|
||||
ENV REGISTRY_DATA_DIR=${REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY}/docker/registry/v2
|
||||
COPY override /
|
||||
|
||||
EXPOSE 5000/tcp
|
||||
COPY override /
|
||||
EXPOSE 5000/tcp
|
||||
|
|
10
README.md
10
README.md
|
@ -1,4 +1,4 @@
|
|||
[Git](https://code.nephatrine.net/nephatrine/docker-registry) |
|
||||
[Git](https://code.nephatrine.net/nephatrine/docker-registry/src/branch/master) |
|
||||
[Docker](https://hub.docker.com/r/nephatrine/docker-registry/) |
|
||||
[unRAID](https://code.nephatrine.net/nephatrine/unraid-containers)
|
||||
|
||||
|
@ -13,6 +13,9 @@ docker registry.
|
|||
SEE THE [DOCUMENTATION](https://docs.docker.com/registry/recipes/nginx/) FOR
|
||||
MORE DETAILS ON HOW TO CONFIGURE SUCH A PROXY.**
|
||||
|
||||
- [Alpine Linux](https://alpinelinux.org/)
|
||||
- [Skarnet Software](https://skarnet.org/software/)
|
||||
- [S6 Overlay](https://github.com/just-containers/s6-overlay)
|
||||
- [Docker Registry](https://docs.docker.com/registry/)
|
||||
|
||||
You can spin up a quick temporary test container like this:
|
||||
|
@ -23,9 +26,8 @@ docker run --rm -p 5000:5000 -it nephatrine/docker-registry:latest /bin/bash
|
|||
|
||||
## Docker Tags
|
||||
|
||||
- **nephatrine/docker-registry:testing**: Registry Master
|
||||
- **nephatrine/docker-registry:latest**: Registry 2.7
|
||||
- **nephatrine/docker-registry:2.7**: Registry 2.7
|
||||
- **nephatrine/docker-registry:testing**: Registry 2.7 / Alpine Edge
|
||||
- **nephatrine/docker-registry:latest**: Registry 2.7 / Alpine Latest
|
||||
|
||||
## Configuration Variables
|
||||
|
||||
|
|
Reference in New Issue