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
eb149a8c
Commit
eb149a8c
authored
Mar 15, 2019
by
Peter Parente
Committed by
GitHub
Mar 15, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #828 from parente/image-manifests
[ci skip] Add package manifest support
parents
022da74a
10c58da4
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
486 additions
and
0 deletions
+486
-0
all-spark-notebook/hooks/manifest.tmpl
all-spark-notebook/hooks/manifest.tmpl
+28
-0
all-spark-notebook/hooks/post_push
all-spark-notebook/hooks/post_push
+35
-0
base-notebook/hooks/manifest.tmpl
base-notebook/hooks/manifest.tmpl
+22
-0
base-notebook/hooks/post_push
base-notebook/hooks/post_push
+35
-0
datascience-notebook/hooks/manifest.tmpl
datascience-notebook/hooks/manifest.tmpl
+34
-0
datascience-notebook/hooks/post_push
datascience-notebook/hooks/post_push
+35
-0
minimal-notebook/hooks/manifest.tmpl
minimal-notebook/hooks/manifest.tmpl
+22
-0
minimal-notebook/hooks/post_push
minimal-notebook/hooks/post_push
+35
-0
pyspark-notebook/hooks/manifest.tmpl
pyspark-notebook/hooks/manifest.tmpl
+28
-0
pyspark-notebook/hooks/post_push
pyspark-notebook/hooks/post_push
+35
-0
r-notebook/hooks/manifest.tmpl
r-notebook/hooks/manifest.tmpl
+28
-0
r-notebook/hooks/post_push
r-notebook/hooks/post_push
+35
-0
scipy-notebook/hooks/manifest.tmpl
scipy-notebook/hooks/manifest.tmpl
+22
-0
scipy-notebook/hooks/post_push
scipy-notebook/hooks/post_push
+35
-0
tensorflow-notebook/hooks/manifest.tmpl
tensorflow-notebook/hooks/manifest.tmpl
+22
-0
tensorflow-notebook/hooks/post_push
tensorflow-notebook/hooks/post_push
+35
-0
No files found.
all-spark-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Apache Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} spark-submit --version)
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
all-spark-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
base-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
base-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
datascience-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Julia Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} julia -E 'import Pkg; Pkg.status()')
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## R Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(1,3)]')
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
datascience-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
minimal-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
minimal-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
pyspark-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Apache Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} spark-submit --version)
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
pyspark-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
r-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## R Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(1,3)]')
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
r-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
scipy-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
scipy-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
tensorflow-notebook/hooks/manifest.tmpl
0 → 100644
View file @
eb149a8c
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $(date -u +%FT%TZ)
* DockerHub build code: ${BUILD_CODE}
* Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
* Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
* Git commit message:
\`\`\`
${COMMIT_MSG}
\`\`\`
## Python Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
## Apt Packages
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
tensorflow-notebook/hooks/post_push
View file @
eb149a8c
#!/bin/bash
set
-e
# Tag the latest build with the short git sha. Push the tag in addition
# to the "latest" tag already pushed.
...
...
@@ -6,7 +7,41 @@ GIT_SHA_TAG=${SOURCE_COMMIT:0:12}
docker tag
$IMAGE_NAME
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$DEPLOY_KEY
"
)
ssh-add
-l
git config
--global
user.email
"jupyter@googlegroups.com"
git config
--global
user.name
"Jupyter Docker Stacks"
# Glone the GitHub project wiki.
pushd
"
$WORKDIR
"
git clone
"
$GIT_URI
"
popd
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
git add
.
git commit
-m
"DOC: Build
${
MANIFEST_FILE
}
"
git push
-u
origin master
popd
# Shutdown the ssh agent for good measure.
ssh-agent
-k
# Invoke all downstream build triggers.
set
+e
for
url
in
$(
echo
$NEXT_BUILD_TRIGGERS
|
sed
"s/,/ /g"
)
do
curl
-X
POST
$url
...
...
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