Fixes
This commit is contained in:
parent
bebe9cc773
commit
9bb23a01f1
@ -1,15 +1,2 @@
|
|||||||
version: '3.7'
|
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?}
|
|
||||||
|
|||||||
@ -98,7 +98,6 @@ services:
|
|||||||
- BASE_IMAGE=${DOCKER_REGISTRY?}/${DOCKER_NAMESPACE?}/php-base-${ENV?}:${TAG?}
|
- BASE_IMAGE=${DOCKER_REGISTRY?}/${DOCKER_NAMESPACE?}/php-base-${ENV?}:${TAG?}
|
||||||
- APP_SSH_PASSWORD=${APP_SSH_PASSWORD?}
|
- APP_SSH_PASSWORD=${APP_SSH_PASSWORD?}
|
||||||
- ENV=${ENV?}
|
- ENV=${ENV?}
|
||||||
- APP_ENV=${APP_ENV}
|
|
||||||
environment:
|
environment:
|
||||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG?}
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG?}
|
||||||
# cap_add and security_opt are required to enable strace
|
# cap_add and security_opt are required to enable strace
|
||||||
|
|||||||
@ -17,4 +17,4 @@ FROM base as prod
|
|||||||
|
|
||||||
FROM base as local
|
FROM base as local
|
||||||
|
|
||||||
|
FROM base as ci
|
||||||
|
|||||||
@ -13,17 +13,8 @@ FROM base as ci
|
|||||||
USER $APP_USER_NAME
|
USER $APP_USER_NAME
|
||||||
|
|
||||||
run apt update && apt install chromium-driver
|
run apt update && apt install chromium-driver
|
||||||
|
|
||||||
FROM base as local
|
FROM base as local
|
||||||
|
|
||||||
#ARG APP_SSH_PASSWORD
|
FROM base as ci
|
||||||
#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"]
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ CMD ["/usr/bin/set-env.sh"]
|
|||||||
|
|
||||||
FROM base as ci
|
FROM base as ci
|
||||||
|
|
||||||
USER $APP_USER_NAME
|
CMD ["/usr/bin/set-env.sh"]
|
||||||
|
|
||||||
FROM base as local
|
FROM base as local
|
||||||
|
|
||||||
|
|||||||
@ -19,4 +19,7 @@ CMD ["php-fpm", "-F"]
|
|||||||
FROM base as prod
|
FROM base as prod
|
||||||
|
|
||||||
COPY ./images/php/fpm/conf.d/zz-app-prod.ini $PHP_INI_DIR/conf.d/
|
COPY ./images/php/fpm/conf.d/zz-app-prod.ini $PHP_INI_DIR/conf.d/
|
||||||
|
|
||||||
FROM base as local
|
FROM base as local
|
||||||
|
|
||||||
|
FROM base as ci
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user