Skip to content

Commit

Permalink
Add custom Docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrespel committed Nov 19, 2024
1 parent 7e45245 commit 85cff13
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Docker Build

on:
push:
schedule:
- cron: '15 3 * * 0'
workflow_dispatch:

jobs:
build:
uses: fab-infra/actions/.github/workflows/docker-build.yml@master
with:
docker-image: jedi-comport
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# phpBB 3.3 base image
FROM ghcr.io/fab-infra/phpbb:3.3-opensuse15

# Download and extract extensions
RUN for PHPBB_EXT in 184661 204724 206731; do \
curl -sSLf -o "/tmp/phbb_ext.zip" "https://www.phpbb.com/customise/db/download/${PHPBB_EXT}" &&\
unzip "/tmp/phbb_ext.zip" -d ext &&\
rm -f "/tmp/phbb_ext.zip"; \
done &&\
chown -R wwwrun:www ext

# Environment
ENV PHPBB_EXTENSIONS="phpbb/boardannouncements,alfredoramos/seometadata,alfredoramos/simplespoiler"

# Files
COPY --chown=wwwrun:www ./styles styles
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker compose up -d

Then, point your browser to http://comport.dev.jediholo.net and you should see the JEDI Comport forum.

Login as admin/admin, then go to the ACP:
Login as admin/admin123, then go to the ACP:
- In Customize > Install Styles, install the `jediholo` style.
- In General > Board settings, set `jediholo` as the Default and Guest style.

Expand Down
19 changes: 13 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
services:
phpbb:
image: bitnami/phpbb:3.3.12
image: ghcr.io/jediholo/jedi-comport:master
restart: on-failure
build:
context: .
ports:
- '127.0.0.12:80:8080'
volumes:
- 'phpbb:/bitnami/phpbb'
- './setup.sh:/docker-entrypoint-init.d/setup.sh'
- './styles/jediholo:/phpbb/styles/jediholo'
- 'phpbb-files:/srv/www/apps/phpbb/files'
- 'phpbb-images:/srv/www/apps/phpbb/images'
- 'phpbb-store:/srv/www/apps/phpbb/store'
- './styles/jediholo:/srv/www/apps/phpbb/styles/jediholo'
environment:
- PHPBB_USERNAME=admin
- PHPBB_PASSWORD=admin
- PHPBB_PASSWORD=admin123
- PHPBB_FORUM_NAME=JEDI Comport
- PHPBB_FORUM_DESCRIPTION=The JEDI HoloNet Communications Port
- [email protected]
Expand All @@ -19,6 +23,7 @@ services:
- PHPBB_DATABASE_NAME=jedi-comport
mysql:
image: mariadb:10.11
restart: on-failure
ports:
- '127.0.0.12:3306:3306'
volumes:
Expand All @@ -30,4 +35,6 @@ services:
- MYSQL_DATABASE=jedi-comport
volumes:
mysql:
phpbb:
phpbb-files:
phpbb-images:
phpbb-store:
3 changes: 0 additions & 3 deletions setup.sh

This file was deleted.

0 comments on commit 85cff13

Please sign in to comment.