Browse Source

Update docker registry UI to 2.0.0

there is no static page separately now
master
Girish Ramakrishnan 7 months ago
parent
commit
4dfa8ec911
  1. 8
      Dockerfile
  2. 4
      start.sh

8
Dockerfile

@ -16,13 +16,11 @@ RUN go get -d github.com/docker/distribution/cmd/registry && \
rm -rf $GOPATH
# Docker Registry UI (used with proxy auth)
ARG UI_VERSION=1.5.4
ARG UI_VERSION=2.0.0
RUN mkdir /app/code/ui && cd /app/code/ui && \
curl -L https://github.com/Joxit/docker-registry-ui/archive/${UI_VERSION}.tar.gz | tar -zxvf - --strip-components=1 && \
yarn install && \
yarn build && \
cp /app/code/ui/dist/scripts/docker-registry-ui-static.js /app/code/ui/dist/scripts/docker-registry-ui.js.original && \
ln -sf /run/registry/ui/docker-registry-ui.js /app/code/ui/dist/scripts/docker-registry-ui.js
cp /app/code/ui/dist/index.html /app/code/ui/dist/index.html.original && \
ln -sf /run/registry/ui/index.html /app/code/ui/dist/index.html
# Simple information page (used when proxy auth disabled)
COPY frontend-customauth/ /app/code/frontend-customauth

4
start.sh

@ -15,8 +15,10 @@ yq eval -i ".redis.password=\"${CLOUDRON_REDIS_PASSWORD}\"" /app/data/config.yml
echo "=> Fixing UI config"
sed -e "s,\${URL},${CLOUDRON_APP_ORIGIN}/v2ui," \
-e "s,\${REGISTRY_TITLE},Cloudron Registry," \
-e "s,\${REGISTRY_URL},${CLOUDRON_APP_ORIGIN}," \
-e "s,\${PULL_URL},${CLOUDRON_APP_DOMAIN}," \
/app/code/ui/dist/scripts/docker-registry-ui.js.original > /run/registry/ui/docker-registry-ui.js
-e "s,\${SINGLE_REGISTRY},true," \
/app/code/ui/dist/index.html.original > /run/registry/ui/index.html
if [[ -n "${CLOUDRON_PROXY_AUTH:-}" ]]; then
cp nginx.conf.template /run/nginx/nginx.conf

Loading…
Cancel
Save