kopia lustrzana https://github.com/jupyterhub/repo2docker
Make the makefile versioned + more useful
rodzic
31d07fe1b3
commit
4aa5eb60cf
|
@ -1,11 +1,12 @@
|
|||
|
||||
IMAGE_NAME = ubuntu1610-python35-venv
|
||||
IMAGE_NAME = jupyterhub/singleuser-builder
|
||||
VERSION = $(shell cat version)
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
docker build -t $(IMAGE_NAME) .
|
||||
docker build -t $(IMAGE_NAME):$(VERSION) .
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
docker build -t $(IMAGE_NAME)-candidate .
|
||||
IMAGE_NAME=$(IMAGE_NAME)-candidate test/run
|
||||
docker build -t $(IMAGE_NAME)-candidate:$(VERSION) .
|
||||
IMAGE_NAME=$(IMAGE_NAME)-candidate:$(VERSION) test/run
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#!/bin/bash -e
|
||||
#
|
||||
# S2I assemble script for the 'ubuntu1610-python35-venv' image.
|
||||
# S2I assemble script for the jupyterhub/singleuser-builder image.
|
||||
# The 'assemble' script builds your application source so that it is ready to run.
|
||||
#
|
||||
# For more information refer to the documentation:
|
||||
# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
|
||||
#
|
||||
|
||||
# If the 'ubuntu1610-python35-venv' assemble script is executed with the '-h' flag, print the usage.
|
||||
if [[ "$1" == "-h" ]]; then
|
||||
exec /usr/libexec/s2i/usage
|
||||
fi
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
v0.1
|
Ładowanie…
Reference in New Issue