use kaniko to build container
This commit is contained in:
parent
58abf18645
commit
56dd40596f
9 changed files with 26 additions and 19 deletions
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'session')" | grep f
|
||||
|
||||
if [ $? -ne 1 ]; then
|
||||
PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -f /var/lib/roundcube/SQL/postgres.initial.sql
|
||||
fi
|
||||
|
1
rootfs/etc/s6-overlay/s6-rc.d/dbinit/run
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/dbinit/run
Normal file
|
@ -0,0 +1 @@
|
|||
dbinit
|
1
rootfs/etc/s6-overlay/s6-rc.d/dbinit/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/dbinit/type
Normal file
|
@ -0,0 +1 @@
|
|||
oneshot
|
2
rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies
Normal file
2
rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies
Normal file
|
@ -0,0 +1,2 @@
|
|||
confd
|
||||
dbinit
|
3
rootfs/etc/s6-overlay/s6-rc.d/nginx/run
Normal file
3
rootfs/etc/s6-overlay/s6-rc.d/nginx/run
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
exec nginx -g "daemon off;"
|
1
rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
|
@ -0,0 +1 @@
|
|||
longrun
|
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/php8-fpm
Normal file
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/php8-fpm
Normal file
Loading…
Add table
Add a link
Reference in a new issue