Move packages to env file and allow extras per distro.

This commit is contained in:
2025-10-13 05:31:57 -07:00
parent f57a0d322d
commit 7abe909cdf
7 changed files with 47 additions and 33 deletions

View File

@@ -19,6 +19,8 @@ services:
network: host
restart: no
environment:
- PACKAGES=$PACKAGES
- EXTRA_ARCH=$EXTRA_ARCH
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
@@ -35,7 +37,6 @@ services:
cpus: $CPU
memory: $RAM
pt-debian:
container_name: pt-debian
build:
@@ -44,6 +45,8 @@ services:
network: host
restart: no
environment:
- PACKAGES=$PACKAGES
- EXTRA_DEBIAN=$EXTRA_DEBIAN
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
@@ -60,32 +63,6 @@ services:
cpus: $CPU
memory: $RAM
pt-ubuntu:
container_name: pt-ubuntu
build:
context: ./
dockerfile: Dockerfiles/ubuntu
network: host
restart: no
environment:
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
volumes:
- type: volume
source: pt-storage
target: /root
volume:
subpath: ubuntu
deploy:
mode: global
resources:
limits:
cpus: $CPU
memory: $RAM
pt-fedora:
container_name: pt-fedora
build:
@@ -94,6 +71,8 @@ services:
network: host
restart: no
environment:
- PACKAGES=$PACKAGES
- EXTRA_FEDORA=$EXTRA_FEDORA
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
@@ -110,7 +89,6 @@ services:
cpus: $CPU
memory: $RAM
pt-opensuse:
container_name: pt-opensuse
build:
@@ -119,6 +97,8 @@ services:
network: host
restart: no
environment:
- PACKAGES=$PACKAGES
- EXTRA_OPENSUSE=$EXTRA_OPENSUSE
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
@@ -134,3 +114,29 @@ services:
limits:
cpus: $CPU
memory: $RAM
pt-ubuntu:
container_name: pt-ubuntu
build:
context: ./
dockerfile: Dockerfiles/ubuntu
network: host
restart: no
environment:
- PACKAGES=$PACKAGES
- EXTRA_UBUNTU=$EXTRA_UBUNTU
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
volumes:
- type: volume
source: pt-storage
target: /root
volume:
subpath: ubuntu
deploy:
mode: global
resources:
limits:
cpus: $CPU
memory: $RAM