Skip to content

Commit

Permalink
Merge branch 'master' into hotfix/docker_8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
holema authored Jun 15, 2023
2 parents e6c10c2 + 929ade6 commit 0557d6f
Show file tree
Hide file tree
Showing 28 changed files with 348 additions and 209 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ yarn-error.log
docker.conf

/documentation_jitsi_admin/node_modules/
/secretStorage/.Halite*
12 changes: 6 additions & 6 deletions BranchPipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ echo --------------Schutdown Apache------------------------------------------
echo --------------------------------------------------------------------------
echo ---------------Git pull--------------------------------------------------
echo --------------------------------------------------------------------------
git add .
git stash
git reset --hard
git pull

mv .Halite.key ./secretStorage/.Halite.key
echo ------------Update parameter.yml and install latest packages-------------
php composer.phar install
echo --------------------------------------------------------------------------
echo ----------------Update Database-------------------------------------------
echo --------------------------------------------------------------------------
php bin/console cache:clear
php bin/console doc:mig:mig -y
php bin/console doc:mig:mig -n
php bin/console app:system:repair
echo --------------------------------------------------------------------------
echo -----------------Clear Cache----------------------------------------------
echo --------------------------------------------------------------------------
Expand Down Expand Up @@ -41,9 +41,9 @@ echo -----------------------Install NPM and Assets----------------------------
echo --------------------------------------------------------------------------
npm install
npm run build
rm -r node_modules
echo --------------------------------------------------------------------------
echo -----------------Security Check----------------------------------------------
echo ---------------------Sucessfully installed or updated---------------------
echo --------------------------------------------------------------------------
php security-checker.phar security:check composer.lock


8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ RUN rm -rf node_modules/
#copy all the rest of the app
COPY . /var/www/html
#install all php dependencies
RUN composer install --ignore-platform-req=ext-http

RUN chown -R docker:docker secretStorage
USER docker
RUN composer install
USER root
#do all the directory stuff
RUN chmod -R 775 public/build
RUN mkdir -p var/cache
RUN chown -R www-data:www-data var
RUN chown -R docker:docker var
RUN chmod -R 777 var
USER docker
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
"twig/extra-bundle": "^2.12|^3.0",
"twig/inky-extra": "^3.0",
"twig/twig": "^2.0",
"vich/uploader-bundle": "^1.13",
"ext-http": "*"
"vich/uploader-bundle": "^1.13"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down
Loading

0 comments on commit 0557d6f

Please sign in to comment.