133 Commits

Author SHA1 Message Date
4c2fb9a319 Update .woodpecker/build_release.yml
Some checks failed
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 was successful
ci/woodpecker/manual/build_release/4 Pipeline was successful
ci/woodpecker/manual/build_release/5 Pipeline was successful
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/5 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
2025-01-15 11:04:00 +01:00
033ea5e492 multi arch builds (#26)
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/1 Pipeline was successful
ci/woodpecker/manual/build_release/2 Pipeline was successful
ci/woodpecker/manual/build_release/3 Pipeline was successful
ci/woodpecker/manual/build_release/4 Pipeline was successful
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/cron/build_release/1 Pipeline failed
build for multiple architects

Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #26
2024-08-30 16:02:35 +02:00
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
cbd06482f4 switch base container from ubuntu to php-alpine (#9)
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
Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #9
2024-08-23 15:54:47 +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
Ruben Momoa
6f648c4ebd fix: dev build step
All checks were successful
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
2024-08-20 15:04:48 +02:00
Ruben Momoa
496f349073 exclude master branch 2024-08-20 15:03:24 +02:00
Ruben Momoa
4dc2c625b5 just use CI_COMMIT_BRANCH for dev builds 2024-08-20 14:57:07 +02:00
Ruben Momoa
3609df566d Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	.woodpecker/build.yml
2024-08-20 14:56:07 +02:00
Ruben Momoa
8d116129ff add dev build 2024-08-20 14:55:39 +02:00
Ruben Momoa
db47dddbf9 add dev build
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:53:55 +02:00
Ruben Momoa
40c9fce6d8 clear apt cache 2024-08-20 14:44:04 +02:00
Ruben Momoa
b274e3f91d temp
All checks were successful
ci/woodpecker/manual/build Pipeline was successful
2024-08-20 14:36:12 +02:00
Ruben Momoa
369e9e9c0d revert temp changes and fix error
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:34:22 +02:00
Ruben Momoa
6550f811ea temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:30:02 +02:00
Ruben Momoa
2b688a1521 temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:29:06 +02:00
Ruben Momoa
5661689b2b temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:21:31 +02:00
Ruben Momoa
efbbad801c temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:16:06 +02:00
Ruben Momoa
34000c324a temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:14:16 +02:00
Ruben Momoa
f477835dc3 temp
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:12:55 +02:00
Ruben Momoa
66c1c339d0 update
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:10:45 +02:00
Ruben Momoa
36208b9380 update
Some checks failed
ci/woodpecker/manual/build Pipeline failed
2024-08-20 14:09:22 +02:00
Ruben Momoa
f464938a74 update
All checks were successful
ci/woodpecker/manual/build Pipeline was successful
2024-08-20 14:07:02 +02:00
vista
e32314b0fb update submodules [skip ci]
Some checks failed
ci/woodpecker/cron/build Pipeline failed
2024-03-31 01:19:13 +00:00
12 changed files with 266 additions and 202 deletions

View File

@@ -1,19 +0,0 @@
# the laravel version to install (empty for latest)
LARAVEL_VERSION=
# weather to run "npm dev run" at boot
AUTO_START_NPM_DEV=true
# external ports
FORWARD_LARAVEL_PORT=80
FORWARD_VITE_PORT=5173
FORWARD_DB_PORT=3306
FORWARD_REDIS_PORT=6379
FORWARD_MAILPIT_PORT=1025
FORWARD_MAILPIT_DASHBOARD_PORT=8025
# DB settings (this will overwrite the defaults in the laravel project)
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=password

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "build/submodules/artisan-bash-completion"]
path = build/submodules/artisan-bash-completion
url = https://gitlab.com/balping/artisan-bash-completion.git

View File

@@ -1,45 +0,0 @@
when:
branch: dev
steps:
update_submodule:
image: woodpeckerci/plugin-git
secrets:
- source: gitea_token
target: GITEA_TOKEN
- source: gitea_user
target: GITEA_USER
commands:
- git submodule update --remote
- if [ ! "$(git status --porcelain)" ]; then echo "no changes"; exit 0; fi
- git config user.name "$${GITEA_USER}"
- git config user.email "$${GITEA_USER}.gitea@narvas.tech"
- git add -A
- git commit -m "update submodules [skip ci]"
- git push "https://$${GITEA_USER}:$${GITEA_TOKEN}@git.narvas.tech/$${CI_REPO}"
check_base:
image: vistanarvas/container-update-checker:latest
secrets:
- source: dockerhub_token
target: docker_password
environment:
DOCKER_USERNAME: vistanarvas
BASE: ubuntu:latest
TARGET: vistanarvas/${CI_REPO_NAME}:latest
when:
cron: nightly
event: cron
build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
tag: dev
when:
path:
include: [ '.woodpecker/build-dev.yaml', 'build/*', 'Dockerfile' ]
cron: nightly
event: [push, cron, manual]

View File

@@ -1,48 +0,0 @@
when:
branch: master
steps:
update_submodule:
image: woodpeckerci/plugin-git
secrets:
- source: gitea_token
target: GITEA_TOKEN
- source: gitea_user
target: GITEA_USER
commands:
- git submodule update --remote
- if [ ! "$(git status --porcelain)" ]; then echo "no changes"; exit 0; fi
- git config user.name "$${GITEA_USER}"
- git config user.email "$${GITEA_USER}.gitea@narvas.tech"
- git add -A
- git commit -m "update submodules [skip ci]"
- git push "https://$${GITEA_USER}:$${GITEA_TOKEN}@git.narvas.tech/$${CI_REPO}"
when:
cron: nightly
event: [push, tag, deployment, cron, manual]
check_base:
image: vistanarvas/container-update-checker:latest
secrets:
- source: dockerhub_token
target: docker_password
environment:
DOCKER_USERNAME: vistanarvas
BASE: ubuntu:latest
TARGET: vistanarvas/${CI_REPO_NAME}:latest
when:
cron: nightly
event: cron
build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
auto_tag: true
when:
path:
include: [ '.woodpecker/build.yml', 'build/*', 'Dockerfile' ]
cron: nightly
event: [push, tag, deployment, cron, manual]

23
.woodpecker/build_dev.yml Normal file
View File

@@ -0,0 +1,23 @@
matrix:
PHP_VERSION:
- 8
when:
branch:
exclude: [ main, master ]
path:
include: [ '.woodpecker/build_dev.yml', 'build/*', 'Dockerfile', 'gen-tag-list.sh' ]
event: [ push, manual ]
steps:
dev_alpine_build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
tag: test-${CI_COMMIT_BRANCH}-php-${PHP_VERSION}
build_args:
- BASE_VERSION=${PHP_VERSION}

View File

@@ -0,0 +1,56 @@
matrix:
PHP_VERSION:
- 8.1
- 8.2
- 8.3
- 8.4
- 8
when:
branch:
include: [ master ]
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: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: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
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
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:
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
tags_file: tags.txt
build_args:
- BASE_VERSION=${PHP_VERSION}

View File

@@ -1,44 +1,45 @@
FROM ubuntu:latest
ARG BASE_VERSION
ARG USERNAME=laravel
ARG USER_UID=1000
ARG NODE_VERSION='' # node version number like "12.22.1" or empty for the latest version
ARG COMPOSER_VERSION='' # composer version number like "2.1" or empty for the latest version
FROM php:${BASE_VERSION}-fpm-alpine
ENV NVM_DIR="/home/$USERNAME/.nvm"
# 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
COPY submodules/artisan-bash-completion/artisan /etc/bash_completion.d/artisan
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y update \
&& apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd \
&& useradd --create-home --uid=$USER_UID $USERNAME \
&& chmod +x /usr/local/bin/start-container \
&& echo "install composer" \
&& curl -o composer-setup.php https://getcomposer.org/installer \
&& curl -o composer-setup.sig https://composer.github.io/installer.sig \
&& echo " composer-setup.php" >> composer-setup.sig \
&& sha384sum -c composer-setup.sig \
&& if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION \
&& rm composer-setup.php composer-setup.sig /var/www/html/* \
&& chown $USERNAME:$USERNAME /var/www/html \
&& echo 'alias artisan="php artisan"' >> /etc/bash.bashrc \
&& echo 'source /etc/bash_completion.d/*' >> /etc/bash.bashrc
RUN apk add --no-cache \
curl-dev \
libxml2-dev \
oniguruma-dev \
libpng-dev \
icu-dev \
php-ctype \
php-curl \
php-dom \
php-fileinfo \
php-mbstring \
php-session \
php-xml \
php-intl \
php-bcmath \
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
EXPOSE 8080
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
USER $USERNAME
RUN echo "install nvm and node" \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \
&& if [ -z "$NODE_VERSION" ]; then NODE_VERSION="node"; fi \
&& echo "source $NVM_DIR/nvm.sh" >> /home/$USERNAME/.bashrc \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION
ENTRYPOINT ["start-container"]

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

@@ -1,27 +1,45 @@
#!/usr/bin/env bash
#!/usr/bin/env ash
# exit when any command fails
set -e
# init nvm
\. $NVM_DIR/nvm.sh
if [[ "$INSTALL_BEFORE_START" = true ]]; then
echo "composer and npm install"
composer install
npm install
fi
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
fi
if [[ "$AUTO_START_NPM_DEV" = true ]]; then
# install extra packages and extensions on first boot
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
fi
if [[ -n "${EXTRA_PHP_EXTENSIONS// /}" ]]; then
# shellcheck disable=SC2086
docker-php-ext-install $EXTRA_PHP_EXTENSIONS
fi
touch /etc/first_boot
fi
if [[ "$BOOT_COMPOSER_INSTALL" = true ]]; then
echo "composer install"
composer install
fi
if [[ "$BOOT_NPM_INSTALL" = true ]]; then
echo "npm install"
npm install --cache /tmp/npm
fi
if [[ "$BOOT_MIGRATE" = true ]]; then
echo "artisan migrate"
php /var/www/html/artisan migrate
fi
if [[ "$BOOT_NPM_DEV" = true ]]; then
echo "Staring npm dev"
npm run dev --prefix /var/www/html &
fi
echo "Staring Laravel"
php /var/www/html/artisan serve
php /var/www/html/artisan serve --host=0.0.0.0 --port="$WEBSERVER_PORT"

View File

@@ -1,54 +1,42 @@
version: '3'
services:
app:
build:
context: build
dockerfile: Dockerfile
image: laravel
image: vistanarvas/simple-laravel
ports:
- '${FORWARD_LARAVEL_PORT:-80}:8080'
- '${FORWARD_VITE_PORT:-5173}:5173'
- '8080:8080'
- '5173:5173'
environment:
LARAVEL_VERSION: '${LARAVEL_VERSION}'
AUTO_START_NPM_DEV: '${AUTO_START_NPM_DEV:-false}'
DB_HOST: mysql
DB_CONNECTION: mysql
env_file:
.env
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
- redis
- mailpit
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '${FORWARD_DB_PORT:-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:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'redis:/data'
mailpit:
image: 'axllent/mailpit:latest'
ports:
- '${FORWARD_MAILPIT_PORT:-1025}:1025'
- '${FORWARD_MAILPIT_DASHBOARD_PORT:-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