Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drush-docker-drupal-admins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
drupal
drush-docker-drupal-admins
Commits
1b064bd5
Commit
1b064bd5
authored
6 years ago
by
Romanos Dodopoulos
Browse files
Options
Downloads
Patches
Plain Diff
Use Dockerfile variable instead [complete]
parent
140001b3
No related branches found
No related tags found
No related merge requests found
Pipeline
#553421
passed
6 years ago
Stage: build
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+0
-1
0 additions, 1 deletion
README.md
drush/drushrc.php
+1
-1
1 addition, 1 deletion
drush/drushrc.php
drush/settings.php
+1
-1
1 addition, 1 deletion
drush/settings.php
prepare-enviroment.sh
+1
-1
1 addition, 1 deletion
prepare-enviroment.sh
with
3 additions
and
4 deletions
README.md
+
0
−
1
View file @
1b064bd5
...
...
@@ -26,7 +26,6 @@ docker run -i --privileged \
-e DRUSH_DATABASE='ds990108' \
-e DRUSH_EGROUP='drupal-admins-test-edu-d8-ldap' \
-e DRUSH_OWNER='eduardoa' \
-e DRUSH_DRUPAL_VERSION='8.5.6' \
-t <image_id> /bin/bash
```
or with a file
...
...
This diff is collapsed.
Click to expand it.
drush/drushrc.php
+
1
−
1
View file @
1b064bd5
<?php
$options
[
'uri'
]
=
'$DRUSH_SITENAME'
;
$options
[
'root'
]
=
'/drupal/$
DRUSH_
DRUPAL_VERSION'
;
$options
[
'root'
]
=
'/drupal/$DRUPAL_VERSION'
;
This diff is collapsed.
Click to expand it.
drush/settings.php
+
1
−
1
View file @
1b064bd5
...
...
@@ -11,7 +11,7 @@ $databases['default']['default'] = array (
'driver'
=>
'mysql'
,
);
if
(
file_exists
(
"/drupal/
$
DRUSH_
DRUPAL_VERSION
/sites/
$DRUSH_SITENAME
/private/.docker.rerun.flag"
))
{
if
(
file_exists
(
"/drupal/
$DRUPAL_VERSION
/sites/
$DRUSH_SITENAME
/private/.docker.rerun.flag"
))
{
$databases
[
'default'
][
'default'
][
'password'
]
=
null
;
print
(
"The docker image has been updated. Please exit right now and rerun it!
\n
"
);
exit
;
...
...
This diff is collapsed.
Click to expand it.
prepare-enviroment.sh
+
1
−
1
View file @
1b064bd5
...
...
@@ -24,7 +24,7 @@ mkdir -p /drupal/${DRUPAL_VERSION}/sites/${DRUSH_SITENAME}/
find /mnt/site/
-mindepth
1
-maxdepth
1
-type
d
-exec
ln
-s
{}
/drupal/
${
DRUPAL_VERSION
}
/sites/
${
DRUSH_SITENAME
}
/
\;
#copy settings.php to the final destination
envsubst
'$DRUSH_SITENAME$DRUSH_HOST$DRUSH_EGROUP$DRUSH_OWNER$DRUSH_EGROUP$DRUSH_USERNAME$DRUSH_PASSWORD$DRUSH_DATABASE$DRUSH_PORT$
DRUSH_DRUPAL_VERSION$
DRUPAL_VERSION'
< /drush/settings.php
>
/drupal/
${
DRUPAL_VERSION
}
/sites/
${
DRUSH_SITENAME
}
/settings.php
envsubst
'$DRUSH_SITENAME$DRUSH_HOST$DRUSH_EGROUP$DRUSH_OWNER$DRUSH_EGROUP$DRUSH_USERNAME$DRUSH_PASSWORD$DRUSH_DATABASE$DRUSH_PORT$DRUPAL_VERSION'
< /drush/settings.php
>
/drupal/
${
DRUPAL_VERSION
}
/sites/
${
DRUSH_SITENAME
}
/settings.php
rm
/drupal/
${
DRUPAL_VERSION
}
/sites/
${
DRUSH_SITENAME
}
/private/.docker.rerun.flag
...
...
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