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
10c97685
Commit
10c97685
authored
May 26, 2020
by
Peter Parente
Committed by
GitHub
May 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1091 from mathbunnyru/asalikhov/add_size_print
Print image size after building it
parents
dc57157d
90962703
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
1 deletion
+11
-1
Makefile
Makefile
+3
-1
all-spark-notebook/hooks/manifest.tmpl
all-spark-notebook/hooks/manifest.tmpl
+1
-0
base-notebook/hooks/manifest.tmpl
base-notebook/hooks/manifest.tmpl
+1
-0
datascience-notebook/hooks/manifest.tmpl
datascience-notebook/hooks/manifest.tmpl
+1
-0
minimal-notebook/hooks/manifest.tmpl
minimal-notebook/hooks/manifest.tmpl
+1
-0
pyspark-notebook/hooks/manifest.tmpl
pyspark-notebook/hooks/manifest.tmpl
+1
-0
r-notebook/hooks/manifest.tmpl
r-notebook/hooks/manifest.tmpl
+1
-0
scipy-notebook/hooks/manifest.tmpl
scipy-notebook/hooks/manifest.tmpl
+1
-0
tensorflow-notebook/hooks/manifest.tmpl
tensorflow-notebook/hooks/manifest.tmpl
+1
-0
No files found.
Makefile
View file @
10c97685
...
@@ -45,6 +45,8 @@ arch_patch/%: ## apply hardware architecture specific patches to the Dockerfile
...
@@ -45,6 +45,8 @@ arch_patch/%: ## apply hardware architecture specific patches to the Dockerfile
build/%
:
DARGS?=
build/%
:
DARGS?=
build/%
:
##
build the latest image for a stack
build/%
:
##
build the latest image for a stack
docker build
$(DARGS)
--rm
--force-rm
-t
$(OWNER)
/
$(
notdir
$@
)
:latest ./
$(
notdir
$@
)
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-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
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
...
@@ -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
;
\
@
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
else
TEST_IMAGE
=
"
$(OWNER)
/
$(
notdir
$@
)
"
pytest
-m
"not info"
test
$(
notdir
$@
)
/test
;
fi
test-all
:
$(foreach I
,
$(ALL_IMAGES)
,
test/$(I))
##
test all stacks
test-all
:
$(foreach I
,
$(ALL_IMAGES)
,
test/$(I))
##
test all stacks
\ No newline at end of file
all-spark-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
base-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
datascience-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
minimal-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
pyspark-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
r-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
scipy-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
tensorflow-notebook/hooks/manifest.tmpl
View file @
10c97685
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
...
@@ -2,6 +2,7 @@ cat << EOF > "$MANIFEST_FILE"
* Build datetime: ${BUILD_TIMESTAMP}
* Build datetime: ${BUILD_TIMESTAMP}
* DockerHub build code: ${BUILD_CODE}
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* 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 SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
* Git commit message:
\`\`\`
\`\`\`
...
...
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