* correctly pass secrets to workspace-containers

* update README
* helper-scripts with create symlinks helper and get composer auth github token helper
This commit is contained in:
2021-04-19 14:01:33 +03:00
parent fb9e1c6f4f
commit ff0b62ed49
11 changed files with 177 additions and 22 deletions

View File

@ -1,3 +1,16 @@
#!/bin/bash
cd $HOME/structure
docker-compose exec workspace su laradock
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
PHP_VERSION=$1 # Without dot
if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=74; fi
# Grab full name of php-fpm container
WORKSPACE_CONTAINER=$(docker ps | grep workspace${PHP_VERSION} | awk '{print $1}')
if [[ -z "${WORKSPACE_CONTAINER}" ]]; then
echo "Unable to find workspace container: workspace${PHP_VERSION}"
exit 1
fi
docker exec -ti ${WORKSPACE_CONTAINER} su laradock

View File

@ -1,3 +1,9 @@
#!/bin/bash
cd $HOME/structure
./dockerfiles/php$1-fpm/xdebug.sh stop && cd
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
PHP_VERSION=$1 # Without dot
if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=74; fi
${DIR}/dockerfiles/php-fpm/xdebug.sh stop ${PHP_VERSION}
${DIR}/dockerfiles/workspace/xdebug.sh stop ${PHP_VERSION}

View File

@ -1,3 +1,9 @@
#!/bin/bash
cd $HOME/structure
./dockerfiles/php$1-fpm/xdebug.sh start && cd
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
PHP_VERSION=$1 # Without dot
if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=74; fi
${DIR}/dockerfiles/php-fpm/xdebug.sh start ${PHP_VERSION}
${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION}