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
0d1fd0f8
Commit
0d1fd0f8
authored
5 years ago
by
Konstantinos Samaras-Tsakiris
Browse files
Options
Downloads
Patches
Plain Diff
Install drush 9
parent
5212c3c5
No related branches found
No related tags found
1 merge request
!3
WIP: Drupal dev env with drush9 & apache
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Dockerfile
+6
-5
6 additions, 5 deletions
Dockerfile
with
7 additions
and
5 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
0d1fd0f8
*.env
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
5
View file @
0d1fd0f8
...
...
@@ -2,15 +2,14 @@ FROM cern/cc7-base
MAINTAINER
drupal-admins@cern.ch
ARG
APP_ROOT=/app
ARG
DRUSH_VERSION=9.2.1
# Set the Drush version.
ENV
DRUSH_VERSION 8.1.17
ENV
DRUPAL_VERSION 8.8.4
ENV
PHP_VERSION=7.1 \
PHP_VER_SHORT=71 \
NAME=drush-php-apache \
PATH=
$PATH:
/opt/rh/rh-php71/root/usr/bin
PATH=/opt/rh/rh-php71/root/usr/bin
:$PATH
### 1. Install PHP & Apache
...
...
@@ -55,12 +54,14 @@ COPY drush/settings.php /drush/settings.php
COPY
drupal/ /drupal/$DRUPAL_VERSION/
RUN
a2enmod php7.1
### 3. Drush 9 from composer
# enable software collections on startup
RUN
cp
"/opt/app-root/etc/scl_enable"
"/etc/profile.d/"
RUN
composer global require drush/drush:
"
$DRUSH_VERSION
"
--prefer-dist
ENV
PATH=/root/.composer/vendor/bin:$PATH
CMD
["/bin/docker-sleep"]
ENTRYPOINT
prepare-enviroment.sh && rm /usr/bin/prepare-enviroment.sh && /usr/bin/scl enable rh-php71 bash
...
...
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