This commit is contained in:
parent
7c0c7c7856
commit
82aa1923ef
2
.env
2
.env
@ -1,4 +1,4 @@
|
||||
# target
|
||||
REG=zima1.abutili.net:3002
|
||||
REG=git.abutili.net
|
||||
NS=images
|
||||
IMG=base
|
||||
|
||||
14
Dockerfile
14
Dockerfile
@ -11,11 +11,22 @@ LABEL org.opencontainers.image.title="base" \
|
||||
org.opencontainers.image.created="${BUILD_DATE}" \
|
||||
org.opencontainers.image.source="https://git.abutili.net/images/base"
|
||||
|
||||
# Set standard environment variables
|
||||
ENV LANG=C.UTF-8 \
|
||||
LC_ALL=C.UTF-8 \
|
||||
TZ=UTC
|
||||
|
||||
# Install essential base system dependencies
|
||||
# tini: Proper init process for containers
|
||||
# tzdata: Timezone data for applications
|
||||
# jq: JSON processor for scripts/healthchecks
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
bash \
|
||||
tini \
|
||||
tzdata \
|
||||
jq \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -26,3 +37,6 @@ WORKDIR /workspace
|
||||
|
||||
# Default shell
|
||||
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
|
||||
|
||||
# Use tini as the entrypoint to handle signal forwarding and zombie reaping
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
|
||||
12
README.md
12
README.md
@ -1,21 +1,21 @@
|
||||
# Container Build and Publish Template
|
||||
# Base Image
|
||||
|
||||
This repository provides a basic template for building and publishing container images using Gitea Actions.
|
||||
This repository provides a minimal, Debian-based foundation image used by other custom images.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
The following environment variables are expected to be set in the `.env` file for local development, and as Gitea repository or organization variables for CI/CD:
|
||||
|
||||
* `REG`: The container registry hostname (e.g., `zima1.abutili.net:3002`)
|
||||
* `NS`: The namespace/project within the registry (e.g., `devops`)
|
||||
* `IMG`: The image name (e.g., `container-build-publish`)
|
||||
* `NS`: The namespace/project within the registry (e.g., `images`)
|
||||
* `IMG`: The image name (e.g., `base`)
|
||||
|
||||
Example `.env` file:
|
||||
|
||||
```
|
||||
REG=zima1.abutili.net:3002
|
||||
NS=devops
|
||||
IMG=container-build-publish
|
||||
NS=images
|
||||
IMG=base
|
||||
```
|
||||
|
||||
## Gitea Secrets
|
||||
|
||||
Loading…
Reference in New Issue
Block a user