Skip to content
Snippets Groups Projects
Commit 8599e8e8 authored by jurgenhaas's avatar jurgenhaas
Browse files

#11 Restore env variables after starting a new project

parent fe476c07
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ FROM registry.lakedrops.com/docker/gitlab-drupal-ci:php-${PHP_VERSION}
LABEL com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \
version="1.2.1" \
version="1.2.2" \
description="Drupal development environment from LakeDrops."
ENV LAKEDROPS_DEV_ENV 1
......
......@@ -4,7 +4,7 @@ function help {
echo "L3D - LakeDropsDrupalDev"
echo "========================="
echo ""
echo "Version: 1.4.0"
echo "Version: 1.4.1"
echo "Info and support: https://gitlab.lakedrops.com/docker/l3d"
echo ""
echo "Usage:"
......
......@@ -21,9 +21,15 @@ function truncateCurrentDirectory {
rm .* > /dev/null 2>&1
}
function restoreEnvFile {
echo "PHP_VERSION=${PHP_VERSION}" >>.env
echo "COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}" >>.env
}
function create {
truncateCurrentDirectory
composer create-project ${PROJECT} . --no-interaction
restoreEnvFile
}
while true; do
......@@ -48,6 +54,7 @@ while true; do
truncateCurrentDirectory
git clone ${REPOSITORY} .
composer update
restoreEnvFile
break
fi
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment