From 41279e27a3e871ccbb5bb0f2041d82891d8f668a Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 23 Feb 2024 03:06:03 -0500 Subject: [PATCH] services/pkg/popcorn: create popcorn container --- .github/workflows/pkg-popcorn.yml | 23 +++++++++++++++++++++++ services/pkg/docker-bake.hcl | 5 +++++ services/pkg/popcorn/Dockerfile | 6 ++++++ 3 files changed, 34 insertions(+) create mode 100644 .github/workflows/pkg-popcorn.yml create mode 100644 services/pkg/popcorn/Dockerfile diff --git a/.github/workflows/pkg-popcorn.yml b/.github/workflows/pkg-popcorn.yml new file mode 100644 index 00000000..e1510cc1 --- /dev/null +++ b/.github/workflows/pkg-popcorn.yml @@ -0,0 +1,23 @@ +name: Popcorn Service Container +on: + workflow_dispatch: + pull_request: + branches: + - master + paths: + - services/pkg/popcorn/** + push: + branches: + - master + paths: + - services/pkg/popcorn/** + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + main: + uses: ./.github/workflows/build-pkg.yml + with: + service_name: popcorn diff --git a/services/pkg/docker-bake.hcl b/services/pkg/docker-bake.hcl index fc15205c..228490d7 100644 --- a/services/pkg/docker-bake.hcl +++ b/services/pkg/docker-bake.hcl @@ -55,6 +55,11 @@ target "infra-nginx" { context = "services/pkg/nginx/" } +target "infra-popcorn" { + inherits = ["_common-glibc"] + context = "services/pkg/popcorn/" +} + target "infra-rspamd" { inherits = ["_common-musl"] context = "services/pkg/rspamd/" diff --git a/services/pkg/popcorn/Dockerfile b/services/pkg/popcorn/Dockerfile new file mode 100644 index 00000000..f38f87bb --- /dev/null +++ b/services/pkg/popcorn/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/void-linux/void-glibc:20231230R1 + +RUN xbps-install -Suy xbps && xbps-install -y PopCorn-Server && \ + rm -rf /var/cache/xbps + +CMD ["/bin/sh"]