Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
social
SoMeDi Use Case - Lateral
Commits
61a06e7e
Commit
61a06e7e
authored
Nov 03, 2017
by
Alberto Pascual
Browse files
makefiles updated
parent
e467309d
Pipeline
#428
failed with stages
in 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.makefiles/base.mk
View file @
61a06e7e
export
NAME
?=
$(
shell
basename
$(CURDIR)
)
VERSION
?=
$(
shell
git describe
--tags
--dirty
2>/dev/null
)
VERSION
?=
$(
shell
git describe
--tags
2>/dev/null
)
ifeq
($(VERSION),)
VERSION
:=
unknown
...
...
Makefile
View file @
61a06e7e
...
...
@@ -4,14 +4,17 @@ IMAGENAME:=registry.cluster.gsi.dit.upm.es/sefarad/dashboard-somedi/gsicrawler
VERSIONFILE
:=
VERSION
include
.makefiles/base.mk
include
.makefiles/python.mk
#
include .makefiles/python.mk
include
.makefiles/k8s.mk
build-web
:
version Dockerfile-%
##
Build a specific version (e.g. build-2.7)
docker build
-t
'
$(IMAGE
WTAG)
-python$*'
--cache-from
$(IMAGENAMEWEB)
:python
$*
-f
demo/Dockerfile
-
$*
.
;
build-web
:
##
Build a specific version (e.g. build-2.7)
docker build
-t
'
$(IMAGE
NAMEWEB)
'
-f
demo/Dockerfile
demo/
;
push-web
:
$(addprefix push-latest-
,
$(PYVERSIONS))
##
Push the "latest" tag to dockerhub
docker tag
'
$(IMAGEWTAG)
-python
$(PYMAIN)
'
'
$(IMAGEWTAG)
'
docker tag
'
$(IMAGEWTAG)
-python
$(PYMAIN)
'
'
$(IMAGENAMEWEB)
'
docker push
'
$(IMAGENAMEWEB)
:latest'
docker push
'
$(IMAGEWTAG)
'
push-web
:
build-web
##
Push the "latest" tag to dockerhub
docker push
'
$(IMAGENAMEWEB)
:
$(VERSION)
'
build-latest
:
##
Build a specific version (e.g. build-2.7)
docker build
-t
'
$(IMAGENAME)
'
-f
Dockerfile .
;
push-latest
:
build-latest
##
Push the "latest" tag to dockerhub
docker push
'
$(IMAGENAME)
:
$(VERSION)
'
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment