Skip to content

Commit

Permalink
Merge pull request #736 from ucfopen/issue/735-fix-dockerfile-typo
Browse files Browse the repository at this point in the history
Issue/735 fix dockerfile typo
  • Loading branch information
SimonRothUCF authored Feb 8, 2022
2 parents 8bbb918 + a0be82c commit 92d580b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM php:7.4-fpm
ARG ENVIORNMENT_TYPE
ARG ENVIRONMENT_TYPE

#Install dependencies and php extensions
RUN apt-get update && apt-get install -y \
Expand All @@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y \
&& docker-php-ext-install pdo_pgsql

#Install AWS CLI v2
RUN if [ "$ENVIORNMENT_TYPE" != "local" ] ;then \
RUN if [ "$ENVIRONMENT_TYPE" != "local" ] ;then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install\
Expand Down
6 changes: 3 additions & 3 deletions deploy/udoit-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
cd /var/www/html

# copy localConfig from S3 if you are not on local
if [ "$ENVIORNMENT_TYPE" != "local" ]
if [ "$ENVIRONMENT_TYPE" != "local" ]
then
aws s3 cp s3://cidilabs-devops/udoit3/.env.local.$ENVIORNMENT_TYPE /var/www/html/.env.local
aws s3 cp s3://cidilabs-devops/udoit3/.env.local.$ENVIRONMENT_TYPE /var/www/html/.env.local
fi

# run composer install
Expand All @@ -16,7 +16,7 @@ composer install --no-dev --no-interaction --no-progress --optimize-autoloader
sudo find /var/www/html -type f -exec chmod 664 {} + -o -type d -exec chmod 775 {} +

# only setup newrelic if not on local.
if [ "$ENVIORNMENT_TYPE" != "local" ]
if [ "$ENVIRONMENT_TYPE" != "local" ]
then
# create .user.ini file for New Relic (PHP-FPM only)
touch /var/www/html/public/.user.ini
Expand Down

0 comments on commit 92d580b

Please sign in to comment.