111 Commits
v2 ... v2.0.3

Author SHA1 Message Date
1c4212f709 health-check and migrate on boot (#25)
All checks were successful
ci/woodpecker/release/build_release/1 Pipeline was successful
ci/woodpecker/release/build_release/2 Pipeline was successful
ci/woodpecker/release/build_release/3 Pipeline was successful
ci/woodpecker/release/build_release/4 Pipeline was successful
add a health check to the container
and option to artisan migrate on boot

Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #25
2024-08-30 14:29:44 +02:00
943c155122 Update Readme.md 2024-08-30 09:23:11 +02:00
dcabe8f814 dev (#24)
Some checks failed
ci/woodpecker/release/build_release/1 Pipeline was successful
ci/woodpecker/release/build_release/2 Pipeline was successful
ci/woodpecker/release/build_release/3 Pipeline was successful
ci/woodpecker/release/build_release/4 Pipeline was successful
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
install simplexml and xmlreader
and fix issue with running as none root user
and remove debug pipeline step

Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #24
2024-08-29 10:00:02 +02:00
e339fbb448 Update .woodpecker/build_release.yml
Some checks failed
ci/woodpecker/release/build_release/1 Pipeline was successful
ci/woodpecker/release/build_release/2 Pipeline was successful
ci/woodpecker/release/build_release/3 Pipeline was successful
ci/woodpecker/release/build_release/4 Pipeline was successful
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
2024-08-26 15:29:37 +02:00
aaf72701dc Update .woodpecker/build_release.yml
Some checks failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
2024-08-26 15:28:48 +02:00
2ba0ff06f4 Merge pull request 'fix cron tags v2' (#23) from dev into master
Some checks failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
Reviewed-on: #23
2024-08-26 15:01:45 +02:00
Ruben Momoa
e285f9da31 Merge branch 'master' into dev
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
# Conflicts:
#	.woodpecker/build_release.yml
2024-08-26 15:01:14 +02:00
Ruben Momoa
18fb8d6a0a fix cron tags 2024-08-26 14:59:58 +02:00
5bd57bae0a fix cron tags (#21)
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #21
2024-08-26 14:57:46 +02:00
Ruben Momoa
fb4e38eea7 fix cron tags
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-26 14:57:03 +02:00
Ruben Momoa
e907aad833 test fix cron tags
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-26 14:55:39 +02:00
Ruben Momoa
500db63864 test fix cron tags 2024-08-26 14:54:58 +02:00
Ruben Momoa
d0bbf86b3c test fix cron tags
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-26 14:54:08 +02:00
16a6757d5f Merge pull request 'fix cron pre-check' (#20) from dev into master
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline was successful
ci/woodpecker/manual/build_release/2 Pipeline was successful
ci/woodpecker/manual/build_release/3 Pipeline failed
ci/woodpecker/release/build_release/1 Pipeline is pending
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
Reviewed-on: #20
2024-08-26 14:36:49 +02:00
Ruben Momoa
b34c40ecd7 fix cron pre-check
[SKIP CI]
2024-08-26 14:36:20 +02:00
dd44e8905d Merge pull request 'fix cron pre-check' (#19) from dev into master
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #19
2024-08-26 14:35:02 +02:00
Ruben Momoa
07aa60dfbf fix cron pre-check
[SKIP CI]
2024-08-26 14:29:28 +02:00
521d2d5b33 Merge pull request 'fix cron pre-check' (#18) from dev into master
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #18
2024-08-26 14:28:37 +02:00
Ruben Momoa
80148996a5 fix cron pre-check
[SKIP CI]
2024-08-26 14:27:17 +02:00
b0a2bbe524 fix cron pre-check
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #17
2024-08-26 14:22:52 +02:00
Ruben Momoa
d7029feddb fix cron pre-check
[SKIP CI]
2024-08-26 14:21:59 +02:00
fc6c30e379 Merge pull request 'final tags fix' (#16) from dev into master
Some checks failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #16
2024-08-26 14:17:42 +02:00
Ruben Momoa
5f3ebf55c5 final tags fix
[SKIP CI]
2024-08-26 14:17:16 +02:00
e49f77bc82 Merge pull request 'changed script name' (#15) from dev into master
Some checks failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #15
2024-08-26 13:50:20 +02:00
Ruben Momoa
82c3f183af changed script name
All checks were successful
ci/woodpecker/manual/build_dev Pipeline was successful
[SKIP CI]
2024-08-26 13:49:54 +02:00
1aa2f4b20a Merge pull request 'dev' (#14) from dev into master
Some checks failed
ci/woodpecker/manual/build_release/1 Pipeline failed
ci/woodpecker/manual/build_release/2 Pipeline failed
ci/woodpecker/manual/build_release/3 Pipeline failed
ci/woodpecker/manual/build_release/4 Pipeline failed
Reviewed-on: #14
2024-08-26 13:46:55 +02:00
Ruben Momoa
ec706bc863 execute script in current dir
[SKIP CI]
2024-08-26 13:46:02 +02:00
8536c97f73 fix script to set tags
Some checks failed
ci/woodpecker/release/build_release/1 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline failed
ci/woodpecker/release/build_release/3 Pipeline failed
ci/woodpecker/release/build_release/4 Pipeline failed
Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #13
2024-08-26 13:42:58 +02:00
Ruben Momoa
cbe5ac45d9 move script and add to dev build trigger
[SKIP CI]
2024-08-26 13:42:10 +02:00
Ruben Momoa
07725c2ced gen tags test
Some checks failed
ci/woodpecker/manual/build_dev Pipeline failed
2024-08-26 13:39:30 +02:00
Ruben Momoa
a74d2c217b gen tags test
Some checks failed
ci/woodpecker/manual/build_dev Pipeline failed
2024-08-26 12:27:19 +02:00
Ruben Momoa
68855113eb gen tags test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-26 12:21:34 +02:00
Ruben Momoa
0e64b7232f gen tags test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-26 12:20:46 +02:00
304d8f3756 add script to gen tags
Some checks failed
ci/woodpecker/release/build_release/1 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline failed
ci/woodpecker/release/build_release/3 Pipeline failed
ci/woodpecker/release/build_release/4 Pipeline failed
there is something wrong with the default way
2024-08-26 12:16:57 +02:00
Ruben Momoa
2a2f6b052e add script to gen tags
there is something wrong with the default way
[SKIP CI]
2024-08-26 12:15:31 +02:00
Ruben Momoa
8f68b0f363 Merge branch 'master' into dev 2024-08-23 17:08:35 +02:00
Ruben Momoa
e57e690650 update documentation
[SKIP CI]
2024-08-23 17:07:51 +02:00
02f20cc7dc change latest tag to include php version
Some checks failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #11
2024-08-23 16:36:16 +02:00
Ruben Momoa
8aa2246efe Merge branch 'master' into dev 2024-08-23 16:29:03 +02:00
Ruben Momoa
5c56c52e5c change latest tag to include php version
[SKIP CI]
2024-08-23 16:28:40 +02:00
791bfb5b56 fix: build proccess
Some checks failed
ci/woodpecker/release/build_release/2 Pipeline is pending
ci/woodpecker/release/build_release/3 Pipeline is pending
ci/woodpecker/release/build_release/4 Pipeline is pending
ci/woodpecker/release/build_release/1 Pipeline failed
Reviewed-on: #10
2024-08-23 16:23:02 +02:00
Ruben Momoa
aa91a2f40e Merge branch 'master' into dev
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
# Conflicts:
#	.woodpecker/build_release.yml
2024-08-23 16:22:09 +02:00
Ruben Momoa
223f97ddbc revert temp changes
[SKIP CI]
2024-08-23 16:20:29 +02:00
Ruben Momoa
08a110e307 fix: missing build arg
Some checks failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
2024-08-23 16:18:45 +02:00
Ruben Momoa
4d3f472d8f test build
Some checks failed
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_release/1 Pipeline failed
ci/woodpecker/manual/build_release/2 Pipeline failed
2024-08-23 16:17:35 +02:00
Ruben Momoa
38ad152746 test build 2024-08-23 16:15:27 +02:00
Ruben Momoa
8f7a414e01 test build
Some checks failed
ci/woodpecker/manual/build_release/2 Pipeline is pending
ci/woodpecker/manual/build_release/3 Pipeline is pending
ci/woodpecker/manual/build_release/4 Pipeline is pending
ci/woodpecker/manual/build_dev Pipeline was successful
ci/woodpecker/manual/build_release/1 Pipeline failed
2024-08-23 16:12:52 +02:00
Ruben Momoa
b92f016541 change tag suffix 2024-08-23 16:12:21 +02:00
Ruben Momoa
41d81b8d4c install pdo_mysql using docker-php script
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-23 15:28:16 +02:00
Ruben Momoa
256413205c add missing extensions
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-23 15:21:10 +02:00
Ruben Momoa
b967a410e6 install filter using docker-php script
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-23 15:16:00 +02:00
Ruben Momoa
fa92353bee switch from docker-php scripts to apk add
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-23 15:14:02 +02:00
Ruben Momoa
f908ab0ddc composer before npm 2024-08-23 15:13:40 +02:00
Ruben Momoa
119d49f46b change image tags
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-23 10:37:10 +02:00
Ruben Momoa
b4fb921549 change example 2024-08-23 10:19:09 +02:00
Ruben Momoa
0a9a900ee7 allow want word splitting for packages and extensions
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-23 10:00:32 +02:00
Ruben Momoa
3510e1a279 switch to ash
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-22 17:07:15 +02:00
Ruben Momoa
1681e3d926 install extra packages and extensions on first boot
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-22 16:41:22 +02:00
Ruben Momoa
5b726223ed dev does not run cron
[SKIP CI]
2024-08-22 16:21:36 +02:00
Ruben Momoa
ee86e83bee dynamic FROM
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful
2024-08-22 16:18:26 +02:00
Ruben Momoa
651798c843 dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:13:53 +02:00
Ruben Momoa
37f62ee64c dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:12:20 +02:00
Ruben Momoa
c00077252c dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:11:36 +02:00
Ruben Momoa
ea1db4fa0c dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:09:34 +02:00
Ruben Momoa
67c02c8af1 dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:05:56 +02:00
Ruben Momoa
ed046e5d7e dynamic FROM test
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:03:46 +02:00
Ruben Momoa
f513ac31be fix: dynamic from
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 16:00:40 +02:00
Ruben Momoa
d2a42e790a fix: dynamic from
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 15:59:46 +02:00
Ruben Momoa
ce1ccad16d fix: dynamic from
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 15:58:35 +02:00
Ruben Momoa
235d692f3b drop ubuntu build
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 15:56:17 +02:00
Ruben Momoa
8aedf67aba drop ubuntu build
Some checks failed
ci/woodpecker/push/build_dev Pipeline failed
2024-08-22 15:55:16 +02:00
Ruben Momoa
e2137eb2e6 commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 15:31:26 +02:00
Ruben Momoa
60d0d85b2e commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
2024-08-22 15:21:41 +02:00
Ruben Momoa
6eac9c86b6 commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 15:18:32 +02:00
Ruben Momoa
8c9563ec98 commands test 2024-08-22 15:07:02 +02:00
Ruben Momoa
c7ff9f4a28 commands test 2024-08-22 15:06:08 +02:00
Ruben Momoa
f937cbbd23 commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 14:59:12 +02:00
Ruben Momoa
8f55154708 commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 14:58:19 +02:00
Ruben Momoa
6ba1dbc284 commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 14:44:59 +02:00
Ruben Momoa
bc7375486e commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 14:44:07 +02:00
Ruben Momoa
9dcc391e62 commands test 2024-08-22 14:43:36 +02:00
Ruben Momoa
12257ae7c1 commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 14:30:54 +02:00
Ruben Momoa
4c30285fec commands test
Some checks failed
ci/woodpecker/manual/build_alpine Pipeline failed
ci/woodpecker/manual/build_ubuntu Pipeline failed
2024-08-22 14:29:17 +02:00
Ruben Momoa
5472f30f00 commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 14:25:52 +02:00
Ruben Momoa
f4014cf466 commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 14:23:39 +02:00
Ruben Momoa
d5f712e8ff commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 14:22:33 +02:00
Ruben Momoa
d6f7aa5824 commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 14:18:58 +02:00
Ruben Momoa
67bc4be21a commands test
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
2024-08-22 14:08:29 +02:00
Ruben Momoa
a7ae8a91d1 commands test 2024-08-22 13:58:31 +02:00
Ruben Momoa
e2840e6a83 install composer and npm from the package-manager
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful
2024-08-22 13:33:38 +02:00
Ruben Momoa
0366d1891c run ok all branches
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
ci/woodpecker/push/build_ubuntu Pipeline was successful
2024-08-22 13:03:52 +02:00
Ruben Momoa
df912b1bb3 install required packages and skip preinstalled php extensions 2024-08-22 12:01:26 +02:00
Ruben Momoa
2739f1040e dont chown /var/www/html
[SKIP CI]
2024-08-22 11:39:11 +02:00
Ruben Momoa
efef61255a skip empty pipelines
[SKIP CI]
2024-08-22 11:38:41 +02:00
Ruben Momoa
092de40f5a add libcurl pkg
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
ci/woodpecker/push/build_ubuntu Pipeline was successful
2024-08-22 11:35:55 +02:00
Ruben Momoa
02d97d75aa add curl pkg
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
ci/woodpecker/push/build_ubuntu Pipeline was successful
2024-08-22 11:28:10 +02:00
Ruben Momoa
c24604d052 separate steps for alpine and ubuntu
Some checks failed
ci/woodpecker/push/build_alpine Pipeline failed
ci/woodpecker/push/build_ubuntu Pipeline was successful
2024-08-22 11:26:03 +02:00
Ruben Momoa
bba5441421 separate steps for alpine and ubuntu 2024-08-22 11:25:33 +02:00
Ruben Momoa
6cb5666991 add alpine build
Some checks failed
ci/woodpecker/push/build Pipeline failed
2024-08-22 11:19:09 +02:00
Ruben Momoa
d3b38ddf77 simplify composer example 2024-08-22 09:50:07 +02:00
Ruben Momoa
b4c00d4459 option to change the port of the webserver
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2024-08-20 17:04:17 +02:00
Ruben Momoa
9c8504a723 change host to 0.0.0.0 to accept all connections
All checks were successful
ci/woodpecker/manual/build Pipeline was successful
[SKIP CI]
2024-08-20 16:29:08 +02:00
Ruben Momoa
9b0bf676a0 install more php pkgs
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2024-08-20 16:16:12 +02:00
Ruben Momoa
e0b39f56f0 run as root
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2024-08-20 16:01:32 +02:00
Ruben Momoa
bfe7b285bd run as root
Some checks failed
ci/woodpecker/push/build Pipeline failed
2024-08-20 15:53:07 +02:00
Ruben Momoa
7d42d92f12 run as root
Some checks failed
ci/woodpecker/push/build Pipeline failed
2024-08-20 15:51:53 +02:00
Ruben Momoa
4dd28bee01 run as root
Some checks failed
ci/woodpecker/push/build Pipeline failed
2024-08-20 15:50:30 +02:00
Ruben Momoa
7f3fb0a9c9 fix run command extra training \
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2024-08-20 15:20:05 +02:00
Ruben Momoa
42ea0720f5 split INSTALL_BEFORE_START into BOOT_NPM_INSTALL
Some checks failed
ci/woodpecker/push/build Pipeline failed
and BOOT_COMPOSER_INSTALL
2024-08-20 15:18:42 +02:00
Ruben Momoa
0e95ac4a55 allow to run on all branches
Some checks failed
ci/woodpecker/push/build Pipeline failed
2024-08-20 15:12:58 +02:00
Ruben Momoa
40ad625556 combine all run commands 2024-08-20 15:10:49 +02:00
7 changed files with 149 additions and 45 deletions

View File

@@ -6,7 +6,7 @@ when:
branch:
exclude: [ main, master ]
path:
include: [ '.woodpecker/build_dev.yml', 'build/*', 'Dockerfile' ]
include: [ '.woodpecker/build_dev.yml', 'build/*', 'Dockerfile', 'gen-tag-list.sh' ]
event: [ push, manual ]
steps:

View File

@@ -1,9 +1,9 @@
matrix:
PHP_VERSION:
- 8
- 8.3
- 8.2
- 8.1
- 8.2
- 8.3
- 8
when:
branch:
@@ -11,14 +11,21 @@ when:
cron: nightly
event: [ cron, release, manual ]
clone:
git:
image: woodpeckerci/plugin-git
settings:
partial: true
tags: true
steps:
cron_pre_check:
image: docker
commands:
- docker pull php:${PHP_VERSION}-fpm-alpine
- docker pull vistanarvas/simple-laravel:${PHP_VERSION}-fpm-alpine
- docker pull vistanarvas/simple-laravel:latest-php-${PHP_VERSION}
- BASE_IMG=$(docker inspect php:${PHP_VERSION}-fpm-alpine --format='{{.Created}}' | cut -d '.' -f 1)
- PREV_IMG=$(docker inspect vistanarvas/simple-laravel:php-${PHP_VERSION} --format='{{.Created}}' | cut -d '.' -f 1)
- PREV_IMG=$(docker inspect vistanarvas/simple-laravel:latest-php-${PHP_VERSION} --format='{{.Created}}' | cut -d '.' -f 1)
- BASE_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$BASE_IMG" +%s)
- PREV_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$PREV_IMG" +%s)
- if [ "$PREV_DATE" -gt "$BASE_DATE" ]; then echo "no rebuild needed"; exit 1; fi
@@ -28,6 +35,12 @@ steps:
cron: nightly
event: [ cron ]
gen_tags:
image: docker
commands:
- ./gen-tag-list.sh $(git describe --tags --abbrev=0) php-${PHP_VERSION}
- cat tags.txt
release_alpine_build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
@@ -36,5 +49,6 @@ steps:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
auto_tag: true
auto_tag_suffix: -php-${PHP_VERSION}
tags_file: tags.txt
build_args:
- BASE_VERSION=${PHP_VERSION}

View File

@@ -5,6 +5,9 @@ FROM php:${BASE_VERSION}-fpm-alpine
# port to for the webserver
ENV WEBSERVER_PORT=8080
# path without leading / (slash)
ENV HEALTHCHECK_PATH=""
COPY start-container.sh /usr/local/bin/start-container
RUN apk add --no-cache \
@@ -25,11 +28,16 @@ RUN apk add --no-cache \
php-exif \
php-xmlwriter \
php-tokenizer \
php-simplexml \
php-xmlreader \
composer \
npm \
&& docker-php-ext-install filter pdo_mysql \
&& chmod +x /usr/local/bin/start-container
HEALTHCHECK --interval=5m --timeout=3s --start-period=5m --start-interval=10s \
CMD curl -f http://localhost:${WEBSERVER_PORT}/${HEALTHCHECK_PATH} || exit 1
EXPOSE ${WEBSERVER_PORT}
WORKDIR /var/www/html

View File

@@ -1,11 +1,73 @@
[![status-badge](https://woodpecker.narvas.tech/api/badges/1/status.svg)](https://woodpecker.narvas.tech/repos/1)
# simple-laravel
Get a Laravel server up and running quickly for testing and small-scale deployments with this lightweight Docker image.
This image is designed to provide a hassle-free way to spin up a Laravel server for development, testing, and small-scale production environments. It's perfect for rapid prototyping, proof-of-concepts, and low-traffic web applications.
Based on the official PHP image, ensuring a stable and secure foundation
Pre-configured with Laravel and its dependencies, saving you time and effort
Optimized for small-scale deployments, keeping resource usage to a minimum
Easy to use and extend, with a simple and intuitive configuration
## tags
This image follows a similar tagging schema as the official PHP image.
`{simple-laravel version}-php-{php version} (e.g. vistanarvas/simple-laravel:2.0.2-php-8.3)`
## setting laravel up in a container
### compose
```yaml
version: '3'
services:
app:
image: vistanarvas/simple-laravel
ports:
- '8080:8080'
- '5173:5173'
environment:
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: laravel
DB_USERNAME: laravel
DB_PASSWORD: password
BOOT_COMPOSER_INSTALL: true # runs `composer install` on boot
BOOT_NPM_INSTALL: true # runs `npm install` on boot
BOOT_NPM_DEV: true # starts `npm dev`
# Extra packages and php extensions to install on first boot
# EXTRA_APK_PACKAGES: # example: libpng-dev icu-dev
# EXTRA_PHP_EXTENSIONS: # example: exif intl bcmath gd pdo_mysql
volumes:
- '[Path to your laravel project]:/var/www/html'
depends_on:
- mysql
mysql:
image: 'mysql/mysql-server:8.0'
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: password
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql:/var/lib/mysql'
volumes:
mysql:
driver: local
```
## suggested changes to laravel
### vite
edit `/vite.config.js`
`/vite.config.js`
```diff
import laravel from 'laravel-vite-plugin';
@@ -20,9 +82,8 @@ edit `/vite.config.js`
input: [
```
edit `/package.json`
---
`/package.json`
```diff
"private": true,
"type": "module",

View File

@@ -3,8 +3,13 @@
# exit when any command fails
set -e
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
fi
# install extra packages and extensions on first boot
if [[ ! -f /etc/first_boot ]]; then
if [[ $(id -u) -eq 0 && ! -f /etc/first_boot ]]; then
if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then
# shellcheck disable=SC2086
apk add --no-cache $EXTRA_APK_PACKAGES
@@ -23,12 +28,12 @@ fi
if [[ "$BOOT_NPM_INSTALL" = true ]]; then
echo "npm install"
npm install
npm install --cache /tmp/npm
fi
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
if [[ "$BOOT_MIGRATE" = true ]]; then
echo "artisan migrate"
php /var/www/html/artisan migrate
fi
if [[ "$BOOT_NPM_DEV" = true ]]; then

View File

@@ -3,57 +3,40 @@ services:
app:
image: vistanarvas/simple-laravel
ports:
- '8080:80'
- '8080:8080'
- '5173:5173'
environment:
WEBSERVER_PORT: 80
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: laravel
DB_USERNAME: laravel
DB_PASSWORD: password
BOOT_NPM_DEV: true # also starts `npm dev`
BOOT_NPM_INSTALL: true # runs `npm install` on boot
BOOT_COMPOSER_INSTALL: true # runs `composer install` on boot
BOOT_NPM_INSTALL: true # runs `npm install` on boot
BOOT_NPM_DEV: true # starts `npm dev`
# Extra packages and php extensions to install on first boot
# EXTRA_APK_PACKAGES: # example: libpng-dev icu-dev
# EXTRA_PHP_EXTENSIONS: # example: exif intl bcmath gd pdo_mysql
volumes:
- '[Path to your laravel project]:/var/www/html'
depends_on:
- mysql
- redis
- mailpit
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: root_password
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: password
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql:/var/lib/mysql'
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
volumes:
- 'redis:/data'
mailpit:
image: 'axllent/mailpit:latest'
ports:
- '1025:1025'
- '8025:8025'
volumes:
mysql:
driver: local
redis:
driver: local
driver: local

33
gen-tag-list.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env ash
# this script generates a tags_file for Buildx (https://woodpecker-ci.org/plugins/Docker%20Buildx)
# Check if a command-line argument is provided
if [ -z "$1" ]; then
echo "Please provide a version as a command-line argument."
exit 1
fi
# Example v2.0.1
version=$1
# Suffix
suffix=""
if [[ -n $2 ]]; then
suffix="-$2"
fi
touch tags.txt
if [[ "$2" = "php-8" ]]; then
echo "latest" >> tags.txt
fi
# Check if the first character is "V" or "v" and remove it
if [[ "${version:0:1}" == "V" || "${version:0:1}" == "v" ]]; then
version="${version#?}"
fi
echo "latest$suffix" >> tags.txt
echo "$version" | cut -d'.' -f1 | xargs -I {} echo "{}$suffix" >> tags.txt
echo "$version" | cut -d'.' -f1,2 | xargs -I {} echo "{}$suffix" >> tags.txt
echo "$version" | cut -d'.' -f1,2,3 | xargs -I {} echo "{}$suffix" >> tags.txt