[bitnami/gitea] Release 1.21.4-debian-11-r0 (#54828)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2024-01-17 05:31:11 +01:00 committed by GitHub
parent 8c55ab4c16
commit 2d785f33e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 70 additions and 32 deletions

View File

@ -7,13 +7,13 @@ 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-10T10:35:04Z" \
org.opencontainers.image.created="2024-01-17T04:00:28Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="1.21.3-debian-11-r3" \
org.opencontainers.image.ref.name="1.21.4-debian-11-r0" \
org.opencontainers.image.title="gitea" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="1.21.3"
org.opencontainers.image.version="1.21.4"
ENV HOME="/" \
OS_ARCH="${TARGETARCH:-amd64}" \
@ -26,10 +26,10 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
RUN install_packages acl ca-certificates curl git procps
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
COMPONENTS=( \
"wait-for-port-1.0.7-4-linux-${OS_ARCH}-debian-11" \
"render-template-1.0.6-4-linux-${OS_ARCH}-debian-11" \
"wait-for-port-1.0.7-5-linux-${OS_ARCH}-debian-11" \
"render-template-1.0.6-5-linux-${OS_ARCH}-debian-11" \
"ini-file-1.4.6-5-linux-${OS_ARCH}-debian-11" \
"gitea-1.21.3-1-linux-${OS_ARCH}-debian-11" \
"gitea-1.21.4-0-linux-${OS_ARCH}-debian-11" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
@ -46,7 +46,7 @@ RUN chmod g+rwX /opt/bitnami
COPY rootfs /
RUN /opt/bitnami/scripts/gitea/postunpack.sh
ENV APP_VERSION="1.21.3" \
ENV APP_VERSION="1.21.4" \
BITNAMI_APP_NAME="gitea" \
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/gitea/bin:$PATH"

View File

@ -3,7 +3,7 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "1.21.3-1"
"version": "1.21.4-0"
},
"ini-file": {
"arch": "amd64",
@ -15,12 +15,12 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "1.0.6-4"
"version": "1.0.6-5"
},
"wait-for-port": {
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "1.0.7-4"
"version": "1.0.7-5"
}
}

View File

@ -1,5 +1,5 @@
rolling-tags:
- "1"
- 1-debian-11
- 1.21.3
- 1.21.4
- latest

View File

@ -13,13 +13,6 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
docker run --name gitea bitnami/gitea:latest
```
### Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/gitea/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
## Why use Bitnami Images?
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
@ -166,6 +159,58 @@ docker-compose up -d
Gitea can be configured via environment variables or using a configuration file (`app.ini`). If a configuration option is not specified in either the configuration file or in an environment variable, Gitea uses its internal default configuration.
### Environment variables
#### Customizable environment variables
| Name | Description | Default Value |
|------------------------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
| `GITEA_REPO_ROOT_PATH` | Gitea git repositories path. | `${GITEA_DATA_DIR}/git/repositories` |
| `GITEA_LOG_ROOT_PATH` | Gitea log path. | `${GITEA_TMP_DIR}/log` |
| `GITEA_LOG_ROOT_PATH` | Gitea log path. | `${GITEA_WORK_DIR}/log` |
| `GITEA_LOG_MODE` | Gitea log mode. | `file` |
| `GITEA_LOG_ROUTER` | Gitea log router. | `file` |
| `GITEA_ADMIN_USER` | Admin username. | `bn_user` |
| `GITEA_ADMIN_PASSWORD` | Admin password. | `bitnami` |
| `GITEA_ADMIN_EMAIL` | Admin user email. | `user@bitnami.org` |
| `GITEA_APP_NAME` | Application name, used in the page title | `Gitea: Git with a cup of tea` |
| `GITEA_RUN_MODE` | Application run mode, affects performance and debugging. Either "dev", "prod" or "test". | `prod` |
| `GITEA_DOMAIN` | Domain name of this server. | `localhost` |
| `GITEA_SSH_DOMAIN` | Domain name of this server, used for displayed clone URL. | `${GITEA_DOMAIN}` |
| `GITEA_SSH_LISTEN_PORT` | Port for the built-in SSH server. | `2222` |
| `GITEA_SSH_PORT` | SSH port displayed in clone URL. | `${GITEA_SSH_LISTEN_PORT}` |
| `GITEA_HTTP_PORT` | Gitea HTTP listen port | `3000` |
| `GITEA_PROTOCOL` | [http, https, fcgi, http+unix, fcgi+unix] | `http` |
| `GITEA_ROOT_URL` | Overwrite the automatically generated public URL. This is useful if the internal and the external URL don't match | `${GITEA_PROTOCOL}://${GITEA_DOMAIN}:${GITEA_HTTP_PORT}` |
| `GITEA_PASSWORD_HASH_ALGO` | The hash algorithm to use [argon2, pbkdf2, scrypt, bcrypt], argon2 will spend more memory than others. | `pbkdf2` |
| `GITEA_LFS_START_SERVER` | Enables Git LFS support | `false` |
| `GITEA_DATABASE_TYPE` | The database type in use [mysql, postgres]. | `postgres` |
| `GITEA_DATABASE_HOST` | Database host address. | `postgresql` |
| `GITEA_DATABASE_HOST` | Database host address. | `127.0.0.1` |
| `GITEA_DATABASE_PORT_NUMBER` | Database host port. | `5432` |
| `GITEA_DATABASE_NAME` | Database name. | `bitnami_gitea` |
| `GITEA_DATABASE_USERNAME` | Database username. | `bn_gitea` |
| `GITEA_DATABASE_SSL_MODE` | Database SSL mode. | `disable` |
| `GITEA_DATABASE_CHARSET` | Database character set. | `utf8` |
| `GITEA_SMTP_ENABLED` | Enable to use a mail service. | `false` |
#### Read-only environment variables
| Name | Description | Value |
|-------------------------|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| `GITEA_BASE_DIR` | Gitea installation directory. | `${BITNAMI_ROOT_DIR}/gitea` |
| `GITEA_WORK_DIR` | Gitea installation directory. | `${GITEA_BASE_DIR}` |
| `GITEA_CUSTOM_DIR` | Gitea configuration directory. | `${GITEA_BASE_DIR}/custom` |
| `GITEA_TMP_DIR` | Gitea TEMP directory. | `${GITEA_BASE_DIR}/tmp` |
| `GITEA_DATA_DIR` | Gitea data directory. | `${GITEA_WORK_DIR}/data` |
| `GITEA_CONF_DIR` | Gitea configuration directory. | `${GITEA_CUSTOM_DIR}/conf` |
| `GITEA_CONF_FILE` | Gitea configuration file. | `${GITEA_CONF_DIR}/app.ini` |
| `GITEA_PID_FILE` | Gitea PID file. | `${GITEA_TMP_DIR}/gitea.pid` |
| `GITEA_VOLUME_DIR` | Gitea directory for mounted configuration files. | `${BITNAMI_VOLUME_DIR}/gitea` |
| `GITEA_DATA_TO_PERSIST` | Files to persist relative to the Gitea installation directory. To provide multiple values, separate them with a whitespace. | `${GITEA_CONF_FILE} data` |
| `GITEA_DAEMON_USER` | Gitea daemon system user. | `gitea` |
| `GITEA_DAEMON_GROUP` | Gitea daemon system group. | `gitea` |
### Configuration overrides
The configuration can easily be setup by mounting your own configuration overrides on the directory `/bitnami/gitea/custom/conf/app.ini`:
@ -196,13 +241,7 @@ In order to have your custom files inside the docker image you can mount them as
### Setting the admin password on first run
The admin user and password can easily be setup with the Bitnami Gitea Docker image using the following environment variables:
* `GITEA_ADMIN_USER`: Admin user name. Defaults to `bn_user`.
* `GITEA_ADMIN_PASSWORD`: Admin password. Defaults to `bitnami`.
* `GITEA_ADMIN_EMAIL`: Admin user email. Defaults to `user@bitnami.org`.
Passing the `GITEA_ADMIN_PASSWORD` environment variable when running the image for the first time will set the password of the `GITEA_ADMIN_USER` user to the value of `GITEA_ADMIN_PASSWORD`.
Passing the `GITEA_ADMIN_PASSWORD` environment variable when running the image for the first time will set the password of the `GITEA_ADMIN_USER`/`GITEA_ADMIN_EMAIL` user to the value of `GITEA_ADMIN_PASSWORD`.
```console
docker run --name gitea -e GITEA_ADMIN_PASSWORD=password123 bitnami/gitea:latest
@ -219,13 +258,6 @@ services:
...
```
### Changing the default ports
Gitea default ports can be changed using the following environment variables:
* `GITEA_HTTP_PORT`: HTTP port. Defaults to `3000`.
* `GITEA_SSH_LISTEN_PORT`: Port for the built-in SSH server. Defaults to `2222`
## Logging
The Bitnami Gitea Docker image sends the container logs to `stdout`. To view the logs:
@ -296,6 +328,12 @@ or using Docker Compose:
docker-compose up gitea
```
## Using `docker-compose.yaml`
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart](https://github.com/bitnami/charts/tree/main/bitnami/gitea).
If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).
## 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.