1
0
Fork 0

why am I building on alpine 3.11
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2021-02-26 20:52:35 -05:00
parent 3acc5bfd4e
commit cf99d480e1
Signed by: nephatrine
GPG Key ID: F402AF4822FB01F5
2 changed files with 5 additions and 31 deletions

View File

@ -10,18 +10,20 @@ platform:
steps:
- name: build-2.7
commands:
- docker build --pull -t pdr.nephatrine.net/nephatrine/docker-registry:2.7 -f Dockerfile-2.7 .
- docker build --pull -t pdr.nephatrine.net/nephatrine/docker-registry: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 .
- docker tag nephatrine/docker-registry:2.7 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
@ -49,6 +51,6 @@ trigger:
---
kind: signature
hmac: 78543eb4b3603a3e8c0426c86ac6460446aac1d9a090c82f584e3ac3c7588850
hmac: c122eaf8c132be3935cae0d71d03187a4e68c8745b7e6c4c2bdd74b2091b1dbc
...

View File

@ -1,28 +0,0 @@
FROM nephatrine/alpine-s6:3.11
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 python3 \
&& 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~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