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
23c86705
Commit
23c86705
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Initial site install gets triggered even without the contrib profile as drush has that now build in
parent
dd5d11a1
No related branches found
No related tags found
1 merge request
!21
Merging develop into main [MINOR_VERSION]
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
start.sh
+30
-32
30 additions, 32 deletions
start.sh
with
30 additions
and
32 deletions
start.sh
+
30
−
32
View file @
23c86705
...
...
@@ -62,44 +62,42 @@ function create {
restoreEnvFile
if
[[
-f
"docker-compose.yml"
]]
;
then
if
[[
-f
"web/profiles/contrib/config_installer/config_installer.info.yml"
]]
;
then
# Start container
a d4d up
sleep
2
drush
--no-interaction
si
${
SITE_INSTALL_ARGS
}
# Start container
a d4d up
sleep
2
drush
--no-interaction
si
${
SITE_INSTALL_ARGS
}
# Init site config values
if
[[
-f
"drush/Commands/dev_modules/dev_modules.info.yml"
]]
;
then
if
[[
-f
"/tmp/init_site.json"
]]
;
then
mv
/tmp/init_site.json web/.init_site.json
drush site:init .init_site.json
rm
web/.init_site.json
fi
# Init site config values
if
[[
-f
"drush/Commands/dev_modules/dev_modules.info.yml"
]]
;
then
if
[[
-f
"/tmp/init_site.json"
]]
;
then
mv
/tmp/init_site.json web/.init_site.json
drush site:init .init_site.json
rm
web/.init_site.json
fi
fi
# Dump database
if
[[
$L3D_DUMP_DB
-eq
1
]]
;
then
git ignore
"/*.sql"
drush sql:dump
--result-file
../db.sql
fi
# Dump database
if
[[
$L3D_DUMP_DB
-eq
1
]]
;
then
git ignore
"/*.sql"
drush sql:dump
--result-file
../db.sql
fi
drush
-y
cex
# shellcheck disable=SC2035
git add
*
git add .
*
git commit
-am
"After site install"
drush
-y
cex
# shellcheck disable=SC2035
git add
*
git add .
*
git commit
-am
"After site install"
# Push to remote git repository
if
[[
-n
${
L3D_GIT_REMOTE
}
]]
;
then
git remote add origin
"
$L3D_GIT_REMOTE
"
git push
-u
origin main
fi
# Push to remote git repository
if
[[
-n
${
L3D_GIT_REMOTE
}
]]
;
then
git remote add origin
"
$L3D_GIT_REMOTE
"
git push
-u
origin main
fi
# Cleanup
if
[[
$L3D_CLEANUP
-eq
1
]]
;
then
docker compose stop
docker compose
rm
--force
-v
fi
# Cleanup
if
[[
$L3D_CLEANUP
-eq
1
]]
;
then
docker compose stop
docker compose
rm
--force
-v
fi
fi
if
[[
$L3D_EXIT
-eq
1
]]
;
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