diff --git a/Makefile b/Makefile index 239a63f0..802d4a2d 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,8 @@ arch_patch/%: ## apply hardware architecture specific patches to the Dockerfile build/%: DARGS?= build/%: ## build the latest image for a stack docker build $(DARGS) --rm --force-rm -t $(OWNER)/$(notdir $@):latest ./$(notdir $@) + @echo -n "Built image size: " + @docker images $(OWNER)/$(notdir $@):latest --format "{{.Size}}" build-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) ) ## build all stacks build-test-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) test/$(I) ) ## build and test all stacks @@ -125,4 +127,4 @@ test/%: ## run tests against a stack (only common tests or common tests + specif @if [ ! -d "$(notdir $@)/test" ]; then TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -m "not info" test; \ else TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -m "not info" test $(notdir $@)/test; fi -test-all: $(foreach I,$(ALL_IMAGES),test/$(I)) ## test all stacks \ No newline at end of file +test-all: $(foreach I,$(ALL_IMAGES),test/$(I)) ## test all stacks diff --git a/all-spark-notebook/hooks/manifest.tmpl b/all-spark-notebook/hooks/manifest.tmpl index ff9aefdb..69610a25 100644 --- a/all-spark-notebook/hooks/manifest.tmpl +++ b/all-spark-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/base-notebook/hooks/manifest.tmpl b/base-notebook/hooks/manifest.tmpl index a8327f8f..378a94cb 100644 --- a/base-notebook/hooks/manifest.tmpl +++ b/base-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/datascience-notebook/hooks/manifest.tmpl b/datascience-notebook/hooks/manifest.tmpl index 37e93dab..1eb525fe 100644 --- a/datascience-notebook/hooks/manifest.tmpl +++ b/datascience-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/minimal-notebook/hooks/manifest.tmpl b/minimal-notebook/hooks/manifest.tmpl index a8327f8f..378a94cb 100644 --- a/minimal-notebook/hooks/manifest.tmpl +++ b/minimal-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/pyspark-notebook/hooks/manifest.tmpl b/pyspark-notebook/hooks/manifest.tmpl index 7602d5a1..e1058b95 100644 --- a/pyspark-notebook/hooks/manifest.tmpl +++ b/pyspark-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/r-notebook/hooks/manifest.tmpl b/r-notebook/hooks/manifest.tmpl index 5bc37b45..63f72a8f 100644 --- a/r-notebook/hooks/manifest.tmpl +++ b/r-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/scipy-notebook/hooks/manifest.tmpl b/scipy-notebook/hooks/manifest.tmpl index a8327f8f..378a94cb 100644 --- a/scipy-notebook/hooks/manifest.tmpl +++ b/scipy-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\` diff --git a/tensorflow-notebook/hooks/manifest.tmpl b/tensorflow-notebook/hooks/manifest.tmpl index a8327f8f..378a94cb 100644 --- a/tensorflow-notebook/hooks/manifest.tmpl +++ b/tensorflow-notebook/hooks/manifest.tmpl @@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE" * Build datetime: ${BUILD_TIMESTAMP} * DockerHub build code: ${BUILD_CODE} * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG} +* Docker image size: $(docker images ${IMAGE_NAME} --format "{{.Size}}") * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT}) * Git commit message: \`\`\`