Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
b8755f6e
Commit
b8755f6e
authored
Nov 24, 2016
by
Victor Nikulshin
Browse files
Use fabfile/Dockerfile to build Docker image
parent
10db8314
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker.py
View file @
b8755f6e
...
...
@@ -129,7 +129,8 @@ def image_create():
if
'{}/drupal'
.
format
(
env
.
project_name
)
in
docker_images
():
print
(
red
(
'Docker image {}/drupal was found, you has already build this image'
.
format
(
env
.
project_name
)))
else
:
local
(
'docker build -t {}/drupal .'
.
format
(
env
.
project_name
))
dockerfile
=
h
.
fab_path
(
'Dockerfile'
)
local
(
'docker build -t {}/drupal -f {} .'
.
format
(
env
.
project_name
,
dockerfile
))
print
(
green
(
'Docker image {}/drupal was build successful'
.
format
(
env
.
project_name
)))
...
...
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