Compare commits

..

5 Commits

Author SHA1 Message Date
philipp lang ca0dd11336 Check for APP_KEY in every PHP Container
continuous-integration/drone/push Build is passing Details
2024-07-18 01:41:35 +02:00
philipp lang 89a8feb278 Clear node_modules in drone 2024-07-18 01:41:12 +02:00
philipp lang 8f7edadb99 Remove invoice volume 2024-07-18 01:40:55 +02:00
philipp lang eee0c64106 Install adrema-form dependencies in docker 2024-07-18 01:40:37 +02:00
philipp lang e50269d031 Move tex templates to invoice folder 2024-07-18 01:38:41 +02:00
8 changed files with 10 additions and 11 deletions

View File

@ -8,7 +8,8 @@ RUN php artisan horizon:publish
FROM node:20.15.0-slim as node
WORKDIR /app
COPY . /app
RUN npm install && npm run prod && npm run img && rm -R node_modules
RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../
RUN npm ci && npm run prod && npm run img && rm -R node_modules
FROM nginx:1.21.6-alpine as nginx
WORKDIR /app

View File

@ -6,7 +6,8 @@ RUN composer install --ignore-platform-reqs --no-dev
FROM node:20.15.0-slim as node
WORKDIR /app
COPY . /app
RUN npm install && npm run prod && npm run img && rm -R node_modules
RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../
RUN npm ci && npm run prod && npm run img && rm -R node_modules
FROM zoomyboy/adrema-base:latest as php
COPY --chown=www-data:www-data . /app

View File

@ -15,6 +15,11 @@ mkdir -p /app/storage/app/public || true
chown -R www-data:www-data /app/packages/laravel-nami/.cookies
chown -R www-data:www-data /app/storage/app
if [ $APP_KEY = "YOUR_APP_KEY" ]; then
echo "----------------------- Keinen APP KEY gefunden. Key wird generiert: $(su www-data -c 'php artisan key:generate --show') ----------------------- Füge diesen Key als APP_KEY ein ---------------------"
exit 1
fi
if [ $1 == "horizon" ]; then
wait_for_db
su www-data -c 'php artisan horizon'
@ -22,10 +27,6 @@ fi
if [ $1 == "app" ]; then
# --------------------------- ensure appkey is set ----------------------------
if [ $APP_KEY = "YOUR_APP_KEY" ]; then
echo "----------------------- Keinen APP KEY gefunden. Key wird generiert: $(su www-data -c 'php artisan key:generate --show') ----------------------- Füge diesen Key als APP_KEY ein ---------------------"
exit 1
fi
wait_for_db
php -r '$connection = new PDO("mysql:host='$DB_HOST';dbname='$DB_DATABASE'", "'$DB_USERNAME'", "'$DB_PASSWORD'"); $connection->query("DESCRIBE migrations");' > /dev/null || php artisan migrate --seed --force
su www-data -c 'php artisan migrate --force'

View File

@ -34,7 +34,7 @@ steps:
- name: node
image: node:20.15.0-slim
commands:
- npm ci && cd packages/adrema-form && npm ci && npm run build && cd ../../ && npm run img && npm run prod && rm -R node_modules
- npm ci && cd packages/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../ && npm run img && npm run prod && rm -R node_modules
- name: tests
image: zoomyboy/adrema-base:latest

View File

@ -34,7 +34,6 @@ services:
- ./data/storage:/app/storage/app
- ./data/plugins:/app/plugins
- ./data/cookies:/app/packages/laravel-nami/.cookies
- ./data/invoice:/app/resources/views/tex/invoice
horizon:
build:
@ -57,7 +56,6 @@ services:
- ./data/storage:/app/storage/app
- ./data/plugins:/app/plugins
- ./data/cookies:/app/packages/laravel-nami/.cookies
- ./data/invoice:/app/resources/views/tex/invoice
schedule:
build:
@ -80,7 +78,6 @@ services:
- ./data/storage:/app/storage/app
- ./data/plugins:/app/plugins
- ./data/cookies:/app/packages/laravel-nami/.cookies
- ./data/invoice:/app/resources/views/tex/invoice
db:
image: mariadb:10.6.5

View File

@ -1 +0,0 @@
../../../../packages/silvaletter/template

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB