Skip to content

Commit

Permalink
Shared base
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Dec 23, 2024
1 parent d332998 commit a444159
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 52 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - base
run: podman build -t ghcr.io/gbraad-homelab/nextcloud/base -f containers/Containerfile-base .
- name: Run podman build - nextcloud
run: podman build -t ghcr.io/gbraad-homelab/nextcloud/hub9 -f containers/Containerfile-nextcloud .
- name: Push image to ghcr.io - base
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-homelab/nextcloud/base
run: podman build -t ghcr.io/gbraad-homelab/nextcloud/hub9 -f containers/Containerfile .
- name: Push image to ghcr.io - nextcloud
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-homelab/nextcloud/hub9
23 changes: 23 additions & 0 deletions containers/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG BASE_IMAGE="ghcr.io/gbraad-homelab/private-base"
ARG BASE_VERSION="latest"

FROM ${BASE_IMAGE}:${BASE_VERSION}

# php base
RUN dnf install -y php php-fpm php-mysqlnd php-bcmath \
php-gd php-intl php-ldap php-mbstring php-pdo \
php-process php-soap php-opcache php-xml \
php-gmp php-pecl-apcu php-pecl-zip mod_ssl hostname \
&& dnf clean all \
&& rm -rf /var/cache/yum

# install nextcloud
RUN curl -fsSL https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 -o /tmp/nextcloud.tar.bz2 \
&& tar -xjf /tmp/nextcloud.tar.bz2 --strip-components=1 -C /var/www/html/ \
&& rm -f /tmp/nextcloud.tar.bz2 \
&& chown apache /var/www/html/apps/ \
&& chown apache /var/www/html/config/

# systemd
RUN systemctl enable httpd
ENTRYPOINT ["/sbin/init"]
36 changes: 0 additions & 36 deletions containers/Containerfile-base

This file was deleted.

11 changes: 0 additions & 11 deletions containers/Containerfile-nextcloud

This file was deleted.

0 comments on commit a444159

Please sign in to comment.