removed extra command that borks CICD and added extra [] to allow image to start without error
This commit is contained in:
parent
cfa729e2fb
commit
32f280ec28
@ -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 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 install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
|
||||||
RUN dnf update -y && dnf upgrade -y
|
RUN dnf update -y && dnf upgrade -y
|
||||||
RUN dnf module reset php -y
|
|
||||||
RUN dnf install -y memcached httpd mod_ssl wget
|
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 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/
|
RUN mkdir /run/php-fpm/
|
||||||
|
@ -13,7 +13,7 @@ chmod -R 755 /home/$user
|
|||||||
/usr/sbin/httpd -k start
|
/usr/sbin/httpd -k start
|
||||||
/usr/sbin/php-fpm -y /etc/php-fpm.conf
|
/usr/sbin/php-fpm -y /etc/php-fpm.conf
|
||||||
|
|
||||||
if [ $environment == 'DEV' ]; then
|
if [[ $environment == 'DEV' ]]; then
|
||||||
echo "Starting Dev Deployment"
|
echo "Starting Dev Deployment"
|
||||||
yum install -y MariaDB-server MariaDB-client
|
yum install -y MariaDB-server MariaDB-client
|
||||||
nohup mysqld -umysql &
|
nohup mysqld -umysql &
|
||||||
|
Loading…
Reference in New Issue
Block a user