Skip to content

Commit

Permalink
provision - add environment variable for local folder
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppemorelli committed Nov 10, 2021
1 parent aa83a94 commit a71ea6e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions local/provision/bin/install_ohmyzsh_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

cp /var/www/html/docker/local/config/zsh/.zshrc ~/.zshrc
cp /var/www/html/docker/local/config/zsh/.p10k.zsh ~/.p10k.zsh
cp /var/www/html/docker/config/zsh/.zshrc ~/.zshrc
cp /var/www/html/docker/config/zsh/.p10k.zsh ~/.p10k.zsh
4 changes: 2 additions & 2 deletions local/provision/bin/sudo_web_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e

apt-get update && apt-get install -y zsh nano

cp /var/www/html/docker/local/config/php/"$PHP_VERSION"/mods-available/devbox.ini /etc/php/"$PHP_VERSION"/apache2/conf.d/devbox.ini
cp /var/www/html/docker/local/config/php/"$PHP_VERSION"/mods-available/devbox.ini /etc/php/"$PHP_VERSION"/cli/conf.d/devbox.ini
cp /var/www/html/docker/config/php/"$PHP_VERSION"/mods-available/devbox.ini /etc/php/"$PHP_VERSION"/apache2/conf.d/devbox.ini
cp /var/www/html/docker/config/php/"$PHP_VERSION"/mods-available/devbox.ini /etc/php/"$PHP_VERSION"/cli/conf.d/devbox.ini

# set permission to user on temp folder
chown "$APACHE_USER_UID":"$APACHE_USER_GID" /var/www/html/docker/local/tmp -R
2 changes: 1 addition & 1 deletion local/provision/bin/sudo_xdebug_from_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ make
make install

# replace xdebug 3 with xdebug 2 config
cp /var/www/html/docker/local/config/php/"$PHP_VERSION"/mods-available/xdebug-custom.ini /etc/php/"$PHP_VERSION"/mods-available/xdebug-custom.ini
cp /var/www/html/docker/config/php/"$PHP_VERSION"/mods-available/xdebug-custom.ini /etc/php/"$PHP_VERSION"/mods-available/xdebug-custom.ini
rm /etc/php/"$PHP_VERSION"/apache2/conf.d/90-xdebug-3.ini
rm /etc/php/"$PHP_VERSION"/cli/conf.d/90-xdebug-3.ini
12 changes: 6 additions & 6 deletions local/provision/docker_provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
set -e

## FOR LAMP STACK
#docker-compose exec web bash /var/www/html/docker/local/provision/bin/sudo_web_tasks.sh
#docker-compose exec web bash /var/www/html/docker/local/provision/bin/disable_xdebug.sh
#docker-compose exec mysql bash /devbox/provision/bin/db_tasks.sh
#docker-compose exec -u $UID web bash /var/www/html/docker/local/provision/bin/web_tasks.sh
# docker-compose exec -u $UID web bash /var/www/html/docker/local/provision/bin/install_ohmyzsh_shell.sh
# docker-compose exec web bash /var/www/html/docker/provision/bin/sudo_web_tasks.sh
# docker-compose exec web bash /var/www/html/docker/provision/bin/disable_xdebug.sh
# docker-compose exec mysql bash /devbox/provision/bin/db_tasks.sh
# docker-compose exec -u $UID web bash /var/www/html/docker/provision/bin/web_tasks.sh
# docker-compose exec -u $UID web bash /var/www/html/docker/provision/bin/install_ohmyzsh_shell.sh

## FOR NODE.JS STACK
# docker-compose run nodejs bash /home/node/docker/local/provision/bin/nodejs_tasks.sh
# docker-compose run nodejs bash /home/node/docker/provision/bin/nodejs_tasks.sh

docker-compose restart

0 comments on commit a71ea6e

Please sign in to comment.