50 Commits

Author SHA1 Message Date
Michael (Parker) Parker
b39a8186ae
Resolve issue with avatar storage (#1281)
* Resolve issue with avatar storage

This resolves the issue with getting avatar storage working

updates the entrypoint to create the `pelican-data/storage` folder on start.

Adds a dev dockerfile to build locally instead of needing to update the standard dockerfile.

* Move avatar folder

Moves the avatars folder in the storage folder in-case anything else needs storage as well.

Fixes an issue in the entrypoint where it wasn't creating the sub-folder correctly.
2025-04-27 20:56:10 -04:00
Quinten
ee838316e6
Make avatars work (#1251) 2025-04-21 11:25:36 +02:00
Quinten
09abec6ee6
fix(docker): enable multi-arch builds (#993)
* fix(docker): enable multi-arch builds

* Remove workflow_dispatch and add missing space

* There is no need for a matrix in the job build-and-push

* Update docker-publish.yml

* Only keep the artifacts for 7 days

* Bump dockerfile labs version to 1.13

* Added a comment in the Dockerfile explaining how to self-build it

* build-php-base cache should not be tagged
2025-02-15 23:32:15 +01:00
Josh
6a4963200c
Rootless Docker/Optimized build (#932)
* Rootless Dockerfile/Optimized build

Add unneeded files to .dockerignore
Split Dockerfile into more stages to allow Composer/Yarn to run concurrently
Don't log supervisord to a file, as file logging in a Docker container makes no sense
Redirect process output to container output for log processors
Run all processes as non-root
Minimize files with write permission for non-root user
Move docker folder out of .github, as it has nothing to do with GitHub

* Remove install-php-extensions utility after use and name final stage

* Test arm64 runner

* Allow Docker workflow caching multi-arch separately

* Fix Docker publish workflow branches

* Move Caddyfile/crontab config into docker directory, remove redundant supervisord user

* Further restrict permissions

* Supervisord logs
2025-01-23 11:01:14 +02:00
Quinten
43d0b78742
feat(docker): copy PHP extensions from builder stage to speedup the build
- Reuse compiled PHP extensions from composer stage instead of building them twice
2025-01-16 09:20:54 +01:00
Quinten
efbf4df2a2
Fix the docker build 2025-01-16 08:24:58 +01:00
Fredrik Falk
6655ccca6e
Speed up docker start (#647)
Starting the docker container is hampered due to setting `chown -R www-data:www-data /var/www/html/` on every start, causing it to traverse the entire directory which in our use case is very slow. This PR instead changes it to set permissions as part of the build process.

Sidenote: Is `LE_EMAIL` supposed to be used in addition to `ADMIN_EMAIL`?
2024-10-21 12:46:42 -04:00
MartinOscar
b14f6e1645
Update Dockerfile 2024-10-14 23:05:47 +02:00
MartinOscar
5f9ee09ebd
Add yarn timeout & cleanup 2024-10-14 22:13:01 +02:00
Michael (Parker) Parker
6117282909 update to use supervisord
Update the dockerfile to use supervisord
Update supervisord config to use start caddy unless configured not to.
Updated entrypoint to handle caddy skip for supervisord.
2024-09-27 17:36:45 -04:00
Lance Pioch
967d02612d Add cron and queue 2024-09-27 16:50:34 -04:00
Lance Pioch
4c19144640 Don’t need separate file 2024-09-27 15:53:44 -04:00
Lance Pioch
476eccca53 Add mysql 2024-09-27 15:33:18 -04:00
Michael Parker
6f15537d77 add ability to skip starting caddy
dockerfile
  cmd updated to just start php-fpm

entrypoint
  now starts caddy unless SKIP_CADDY has been set.

compose file
  updated ports to work properly.
  updated networks to use the correct network.
  added commented port and variable to disable caddy
  added further notes.
2024-09-26 18:29:46 -04:00
Lance Pioch
4fc8d98a0f Revert "wip"
This reverts commit 649e82d0c06f068f08b024a1f8fc4837b488cb3d.
2024-09-26 18:29:46 -04:00
Lance Pioch
9779365432 wip 2024-09-26 18:29:46 -04:00
Lance Pioch
3401703ccd Use this one primarily 2024-09-26 18:29:05 -04:00
Lance Pioch
f7cb42e008 Remove old one 2024-09-26 18:29:05 -04:00
Lance Pioch
b32f8966e1 Revert "Remove yarn"
This reverts commit 602c1ed9a6eb25c7f413651384f0d8866c8854a6.
2024-05-11 00:55:35 -04:00
Lance Pioch
602c1ed9a6 Remove yarn 2024-05-10 22:19:51 -04:00
Boy132
17ec5c7acf use node lts version for dockerfile 2024-04-22 08:58:05 +02:00
Boy132
fa46f78fd5 update dockerfile to php 8.3
add php intl extension
change to official nodejs image and to nodejs 21
2024-04-21 15:14:57 +02:00
Lance Pioch
c83dd86a41 Switch namespace back to App 2024-03-12 22:39:16 -04:00
Michael Parker
aa2f797f6f fix panel log folder
resolves #4838

Fixes an issue with the log symlink as well
2023-08-22 14:57:45 -10:00
Michael (Parker) Parker
eb503c5523
fix docker builds (#4249)
Updates php to 8.1
Resolves the issue when running docker-compose unconfigured redirects to https.
2022-07-16 08:48:40 -04:00
Alex
7866c19007
feat(docker): automated certificate renewal with certbot (#3916)
* feat(docker): automated certificate renewal with certbot

Executes cron on the first day of every month at 23:00 to reduce the load on LE when everyone else is doing it at 00. Certificate that expires in less than 30 days will be renewed.

closes #3907
2022-01-28 08:32:33 -08:00
Alex
49d5ef271d
ARM64 support for the Panel Docker image, closes #3580 (#3709)
Co-authored-by: Dane Everitt <dane@daneeveritt.com>
2021-12-04 10:33:42 -08:00
Michael Parker
94fd987400 fix ghcr builds
Fix nginx conf file location
Fix php-fpm conf file location
2021-08-03 23:33:25 -04:00
Dane Everitt
7df3c1d013
Tweaks 2020-11-14 13:58:51 -08:00
Dane Everitt
83707079e8
Fixes for docker compose formatting and missing storage dir 2020-11-14 13:26:43 -08:00
Dane Everitt
fe725397eb
Code cleanup and improvement 2020-11-14 13:10:11 -08:00
Jan
b5713ff7b7
Fix schedules in Dockerfile
The wrong directory to run PHP in, so schedules will not run
2020-08-21 15:10:17 +02:00
Michael Parker
05004a7a50 move docker foler
move docker folder from .dev/

update Dockerfile and entrypoint scripts to match
2020-04-12 16:02:48 -04:00
Michael Parker
61c2a491fc add packages for yarn 2020-04-11 21:48:31 -04:00
Michael Parker
3090c99a62 update docker stuff 2020-04-11 21:48:31 -04:00
Birkhoff Lee
a4f44f952a Dockerfile: Switch to php:7.2-fpm-alpine (#1713)
It's usually a better practice to use an official supported Docker image (in this case, php) so it's best optimized and supported.
2020-01-08 11:51:53 -05:00
Michael (Parker) Parker
e9084d432f update image for 0.7.11 2018-11-10 18:57:49 -05:00
Michael (Parker) Parker
e73e2418f3 adding php7-info
required for egg uploads to the panel
2018-10-13 14:52:20 -04:00
Michael (Parker) Parker
b370b2cb91 adding supervisord for queue workers
Added supervisord to run the queue worker,.

moved php-fpm and nginx to supervisord as well.
2018-09-15 21:22:13 -04:00
Michael (Parker) Parker
87e125ddad key:generate is f'd 2018-08-13 23:33:15 -04:00
Michael (Parker) Parker
63b76c60fb dockerfile changes 2018-08-04 19:21:51 -04:00
Michael (Parker) Parker
1ac13c82fa more docker changes 2018-07-18 17:15:28 -04:00
Michael (Parker) Parker
b7da8532ba Fixing install
Adding php fpm conf and fixing dockerfile
2018-07-18 15:31:35 -04:00
Michael (Parker) Parker
5427b7e172 dockerfile changes 2018-07-18 12:15:33 -04:00
Lance Pioch
44a65b4b3c Move to its own dir 2018-07-08 11:28:26 -04:00
Lance Pioch
7ef3b76499 Consolidate commands 2018-07-08 11:19:51 -04:00
Lance Pioch
925f28b29c Update alpine version 2018-07-08 11:19:46 -04:00
Asherslab
a93a73ef4d Moved files 2018-07-08 11:19:35 -04:00
Asherslab
737bae300c Some Additions 2018-07-08 11:19:30 -04:00
Asherslab
42e3eecf80 Add docker files 2018-07-08 11:19:24 -04:00