1
0
mirror of https://github.com/balkian/jupyterhub-oauth.git synced 2024-12-21 11:38:14 +00:00
jupyterhub-oauth/Makefile
J. Fernando Sánchez 60039de883 Updated to jupyterhub 0.7.2 to add OAUTH_TLS_VERIFY=0
Also updated oauthenticator and dockerspawner.
We had to update to get SSL to ignore self-signed SSL certificates now we are
temporarily using self-signed certificates.
2017-08-30 13:55:07 +02:00

28 lines
704 B
Makefile

VERSION=`cat VERSION`
REPO="gsiupm/jupyterhub-oauth"
TEST=$(REPO):test-$(VERSION)
FINAL=$(REPO):$(VERSION)
Dockerfile: Dockerfile.template VERSION
cat Dockerfile.template | VERSION=$(VERSION) envsubst > Dockerfile
build: Dockerfile
docker build -t $(TEST) .
run:
docker run -v $$PWD/output:/output -p 8000:8000 -v /var/run/docker.sock:/var/run/docker.sock -v $(PWD)/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py --env-file .env $(TEST) jupyterhub --config /srv/jupyterhub/jupyterhub_config.py --no-ssl
push:
.PHONY: build run
push: build
docker tag $(TEST) $(FINAL)
docker tag $(TEST) $(REPO)
docker rmi $(TEST)
docker push $(FINAL)
docker push $(REPO)
.PHONY: build run push