From 32f280ec282d20b2cfd563710bac9f6f3a0b8e2e Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Thu, 6 Apr 2023 17:27:02 -0700 Subject: [PATCH] removed extra command that borks CICD and added extra [] to allow image to start without error --- Dockerfile | 1 - scripts/entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93bbe0c..2bead4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ RUN dnf update -y && dnf upgrade -y RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y RUN dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm RUN dnf update -y && dnf upgrade -y -RUN dnf module reset php -y RUN dnf install -y memcached httpd mod_ssl wget RUN openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.key -x509 -days 3650 -subj "/CN=localhost" -out /etc/pki/tls/certs/localhost.crt RUN mkdir /run/php-fpm/ diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 3e9e809..49409c0 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -13,7 +13,7 @@ chmod -R 755 /home/$user /usr/sbin/httpd -k start /usr/sbin/php-fpm -y /etc/php-fpm.conf -if [ $environment == 'DEV' ]; then +if [[ $environment == 'DEV' ]]; then echo "Starting Dev Deployment" yum install -y MariaDB-server MariaDB-client nohup mysqld -umysql &