Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
LakeDropsDrupalDev
Commits
b4096670
Commit
b4096670
authored
3 months ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Merging develop into main See merge request
!55
parents
3b6a4376
b719cb1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!55
Merging develop into main
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
run/scripts/start
+0
-1
0 additions, 1 deletion
run/scripts/start
setup/scripts/l3d
+0
-1
0 additions, 1 deletion
setup/scripts/l3d
start.sh
+22
-21
22 additions, 21 deletions
start.sh
with
22 additions
and
23 deletions
run/scripts/start
+
0
−
1
View file @
b4096670
...
@@ -62,7 +62,6 @@ function startContainer() {
...
@@ -62,7 +62,6 @@ function startContainer() {
--env
HOME
=
/home/
${
USERNAME
}
--env
HOME
=
/home/
${
USERNAME
}
--env
USERNAME
=
${
USERNAME
}
--env
USERNAME
=
${
USERNAME
}
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
--env
PHP_VERSION
=
${
PHP_VERSION
}
--env
PHP_VERSION
=
${
PHP_VERSION
}
--volume
${
L3DDOCKERHOST
}
:/var/run/docker.sock
--volume
${
L3DDOCKERHOST
}
:/var/run/docker.sock
--volume
${
WORKDIR
}
:/drupal
--volume
${
WORKDIR
}
:/drupal
...
...
This diff is collapsed.
Click to expand it.
setup/scripts/l3d
+
0
−
1
View file @
b4096670
...
@@ -119,7 +119,6 @@ project_params=(
...
@@ -119,7 +119,6 @@ project_params=(
--env
WORKDIR
=
${
PWD
}
--env
WORKDIR
=
${
PWD
}
--env
PHP_VERSION
=
${
PHP_VERSION
}
--env
PHP_VERSION
=
${
PHP_VERSION
}
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
)
)
if
[[
-n
"
$SSH_AUTH_SOCK
"
]]
;
then
if
[[
-n
"
$SSH_AUTH_SOCK
"
]]
;
then
project_params+
=(
project_params+
=(
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
22
−
21
View file @
b4096670
...
@@ -39,9 +39,6 @@ function restoreEnvFile {
...
@@ -39,9 +39,6 @@ function restoreEnvFile {
if
[[
-n
${
COMPOSE_PROJECT_NAME
}
]]
;
then
if
[[
-n
${
COMPOSE_PROJECT_NAME
}
]]
;
then
echo
"COMPOSE_PROJECT_NAME=
${
COMPOSE_PROJECT_NAME
}
"
>>
.env
echo
"COMPOSE_PROJECT_NAME=
${
COMPOSE_PROJECT_NAME
}
"
>>
.env
fi
fi
if
[[
-n
${
COMPOSER_DOWNGRADE
}
]]
;
then
echo
"COMPOSER_DOWNGRADE=
${
COMPOSER_DOWNGRADE
}
"
>>
.env
fi
if
[[
-f
".env"
]]
;
then
if
[[
-f
".env"
]]
;
then
# shellcheck disable=SC2046
# shellcheck disable=SC2046
# shellcheck disable=SC2094
# shellcheck disable=SC2094
...
@@ -125,14 +122,15 @@ function initialSetup {
...
@@ -125,14 +122,15 @@ function initialSetup {
echo
""
echo
""
echo
"Options to start:"
echo
"Options to start:"
echo
" 0 none: start with an empty container"
echo
" 0 none: start with an empty container"
echo
" 1 LakeDrops Drupal 11 project template"
echo
" 1 LakeDrops Drupal CMS"
echo
" 2 LakeDrops Drupal 10 project template"
echo
" 2 LakeDrops Drupal 11 project template"
echo
" 3 drupal.org recommended project template (Drupal 11)"
echo
" 3 LakeDrops Drupal 10 project template"
echo
" 4 drupal.org recommended project template (Drupal 10)"
echo
" 4 drupal.org recommended project template (Drupal 11)"
echo
" 5 Drupal's community project template (Drupal 11)"
echo
" 5 drupal.org recommended project template (Drupal 10)"
echo
" 6 Drupal's community project template (Drupal 10)"
echo
" 6 Drupal's community project template (Drupal 11)"
echo
" 7 Custom project template"
echo
" 7 Drupal's community project template (Drupal 10)"
echo
" 8 Existing git repository"
echo
" 8 Custom project template"
echo
" 9 Existing git repository"
echo
""
echo
""
echo
""
echo
""
...
@@ -147,44 +145,50 @@ function initialSetup {
...
@@ -147,44 +145,50 @@ function initialSetup {
;;
;;
1
)
1
)
PROJECT
=
"lakedrops/cms:1.0.x-dev"
create
break
;;
2
)
PROJECT
=
"lakedrops/d11-project"
PROJECT
=
"lakedrops/d11-project"
SITE_INSTALL_ARGS
=
"--existing-config"
SITE_INSTALL_ARGS
=
"--existing-config"
create
create
break
break
;;
;;
2
)
3
)
PROJECT
=
"lakedrops/d10-project"
PROJECT
=
"lakedrops/d10-project"
SITE_INSTALL_ARGS
=
"--existing-config"
SITE_INSTALL_ARGS
=
"--existing-config"
create
create
break
break
;;
;;
3
)
4
)
PROJECT
=
"drupal/recommended-project:^11"
PROJECT
=
"drupal/recommended-project:^11"
create
create
break
break
;;
;;
4
)
5
)
PROJECT
=
"drupal/recommended-project:^10"
PROJECT
=
"drupal/recommended-project:^10"
create
create
break
break
;;
;;
5
)
6
)
PROJECT
=
"drupal-composer/drupal-project:11.x-dev"
PROJECT
=
"drupal-composer/drupal-project:11.x-dev"
create
create
break
break
;;
;;
6
)
7
)
PROJECT
=
"drupal-composer/drupal-project:10.x-dev"
PROJECT
=
"drupal-composer/drupal-project:10.x-dev"
create
create
break
break
;;
;;
7
)
8
)
# shellcheck disable=SC2162
# shellcheck disable=SC2162
read
-p
"Custom project template: "
PROJECT
read
-p
"Custom project template: "
PROJECT
# shellcheck disable=SC2162
# shellcheck disable=SC2162
...
@@ -193,7 +197,7 @@ function initialSetup {
...
@@ -193,7 +197,7 @@ function initialSetup {
break
break
;;
;;
8
)
9
)
# shellcheck disable=SC2162
# shellcheck disable=SC2162
read
-p
"Repository URL: "
REPOSITORY
read
-p
"Repository URL: "
REPOSITORY
if
[[
-n
"
${
REPOSITORY
}
"
]]
;
then
if
[[
-n
"
${
REPOSITORY
}
"
]]
;
then
...
@@ -254,9 +258,6 @@ if [[ "$INSTALLED_PHP_VERSION" != "$PHP_VERSION" ]]; then
...
@@ -254,9 +258,6 @@ if [[ "$INSTALLED_PHP_VERSION" != "$PHP_VERSION" ]]; then
docker
rm
-f
${
COMPOSE_PROJECT_NAME
}
_
${
USERNAME
}
_l3d
docker
rm
-f
${
COMPOSE_PROJECT_NAME
}
_
${
USERNAME
}
_l3d
fi
fi
fi
fi
if
[[
"
$COMPOSER_DOWNGRADE
"
==
"1"
]]
;
then
composer self-update
--1
fi
EXISTING
=
$(
ls
-1
)
EXISTING
=
$(
ls
-1
)
if
[[
-z
"
$EXISTING
"
]]
;
then
if
[[
-z
"
$EXISTING
"
]]
;
then
if
[[
-n
${
PROJECT
}
]]
;
then
if
[[
-n
${
PROJECT
}
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment