Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
18e0e8cf
Commit
18e0e8cf
authored
Nov 27, 2017
by
Peter Parente
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove legacy make targets
parent
033056e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
44 deletions
+5
-44
Makefile
Makefile
+5
-44
No files found.
Makefile
View file @
18e0e8cf
# Copyright (c) Jupyter Development Team.
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# Distributed under the terms of the Modified BSD License.
.PHONY
:
help test
.PHONY
:
build-all help environment-check release-all
# Use bash for inline if-statements in test target
# Use bash for inline if-statements in test target
SHELL
:=
bash
SHELL
:=
bash
OWNER
:=
jupyter
OWNER
:=
jupyter
# need to list these manually because there's a dependency tree
ARCH
:=
$(
shell
uname
-m
)
ARCH
:=
$(
shell
uname
-m
)
# Need to list the images in build dependency order
ifeq
($(ARCH),ppc64le)
ifeq
($(ARCH),ppc64le)
ALL_STACKS
:=
base-notebook
ALL_STACKS
:=
base-notebook
else
else
ALL_STACKS
:=
base-notebook
\
ALL_STACKS
:=
base-notebook
\
minimal-notebook
\
minimal-notebook
\
...
@@ -25,10 +23,6 @@ endif
...
@@ -25,10 +23,6 @@ endif
ALL_IMAGES
:=
$(ALL_STACKS)
ALL_IMAGES
:=
$(ALL_STACKS)
GIT_MASTER_HEAD_SHA
:=
$(
shell
git rev-parse
--short
=
12
--verify
HEAD
)
RETRIES
:=
10
help
:
help
:
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@echo
"jupyter/docker-stacks"
@echo
"jupyter/docker-stacks"
...
@@ -38,7 +32,7 @@ help:
...
@@ -38,7 +32,7 @@ help:
@grep -E '^[a-zA-Z0-9_%/-]+
:
.*?
##
.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?
##
"}; {printf "
\0
33[36m%-30s
\0
33[0m %s
\n
"
,
$$1
,
$$2}'
@grep -E '^[a-zA-Z0-9_%/-]+
:
.*?
##
.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?
##
"}; {printf "
\0
33[36m%-30s
\0
33[0m %s
\n
"
,
$$1
,
$$2}'
arch_patch/%
:
##
apply hardware architecture specific patches to the Dockerfile
arch_patch/%
:
##
apply hardware architecture specific patches to the Dockerfile
if
[
-e
./
$(
notdir
$@
)
/Dockerfile.
$(ARCH)
.patch
]
;
then
\
@
if
[
-e
./
$(
notdir
$@
)
/Dockerfile.
$(ARCH)
.patch
]
;
then
\
if
[
-e
./
$(
notdir
$@
)
/Dockerfile.orig
]
;
then
\
if
[
-e
./
$(
notdir
$@
)
/Dockerfile.orig
]
;
then
\
cp
-f
./
$(
notdir
$@
)
/Dockerfile.orig ./
$(
notdir
$@
)
/Dockerfile
;
\
cp
-f
./
$(
notdir
$@
)
/Dockerfile.orig ./
$(
notdir
$@
)
/Dockerfile
;
\
else
\
else
\
...
@@ -60,40 +54,7 @@ dev/%: PORT?=8888
...
@@ -60,40 +54,7 @@ dev/%: PORT?=8888
dev/%
:
##
run a foreground container for a stack
dev/%
:
##
run a foreground container for a stack
docker run
-it
--rm
-p
$(PORT)
:8888
$(DARGS)
$(OWNER)
/
$(
notdir
$@
)
$(ARGS)
docker run
-it
--rm
-p
$(PORT)
:8888
$(DARGS)
$(OWNER)
/
$(
notdir
$@
)
$(ARGS)
environment-check
:
test
-e
~/.docker-stacks-builder
push/%
:
##
push the latest and HEAD git SHA tags for a stack to Docker Hub
docker push
$(OWNER)
/
$(
notdir
$@
)
:latest
docker push
$(OWNER)
/
$(
notdir
$@
)
:
$(GIT_MASTER_HEAD_SHA)
push-all
:
$(ALL_IMAGES:%=push/%)
##
push all stacks
refresh/%
:
##
pull the latest image from Docker Hub for a stack
# skip if error: a stack might not be on dockerhub yet
-docker pull $(OWNER)/$(notdir $@)
:
latest
refresh-all
:
$(ALL_IMAGES:%=refresh/%)
##
refresh all stacks
release-all
:
environment-check
\
refresh-all
\
build-test-all
\
tag-all
\
push-all
release-all
:
##
build
,
test
,
tag
,
and push all stacks
retry/%
:
@
for
i
in
$$
(
seq
1
$(RETRIES)
)
;
do
\
make
$(
notdir
$@
)
;
\
if
[[
$$
?
==
0
]]
;
then
exit
0
;
fi
;
\
echo
"Sleeping for
$$
((i * 60))s before retry"
;
\
sleep
$$
((
i
*
60
))
;
\
done
;
exit
1
tag/%
:
##
tag the latest stack image with the HEAD git SHA
docker tag
-f
$(OWNER)
/
$(
notdir
$@
)
:latest
$(OWNER)
/
$(
notdir
$@
)
:
$(GIT_MASTER_HEAD_SHA)
tag-all
:
$(ALL_IMAGES:%=tag/%)
##
tag all stacks
test/%
:
##
run a stack container
,
check for jupyter server liveliness
test/%
:
##
run a stack container
,
check for jupyter server liveliness
@
-docker
rm
-f
iut
@
-docker
rm
-f
iut
...
@@ -104,4 +65,4 @@ test/%: ## run a stack container, check for jupyter server liveliness
...
@@ -104,4 +65,4 @@ test/%: ## run a stack container, check for jupyter server liveliness
if
[[
$$
?
==
0
]]
;
then
exit
0
;
fi
;
\
if
[[
$$
?
==
0
]]
;
then
exit
0
;
fi
;
\
done
;
exit
1
done
;
exit
1
test-all
:
$(ALL_IMAGES:%=test/%)
##
test all stacks
test-all
:
$(ALL_IMAGES:%=test/%)
##
test all stacks
\ No newline at end of file
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