mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 08:37:26 +01:00
Add xdebug and ldap PW environment
This commit is contained in:
parent
95c10ab0a9
commit
851dc60895
@ -37,6 +37,19 @@ RUN apk add --no-cache \
|
||||
git \
|
||||
curl
|
||||
|
||||
# Enable php8-xdebug if $PHP_XDEBUG_MODE is not empty
|
||||
ARG PHP_XDEBUG_MODE=off
|
||||
ARG PHP_XDEBUG_CLIENT_PORT=5902
|
||||
ARG PHP_XDEBUG_CLIENT_HOST=host.docker.internal
|
||||
COPY xdebug.ini /etc/php8/conf.d/xdebug.ini.template
|
||||
RUN if [[ "$PHP_XDEBUG_MODE" != "" ]]; then \
|
||||
export PHP_XDEBUG_MODE=$PHP_XDEBUG_MODE; \
|
||||
export PHP_XDEBUG_CLIENT_PORT=$PHP_XDEBUG_CLIENT_PORT; \
|
||||
export PHP_XDEBUG_CLIENT_HOST=$PHP_XDEBUG_CLIENT_HOST; \
|
||||
envsubst < /etc/php8/conf.d/xdebug.ini.template > /etc/php8/conf.d/xdebug.ini; \
|
||||
fi
|
||||
RUN rm -f /etc/php8/conf.d/xdebug.ini.template
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | tee composer-setup.php \
|
||||
&& php8 composer-setup.php && rm composer-setup.php* \
|
||||
&& chmod +x composer.phar && mv composer.phar /usr/bin/composer \
|
||||
@ -76,6 +89,8 @@ ARG INFLUXDB_PASSWORD
|
||||
ARG INFLUXDB_ADMIN_TOKEN
|
||||
ENV INFLUXDB_URL=http://cc-influxdb:${INFLUXDB_PORT}
|
||||
ENV INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN}
|
||||
ARG LDAP_PASSWORD
|
||||
ENV LDAP_PW=${LDAP_PASSWORD}
|
||||
ARG MYSQL_USER
|
||||
ARG MYSQL_PASSWORD
|
||||
ARG MYSQL_DATABASE
|
||||
|
Loading…
Reference in New Issue
Block a user