diff --git a/bitnami/harbor-registry/2/debian-11/Dockerfile b/bitnami/harbor-registry/2/debian-11/Dockerfile index 83e74f41c47e..49dbdfcb073f 100644 --- a/bitnami/harbor-registry/2/debian-11/Dockerfile +++ b/bitnami/harbor-registry/2/debian-11/Dockerfile @@ -7,10 +7,10 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2024-01-10T12:16:21Z" \ + org.opencontainers.image.created="2024-01-19T20:43:03Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="2.10.0-debian-11-r1" \ + org.opencontainers.image.ref.name="2.10.0-debian-11-r2" \ org.opencontainers.image.title="harbor-registry" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="2.10.0" @@ -41,6 +41,7 @@ RUN apt-get autoremove --purge -y curl && \ apt-get update && apt-get upgrade -y && \ apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives RUN chmod g+rwX /opt/bitnami +RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true COPY rootfs / RUN /opt/bitnami/scripts/harbor-registry/postunpack.sh diff --git a/bitnami/harbor-registry/2/debian-11/docker-compose.yml b/bitnami/harbor-registry/2/debian-11/docker-compose.yml deleted file mode 100644 index 000f12e118cf..000000000000 --- a/bitnami/harbor-registry/2/debian-11/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -version: '2' - -services: - harbor-registry: - image: docker.io/bitnami/harbor-registry:2 - ports: - - 5000:5000 - volumes: - - harbor-registry_data:/storage - - ./config/registry/:/etc/registry/:ro - -volumes: - harbor-registry_data: - driver: local diff --git a/bitnami/harbor-registry/README.md b/bitnami/harbor-registry/README.md index 25374500a2b0..c068c38a7c8f 100644 --- a/bitnami/harbor-registry/README.md +++ b/bitnami/harbor-registry/README.md @@ -8,13 +8,11 @@ ## TL;DR -```console -curl -LO https://raw.githubusercontent.com/bitnami/containers/main/bitnami/harbor-portal/docker-compose.yml -curl -L https://github.com/bitnami/containers/archive/main.tar.gz | tar xz --strip=2 containers-main/bitnami/harbor-portal && cp -RL harbor-portal/config . && rm -rf harbor-portal -docker-compose up -``` +This container is part of the [Harbor solution](https://github.com/bitnami/charts/tree/main/bitnami/harbor) that is primarily intended to be deployed in Kubernetes. -> Please note you are downloading the docker-compose.yml file from the Harbor Portal component repository. +```console +docker run --name harbor-registry bitnami/harbor-registry:latest +``` ## Why use Bitnami Images? @@ -51,6 +49,32 @@ Harbor Registry is a component of the Harbor application. In order to get the Ha For further information about the specific component itself, please refer to the [source repository documentation](https://github.com/goharbor/harbor/tree/main/docs). +### Environment variables + +#### Customizable environment variables + +#### Read-only environment variables + +| Name | Description | Value | +|----------------------------------|----------------------------------------------------------------------------|---------------------------------------------------| +| `HARBOR_REGISTRY_BASE_DIR` | harbor-registry installation directory. | `${BITNAMI_ROOT_DIR}/harbor-registry` | +| `HARBOR_REGISTRY_VOLUME_DIR` | harbor-registry volume directory. | `${BITNAMI_VOLUME_DIR}/harbor-registry` | +| `HARBOR_REGISTRY_STORAGE_DIR` | harbor-registry storage directory. | `${HARBOR_REGISTRY_VOLUME_DIR}/storage` | +| `HARBOR_REGISTRY_STORAGE_DIR` | harbor-registry storage directory. | `/storage` | +| `HARBOR_REGISTRY_LOGS_DIR` | harbor-registry logs directory. | `${HARBOR_REGISTRY_BASE_DIR}/logs` | +| `HARBOR_REGISTRY_TMP_DIR` | harbor-registry directory for temporary files. | `${HARBOR_REGISTRY_BASE_DIR}/tmp` | +| `HARBOR_REGISTRY_DAEMON_USER` | harbor-registry system user. | `harbor` | +| `HARBOR_REGISTRY_DAEMON_GROUP` | harbor-registry system group. | `harbor` | +| `HARBOR_REGISTRY_PID_FILE` | PID file for harbor-registry service. | `${HARBOR_REGISTRY_TMP_DIR}/harbor-registry.pid` | +| `HARBOR_REGISTRY_LOG_FILE` | Log file for harbor-registry service. | `${HARBOR_REGISTRY_LOGS_DIR}/harbor-registry.log` | +| `HARBOR_REGISTRY_EXTRA_ENV_FILE` | File to store extra environment variables for the harbor-registry service. | `${HARBOR_REGISTRY_BASE_DIR}/.env` | + +## Notable Changes + +### Starting January 16, 2024 + +* The `docker-compose.yaml` file has been removed, as it was solely intended for internal testing purposes. + ## Contributing We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution.