commit 9bc465fffdc710fcdd63366f5415801d947976d3 Author: ChiaraBm Date: Fri Jan 23 10:41:21 2026 +0100 Add apko container definition, build workflow, and gitignore. Added container helper base image diff --git a/.gitea/workflows/build-base-apps.yml b/.gitea/workflows/build-base-apps.yml new file mode 100644 index 0000000..482eba0 --- /dev/null +++ b/.gitea/workflows/build-base-apps.yml @@ -0,0 +1,38 @@ +name: "Build base apps" + +on: + push: + branches: + - "main" + paths: + - "applications/**" + workflow_dispatch: + +env: + REGISTRY: "git.battlestati.one" + +jobs: + build: + runs-on: linux_amd64 + + strategy: + matrix: + include: + - section: "app_base" + name: "container_helper" + + steps: + - name: "Checkout code" + uses: actions/checkout@v4 + + - name: "Login into docker registry" + run: echo "${{ secrets.RELEASE_TOKEN }}" | docker login ghcr.io -u ${{ gitea.actor }} --password-stdin + + - name: "Build apko image" + run: | + docker run \ + -v ~/.docker/config.json:/root/.docker/config.json:ro \ + -v "$PWD":/work \ + cgr.dev/chainguard/apko publish \ + ${{ matrix.section }}/${{ matrix.name }}/apko.yml \ + ${{ env.REGISTRY }}/moonlight-panel/${{ matrix.section }}/${{ matrix.name }} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..683aa15 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# IntelliJ IDEA +.idea/ +*.iml +*.iws +*.ipr +out/ + +# OS-specific +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/app_base/container_helper/apko.yml b/app_base/container_helper/apko.yml new file mode 100644 index 0000000..7da4c62 --- /dev/null +++ b/app_base/container_helper/apko.yml @@ -0,0 +1,81 @@ +contents: + repositories: + - https://packages.wolfi.dev/os + + keyring: + - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub + + packages: + # Base system packages + - wolfi-baselayout + - ca-certificates-bundle + + # Core runtime libraries + - glibc + - glibc-locale-posix + - ld-linux + - libgcc + - libstdc++ + + # ICU libraries for internationalization + - icu + - libicu78 + - icu78-data-full + + # .NET 10 runtime packages + - dotnet-10 + - dotnet-10-runtime + - aspnet-10-runtime + + # OpenSSL/crypto libraries + - libcrypto3 + - libssl3 + + # Compression libraries + - zlib + - xz + - libbrotlicommon1 + - libbrotlidec1 + + # XML parsing + - libexpat1 + + # Tracing and debugging + - lttng-ust + - libunwind + + # Timezone data + - tzdata + + # Docker tools + - docker-cli + - docker-compose + +accounts: + groups: + - groupname: nonroot + gid: 65532 + users: + - username: nonroot + uid: 65532 + gid: 65532 + run-as: 65532 + +archs: + - x86_64 + - arm64 + +environment: + DOTNET_RUNNING_IN_CONTAINER: "true" + DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: "false" + ASPNETCORE_HTTP_PORTS: "8080" + +work-dir: /app + +# Annotations for OCI image +annotations: + org.opencontainers.image.title: "Container Helper" + org.opencontainers.image.description: "Container Help for moonlight panel" + org.opencontainers.image.version: "v2.1" + org.opencontainers.image.vendor: "Moonlight-Panel" + org.opencontainers.image.licenses: "MIT" \ No newline at end of file