# Create containers which each execute a provisioning script and exit. volumes: pt-storage: driver: local driver_opts: type: none device: $PT_STORAGE_DIR o: bind services: pt-arch: container_name: pt-arch build: context: ./ dockerfile: Dockerfiles/arch network: host args: PACKAGES: ${PACKAGES} EXTRA_ARCH: ${EXTRA_ARCH} restart: no environment: - PACKAGES=$PACKAGES - EXTRA_ARCH=$EXTRA_ARCH - REPO=$REPO - BRANCH=$BRANCH - EXEC=$EXEC volumes: - type: volume source: pt-storage target: /root volume: subpath: arch deploy: mode: global resources: limits: cpus: $CPU memory: $RAM pt-debian: container_name: pt-debian build: context: ./ dockerfile: Dockerfiles/debian network: host args: PACKAGES: ${PACKAGES} EXTRA_DEBIAN: ${EXTRA_DEBIAN} restart: no environment: - PACKAGES=$PACKAGES - EXTRA_DEBIAN=$EXTRA_DEBIAN - REPO=$REPO - BRANCH=$BRANCH - EXEC=$EXEC volumes: - type: volume source: pt-storage target: /root volume: subpath: debian deploy: mode: global resources: limits: cpus: $CPU memory: $RAM pt-fedora: container_name: pt-fedora build: context: ./ dockerfile: Dockerfiles/fedora network: host args: PACKAGES: ${PACKAGES} EXTRA_FEDORA: ${EXTRA_FEDORA} restart: no environment: - PACKAGES=$PACKAGES - EXTRA_FEDORA=$EXTRA_FEDORA - REPO=$REPO - BRANCH=$BRANCH - EXEC=$EXEC volumes: - type: volume source: pt-storage target: /root volume: subpath: fedora deploy: mode: global resources: limits: cpus: $CPU memory: $RAM pt-opensuse: container_name: pt-opensuse build: context: ./ dockerfile: Dockerfiles/opensuse network: host args: PACKAGES: ${PACKAGES} EXTRA_OPENSUSE: ${EXTRA_OPENSUSE} restart: no environment: - PACKAGES=$PACKAGES - EXTRA_OPENSUSE=$EXTRA_OPENSUSE - REPO=$REPO - BRANCH=$BRANCH - EXEC=$EXEC volumes: - type: volume source: pt-storage target: /root volume: subpath: opensuse deploy: mode: global resources: limits: cpus: $CPU memory: $RAM pt-ubuntu: container_name: pt-ubuntu build: context: ./ dockerfile: Dockerfiles/ubuntu network: host args: PACKAGES: ${PACKAGES} EXTRA_UBUNTU: ${EXTRA_UBUNTU} 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