alpinelinux / alpine-docker-gitlab

[MIRROR] Gitlab docker image based on Alpine Linux
https://gitlab.alpinelinux.org/alpine/infra/docker/gitlab
MIT License
14 stars 17 forks source link

The entrypoint.sh fails at line 115 while setup #18

Open supar opened 3 months ago

supar commented 3 months ago

The entrypoint.sh fails at line 115 if there are no variables in .env

REGISTRY_S3_ACCESSKEY=
REGISTRY_S3_SECRET=
REGISTRY_S3_REGION=
REGISTRY_S3_ENDPOINT=
REGISTRY_S3_BUCKET=
REGISTRY_TOKEN_REALM=

To fix

registry_conf() {
...
        accesskey: ${REGISTRY_S3_ACCESSKEY:=}
        secretkey: ${REGISTRY_S3_SECRET:=}
        region: ${REGISTRY_S3_REGION:=}
        regionendpoint: ${REGISTRY_S3_ENDPOINT:=}
        bucket: ${REGISTRY_S3_BUCKET:=}
...
}