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
3339b63a
Commit
3339b63a
authored
Mar 16, 2019
by
Peter Parente
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] Add row to build index after every image push
parent
243da296
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
56 additions
and
16 deletions
+56
-16
all-spark-notebook/hooks/index.tmpl
all-spark-notebook/hooks/index.tmpl
+2
-0
all-spark-notebook/hooks/manifest.tmpl
all-spark-notebook/hooks/manifest.tmpl
+1
-1
all-spark-notebook/hooks/post_push
all-spark-notebook/hooks/post_push
+4
-1
base-notebook/hooks/index.tmpl
base-notebook/hooks/index.tmpl
+2
-0
base-notebook/hooks/manifest.tmpl
base-notebook/hooks/manifest.tmpl
+1
-1
base-notebook/hooks/post_push
base-notebook/hooks/post_push
+4
-1
datascience-notebook/hooks/index.tmpl
datascience-notebook/hooks/index.tmpl
+2
-0
datascience-notebook/hooks/manifest.tmpl
datascience-notebook/hooks/manifest.tmpl
+1
-1
datascience-notebook/hooks/post_push
datascience-notebook/hooks/post_push
+4
-1
minimal-notebook/hooks/index.tmpl
minimal-notebook/hooks/index.tmpl
+2
-0
minimal-notebook/hooks/manifest.tmpl
minimal-notebook/hooks/manifest.tmpl
+1
-1
minimal-notebook/hooks/post_push
minimal-notebook/hooks/post_push
+4
-1
pyspark-notebook/hooks/index.tmpl
pyspark-notebook/hooks/index.tmpl
+2
-0
pyspark-notebook/hooks/manifest.tmpl
pyspark-notebook/hooks/manifest.tmpl
+1
-1
pyspark-notebook/hooks/post_push
pyspark-notebook/hooks/post_push
+4
-1
r-notebook/hooks/index.tmpl
r-notebook/hooks/index.tmpl
+2
-0
r-notebook/hooks/manifest.tmpl
r-notebook/hooks/manifest.tmpl
+1
-1
r-notebook/hooks/post_push
r-notebook/hooks/post_push
+4
-1
scipy-notebook/hooks/index.tmpl
scipy-notebook/hooks/index.tmpl
+2
-0
scipy-notebook/hooks/manifest.tmpl
scipy-notebook/hooks/manifest.tmpl
+1
-1
scipy-notebook/hooks/post_push
scipy-notebook/hooks/post_push
+4
-1
tensorflow-notebook/hooks/index.tmpl
tensorflow-notebook/hooks/index.tmpl
+2
-0
tensorflow-notebook/hooks/manifest.tmpl
tensorflow-notebook/hooks/manifest.tmpl
+1
-1
tensorflow-notebook/hooks/post_push
tensorflow-notebook/hooks/post_push
+4
-1
No files found.
all-spark-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
all-spark-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
all-spark-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
base-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
base-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
base-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
datascience-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
datascience-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
datascience-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
minimal-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
minimal-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
minimal-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
pyspark-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
pyspark-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
pyspark-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
r-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
r-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
r-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
scipy-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
scipy-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
scipy-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
tensorflow-notebook/hooks/index.tmpl
0 → 100644
View file @
3339b63a
INDEX_ROW="|\`${BUILD_TIMESTAMP}\`|${GIT_SHA_TAG}|[Git diff](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})<br />[Dockerfile](https://github.com/jupyter/docker-stacks/blob/${SOURCE_COMMIT}/${IMAGE_SHORT_NAME}/Dockerfile)<br />[Build manifest](./${IMAGE_SHORT_NAME}-${GIT_SHA_TAG})|"
sed "/|-|/a ${INDEX_ROW}" -i "$INDEX_FILE"
\ No newline at end of file
tensorflow-notebook/hooks/manifest.tmpl
View file @
3339b63a
cat << EOF > "$MANIFEST_FILE"
cat << EOF > "$MANIFEST_FILE"
* Build datetime: $
(date -u +%FT%TZ)
* 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}
* 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})
...
...
tensorflow-notebook/hooks/post_push
View file @
3339b63a
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
...
@@ -8,11 +8,13 @@ docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
docker push
$DOCKER_REPO
:
$GIT_SHA_TAG
# Create a working directory.
# Create a working directory.
BUILD_TIMESTAMP
=
$(
date
-u
+%FT%TZ
)
WORKDIR
=
$(
mktemp
-d
)
WORKDIR
=
$(
mktemp
-d
)
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_URI
=
"git@github.com:jupyter/docker-stacks.wiki.git"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
GIT_SANDBOX
=
"
${
WORKDIR
}
/docker-stacks.wiki"
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
IMAGE_SHORT_NAME
=
$(
basename
$DOCKER_REPO
)
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
SOURCE_COMMIT
:0:12
}
.md"
MANIFEST_FILE
=
"
${
GIT_SANDBOX
}
/manifests/
${
IMAGE_SHORT_NAME
}
-
${
GIT_SHA_TAG
}
.md"
INDEX_FILE
=
"
${
GIT_SANDBOX
}
/Home.md"
# Configure git so it can push back to GitHub.
# Configure git so it can push back to GitHub.
eval
$(
ssh-agent
-s
)
eval
$(
ssh-agent
-s
)
...
@@ -29,6 +31,7 @@ popd
...
@@ -29,6 +31,7 @@ popd
# Render the build manifest template.
# Render the build manifest template.
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
mkdir
-p
$(
dirname
"
$MANIFEST_FILE
"
)
source
hooks/manifest.tmpl
source
hooks/manifest.tmpl
source
hooks/index.tmpl
# Push the wiki update back to GitHub.
# Push the wiki update back to GitHub.
pushd
"
$GIT_SANDBOX
"
pushd
"
$GIT_SANDBOX
"
...
...
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