* 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:
@ -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
|
||||
|
@ -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}
|
@ -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}
|
||||
|
Reference in New Issue
Block a user