mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 13:29:31 +02:00
[bitnami/gitea] Release 1.26.2-debian-12-r6 (#94358)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
|
||||
ARG TARGETARCH
|
||||
|
||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2026-06-05T07:57:02Z" \
|
||||
org.opencontainers.image.created="2026-06-05T10:04:25Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/gitea/README.md" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/gitea" \
|
||||
@@ -52,7 +52,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/gitea/postunpack.sh
|
||||
ENV APP_VERSION="1.26.2" \
|
||||
BITNAMI_APP_NAME="gitea" \
|
||||
IMAGE_REVISION="5" \
|
||||
IMAGE_REVISION="6" \
|
||||
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/gitea/bin:$PATH"
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ PASSWD = {{GITEA_DATABASE_PASSWORD}}
|
||||
|
||||
[server]
|
||||
DOMAIN = {{GITEA_DOMAIN}}
|
||||
HTTP_ADDR = {{GITEA_HTTP_ADDR}}
|
||||
HTTP_PORT = {{GITEA_HTTP_PORT}}
|
||||
PROTOCOL = {{GITEA_PROTOCOL}}
|
||||
ROOT_URL = {{GITEA_ROOT_URL}}
|
||||
|
||||
@@ -38,6 +38,7 @@ gitea_env_vars=(
|
||||
GITEA_SSH_DOMAIN
|
||||
GITEA_SSH_LISTEN_PORT
|
||||
GITEA_SSH_PORT
|
||||
GITEA_HTTP_ADDR
|
||||
GITEA_HTTP_PORT
|
||||
GITEA_PROTOCOL
|
||||
GITEA_ROOT_URL
|
||||
@@ -105,6 +106,7 @@ export GITEA_DOMAIN="${GITEA_DOMAIN:-localhost}"
|
||||
export GITEA_SSH_DOMAIN="${GITEA_SSH_DOMAIN:-${GITEA_DOMAIN}}"
|
||||
export GITEA_SSH_LISTEN_PORT="${GITEA_SSH_LISTEN_PORT:-2222}"
|
||||
export GITEA_SSH_PORT="${GITEA_SSH_PORT:-${GITEA_SSH_LISTEN_PORT}}"
|
||||
export GITEA_HTTP_ADDR="${GITEA_HTTP_ADDR:-0.0.0.0}"
|
||||
export GITEA_HTTP_PORT="${GITEA_HTTP_PORT:-3000}"
|
||||
export GITEA_PROTOCOL="${GITEA_PROTOCOL:-http}"
|
||||
export GITEA_ROOT_URL="${GITEA_ROOT_URL:-${GITEA_PROTOCOL}://${GITEA_DOMAIN}:${GITEA_HTTP_PORT}}"
|
||||
|
||||
@@ -227,6 +227,7 @@ gitea_update_conf_file() {
|
||||
gitea_conf_set "server" "SSH_DOMAIN" "$GITEA_SSH_DOMAIN"
|
||||
gitea_conf_set "server" "SSH_PORT" "$GITEA_SSH_PORT"
|
||||
gitea_conf_set "server" "SSH_LISTEN_PORT" "$GITEA_SSH_LISTEN_PORT"
|
||||
gitea_conf_set "server" "HTTP_ADDR" "$GITEA_HTTP_ADDR"
|
||||
gitea_conf_set "server" "HTTP_PORT" "$GITEA_HTTP_PORT"
|
||||
gitea_conf_set "log" "ROOT_PATH" "$GITEA_LOG_ROOT_PATH"
|
||||
gitea_conf_set "repository" "ROOT" "$GITEA_REPO_ROOT_PATH"
|
||||
@@ -283,6 +284,8 @@ gitea_pass_wizard() {
|
||||
wizard_url="http://127.0.0.1:${port}"
|
||||
cookie_file="/tmp/cookie$(generate_random_string -t alphanumeric -c 8)"
|
||||
curl_opts=("--location" "--silent" "--cookie" "$cookie_file" "--cookie-jar" "$cookie_file")
|
||||
# Set HTTP_ADDR to 127.0.0.1 to avoid binding to 0.0.0.0 during wizard setup
|
||||
gitea_conf_set "server" "HTTP_ADDR" "127.0.0.1"
|
||||
# Ensure gitea is started
|
||||
gitea_start_bg
|
||||
# Step 0: Get cookies
|
||||
@@ -332,6 +335,8 @@ gitea_pass_wizard() {
|
||||
return 1
|
||||
fi
|
||||
gitea_stop
|
||||
# After passing the wizard, we can bind to the configured address
|
||||
gitea_conf_set "server" "HTTP_ADDR" "$GITEA_HTTP_ADDR"
|
||||
info "Gitea installation finished"
|
||||
true
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ The following tables list the main variables you can set.
|
||||
| `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_ADDR` | Gitea HTTP listen address | `0.0.0.0` |
|
||||
| `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}` |
|
||||
|
||||
Reference in New Issue
Block a user