Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcelo Silva
drupal9-docker-app
Commits
a23c4dfb
Unverified
Commit
a23c4dfb
authored
Dec 05, 2020
by
Ricardo Amaro
Committed by
GitHub
Dec 05, 2020
Browse files
update to use latest version
parent
1a569a09
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
a23c4dfb
FROM
ubuntu:20.04
FROM
ubuntu:20.04
MAINTAINER
Ricardo Amaro <mail_at_ricardoamaro.com>
MAINTAINER
Ricardo Amaro <mail_at_ricardoamaro.com>
ENV
DEBIAN_FRONTEND noninteractive
ENV
DEBIAN_FRONTEND noninteractive
ARG
DRUPALVER=9
.1.x
ARG
DRUPALVER=9
RUN
apt-get update
;
\
RUN
apt-get update
;
\
dpkg-divert
--local
--rename
--add
/sbin/initctl
;
\
dpkg-divert
--local
--rename
--add
/sbin/initctl
;
\
...
@@ -42,7 +42,8 @@ ADD https://updates.drupal.org/release-history/drupal/${DRUPALVER} /tmp/latest.x
...
@@ -42,7 +42,8 @@ ADD https://updates.drupal.org/release-history/drupal/${DRUPALVER} /tmp/latest.x
# Retrieve drupal & adminer
# Retrieve drupal & adminer
# TODO: also require drupal/memcache
# TODO: also require drupal/memcache
RUN
cd
/var/www/html
;
\
RUN
cd
/var/www/html
;
\
git clone
--depth
1
--single-branch
-b
${
DRUPALVER
}
https://git.drupalcode.org/project/drupal.git web
\
DV
=
$(
curl
-s
https://git.drupalcode.org/project/drupal/-/tags?format
=
atom |
grep
-e
'<title>'
|
grep
-Eo
'[0-9\.]+'
|sort
-nr
|
grep
^
${
DRUPALVER
}
|
head
-n1
)
\
&&
git clone
--depth
1
--single-branch
-b
${
DV
}
https://git.drupalcode.org/project/drupal.git web
\
&&
cd
web
;
composer require drush/drush:~10
;
composer
install
\
&&
cd
web
;
composer require drush/drush:~10
;
composer
install
\
&&
php
--version
;
composer
--version
;
vendor/bin/drush
--version
;
vendor/bin/drush status
\
&&
php
--version
;
composer
--version
;
vendor/bin/drush
--version
;
vendor/bin/drush status
\
&&
cd
/var/www/html
;
chmod
a+w web/sites/default
;
\
&&
cd
/var/www/html
;
chmod
a+w web/sites/default
;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment