Fixes
Some checks failed
Gitea Actions Demo / Run-Tests-On-Arm64 (push) Failing after 30s
Gitea Actions Demo / Run-Tests-On-Amd64 (push) Failing after 1m29s

This commit is contained in:
Thomas 2025-02-27 12:03:33 +01:00
parent bebe9cc773
commit 9bb23a01f1
6 changed files with 8 additions and 28 deletions

View File

@ -1,15 +1,2 @@
version: '3.7'
services:
application:
image: ${DOCKER_REGISTRY?}/${DOCKER_NAMESPACE?}/application-${ENV?}:${TAG?}
build:
context: ../
# platforms:
# - "linux/amd64"
# - "linux/arm64"
dockerfile: ./images/php/application/Dockerfile
target: ${ENV?}
args:
- BASE_IMAGE=${DOCKER_REGISTRY?}/${DOCKER_NAMESPACE?}/php-base-${ENV?}:${TAG?}
- ENV=${ENV?}

View File

@ -98,7 +98,6 @@ services:
- BASE_IMAGE=${DOCKER_REGISTRY?}/${DOCKER_NAMESPACE?}/php-base-${ENV?}:${TAG?}
- APP_SSH_PASSWORD=${APP_SSH_PASSWORD?}
- ENV=${ENV?}
- APP_ENV=${APP_ENV}
environment:
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG?}
# cap_add and security_opt are required to enable strace

View File

@ -17,4 +17,4 @@ FROM base as prod
FROM base as local
FROM base as ci

View File

@ -13,17 +13,8 @@ FROM base as ci
USER $APP_USER_NAME
run apt update && apt install chromium-driver
FROM base as local
#ARG APP_SSH_PASSWORD
#RUN echo "$APP_USER_NAME:$APP_SSH_PASSWORD" | chpasswd 2>&1
#
## Required to start sshd, otherwise the container will error out on startup with the message
## "sshd: no hostkeys available -- exiting."
## @see https://stackoverflow.com/a/65348102/413531
#RUN ssh-keygen -A
#
## we use SSH deployment configuration in PhpStorm for local development
#EXPOSE 22
#
#CMD ["/usr/sbin/sshd", "-D"]
FROM base as ci

View File

@ -17,7 +17,7 @@ CMD ["/usr/bin/set-env.sh"]
FROM base as ci
USER $APP_USER_NAME
CMD ["/usr/bin/set-env.sh"]
FROM base as local

View File

@ -19,4 +19,7 @@ CMD ["php-fpm", "-F"]
FROM base as prod
COPY ./images/php/fpm/conf.d/zz-app-prod.ini $PHP_INI_DIR/conf.d/
FROM base as local
FROM base as ci