Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from marcoguido/feature/fix-dbms-of-choice
Browse files Browse the repository at this point in the history
FIX: removed useless env variables
  • Loading branch information
marcoguido authored Jun 15, 2020
2 parents 283d04e + 76aa410 commit 1c67278
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions docker/compose-files/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ services:
- XD_REMOTE_PORT=${XD_REMOTE_PORT}
- XD_IDEKEY=${XD_IDEKEY}
- ENABLE_MCRYPT_SUPPORT=${ENABLE_MCRYPT_SUPPORT}
- ENABLE_MYSQL_SUPPORT=${ENABLE_MYSQL_SUPPORT}
- ENABLE_POSTGRESQL_SUPPORT=${ENABLE_POSTGRESQL_SUPPORT}
- DBMS=${DBMS}
- ENABLE_IMAGIC_SUPPORT=${ENABLE_IMAGIC_SUPPORT}
- ENABLE_PHPREDIS_SUPPORT=${ENABLE_PHPREDIS_SUPPORT}
- ENABLE_INTL_SUPPORT=${ENABLE_INTL_SUPPORT}
Expand Down
6 changes: 0 additions & 6 deletions docker/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ will now be listed below.
#################
# The PHP version. Every 7.x version is fully supported.
PHP_VERSION=7.4

# Whether to install MySQL support
ENABLE_MYSQL_SUPPORT=true

# Whether to install PostgreSQL support
ENABLE_POSTGRESQL_SUPPORT=false

# Whether to install xDebug support, to easily debug PHP scripts
ENABLE_XDEBUG_SUPPORT=true
Expand Down
7 changes: 3 additions & 4 deletions docker/workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,16 @@ RUN if [ ${ENABLE_MCRYPT_SUPPORT} = true ] ; then \
######################
# MYSQL INSTALLATION #
######################
ARG ENABLE_MYSQL_SUPPORT=false
RUN if [ ${ENABLE_MYSQL_SUPPORT} = true ]; then \
ARG DBMS
RUN if [ ${DBMS} = mysql ]; then \
docker-php-ext-install pdo_mysql \
&& docker-php-ext-install mysqli \
;fi

######################
# PGSQL INSTALLATION #
######################
ARG ENABLE_POSTGRESQL_SUPPORT=false
RUN if [ ${ENABLE_POSTGRESQL_SUPPORT} = true ]; then \
RUN if [ ${DBMS} = postgresql ]; then \
apt-get install -y \
postgresql-client \
libpq-dev \
Expand Down

0 comments on commit 1c67278

Please sign in to comment.