File tree Expand file tree Collapse file tree 16 files changed +486
-0
lines changed
datascience-notebook/hooks
tensorflow-notebook/hooks Expand file tree Collapse file tree 16 files changed +486
-0
lines changed Original file line number Diff line number Diff line change
1
+ cat << EOF > "$MANIFEST_FILE"
2
+ * Build datetime: $(date -u +%FT%TZ)
3
+ * DockerHub build code: ${BUILD_CODE}
4
+ * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
5
+ * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
6
+ * Git commit message:
7
+ \`\`\`
8
+ ${COMMIT_MSG}
9
+ \`\`\`
10
+
11
+ ## Apache Packages
12
+
13
+ \`\`\`
14
+ $(docker run --rm ${IMAGE_NAME} spark-submit --version)
15
+ \`\`\`
16
+
17
+ ## Python Packages
18
+
19
+ \`\`\`
20
+ $(docker run --rm ${IMAGE_NAME} conda list)
21
+ \`\`\`
22
+
23
+ ## Apt Packages
24
+
25
+ \`\`\`
26
+ $(docker run --rm ${IMAGE_NAME} apt list --installed)
27
+ \`\`\`
28
+ EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
# Tag the latest build with the short git sha. Push the tag in addition
4
5
# to the "latest" tag already pushed.
5
6
GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12}
6
7
docker tag $IMAGE_NAME $DOCKER_REPO :$GIT_SHA_TAG
7
8
docker push $DOCKER_REPO :$GIT_SHA_TAG
8
9
10
+ # Create a working directory.
11
+ WORKDIR=$( mktemp -d)
12
+ GIT_URI=" git@github.com:jupyter/docker-stacks.wiki.git"
13
+ GIT_SANDBOX=" ${WORKDIR} /docker-stacks.wiki"
14
+ IMAGE_SHORT_NAME=$( basename $DOCKER_REPO )
15
+ MANIFEST_FILE=" ${GIT_SANDBOX} /manifests/${IMAGE_SHORT_NAME} -${SOURCE_COMMIT: 0: 12} .md"
16
+
17
+ # Configure git so it can push back to GitHub.
18
+ eval $( ssh-agent -s)
19
+ ssh-add <( echo " $DEPLOY_KEY " )
20
+ ssh-add -l
21
+ git config --global user.email " jupyter@googlegroups.com"
22
+ git config --global user.name " Jupyter Docker Stacks"
23
+
24
+ # Glone the GitHub project wiki.
25
+ pushd " $WORKDIR "
26
+ git clone " $GIT_URI "
27
+ popd
28
+
29
+ # Render the build manifest template.
30
+ mkdir -p $( dirname " $MANIFEST_FILE " )
31
+ source hooks/manifest.tmpl
32
+
33
+ # Push the wiki update back to GitHub.
34
+ pushd " $GIT_SANDBOX "
35
+ git add .
36
+ git commit -m " DOC: Build ${MANIFEST_FILE} "
37
+ git push -u origin master
38
+ popd
39
+
40
+ # Shutdown the ssh agent for good measure.
41
+ ssh-agent -k
42
+
9
43
# Invoke all downstream build triggers.
44
+ set +e
10
45
for url in $( echo $NEXT_BUILD_TRIGGERS | sed " s/,/ /g" )
11
46
do
12
47
curl -X POST $url
Original file line number Diff line number Diff line change
1
+ cat << EOF > "$MANIFEST_FILE"
2
+ * Build datetime: $(date -u +%FT%TZ)
3
+ * DockerHub build code: ${BUILD_CODE}
4
+ * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
5
+ * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
6
+ * Git commit message:
7
+ \`\`\`
8
+ ${COMMIT_MSG}
9
+ \`\`\`
10
+
11
+ ## Python Packages
12
+
13
+ \`\`\`
14
+ $(docker run --rm ${IMAGE_NAME} conda list)
15
+ \`\`\`
16
+
17
+ ## Apt Packages
18
+
19
+ \`\`\`
20
+ $(docker run --rm ${IMAGE_NAME} apt list --installed)
21
+ \`\`\`
22
+ EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
# Tag the latest build with the short git sha. Push the tag in addition
4
5
# to the "latest" tag already pushed.
5
6
GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12}
6
7
docker tag $IMAGE_NAME $DOCKER_REPO :$GIT_SHA_TAG
7
8
docker push $DOCKER_REPO :$GIT_SHA_TAG
8
9
10
+ # Create a working directory.
11
+ WORKDIR=$( mktemp -d)
12
+ GIT_URI=" git@github.com:jupyter/docker-stacks.wiki.git"
13
+ GIT_SANDBOX=" ${WORKDIR} /docker-stacks.wiki"
14
+ IMAGE_SHORT_NAME=$( basename $DOCKER_REPO )
15
+ MANIFEST_FILE=" ${GIT_SANDBOX} /manifests/${IMAGE_SHORT_NAME} -${SOURCE_COMMIT: 0: 12} .md"
16
+
17
+ # Configure git so it can push back to GitHub.
18
+ eval $( ssh-agent -s)
19
+ ssh-add <( echo " $DEPLOY_KEY " )
20
+ ssh-add -l
21
+ git config --global user.email " jupyter@googlegroups.com"
22
+ git config --global user.name " Jupyter Docker Stacks"
23
+
24
+ # Glone the GitHub project wiki.
25
+ pushd " $WORKDIR "
26
+ git clone " $GIT_URI "
27
+ popd
28
+
29
+ # Render the build manifest template.
30
+ mkdir -p $( dirname " $MANIFEST_FILE " )
31
+ source hooks/manifest.tmpl
32
+
33
+ # Push the wiki update back to GitHub.
34
+ pushd " $GIT_SANDBOX "
35
+ git add .
36
+ git commit -m " DOC: Build ${MANIFEST_FILE} "
37
+ git push -u origin master
38
+ popd
39
+
40
+ # Shutdown the ssh agent for good measure.
41
+ ssh-agent -k
42
+
9
43
# Invoke all downstream build triggers.
44
+ set +e
10
45
for url in $( echo $NEXT_BUILD_TRIGGERS | sed " s/,/ /g" )
11
46
do
12
47
curl -X POST $url
Original file line number Diff line number Diff line change
1
+ cat << EOF > "$MANIFEST_FILE"
2
+ * Build datetime: $(date -u +%FT%TZ)
3
+ * DockerHub build code: ${BUILD_CODE}
4
+ * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
5
+ * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
6
+ * Git commit message:
7
+ \`\`\`
8
+ ${COMMIT_MSG}
9
+ \`\`\`
10
+
11
+ ## Julia Packages
12
+
13
+ \`\`\`
14
+ $(docker run --rm ${IMAGE_NAME} julia -E 'import Pkg; Pkg.status()')
15
+ \`\`\`
16
+
17
+ ## Python Packages
18
+
19
+ \`\`\`
20
+ $(docker run --rm ${IMAGE_NAME} conda list)
21
+ \`\`\`
22
+
23
+ ## R Packages
24
+
25
+ \`\`\`
26
+ $(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(1,3)]')
27
+ \`\`\`
28
+
29
+ ## Apt Packages
30
+
31
+ \`\`\`
32
+ $(docker run --rm ${IMAGE_NAME} apt list --installed)
33
+ \`\`\`
34
+ EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
# Tag the latest build with the short git sha. Push the tag in addition
4
5
# to the "latest" tag already pushed.
5
6
GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12}
6
7
docker tag $IMAGE_NAME $DOCKER_REPO :$GIT_SHA_TAG
7
8
docker push $DOCKER_REPO :$GIT_SHA_TAG
8
9
10
+ # Create a working directory.
11
+ WORKDIR=$( mktemp -d)
12
+ GIT_URI=" git@github.com:jupyter/docker-stacks.wiki.git"
13
+ GIT_SANDBOX=" ${WORKDIR} /docker-stacks.wiki"
14
+ IMAGE_SHORT_NAME=$( basename $DOCKER_REPO )
15
+ MANIFEST_FILE=" ${GIT_SANDBOX} /manifests/${IMAGE_SHORT_NAME} -${SOURCE_COMMIT: 0: 12} .md"
16
+
17
+ # Configure git so it can push back to GitHub.
18
+ eval $( ssh-agent -s)
19
+ ssh-add <( echo " $DEPLOY_KEY " )
20
+ ssh-add -l
21
+ git config --global user.email " jupyter@googlegroups.com"
22
+ git config --global user.name " Jupyter Docker Stacks"
23
+
24
+ # Glone the GitHub project wiki.
25
+ pushd " $WORKDIR "
26
+ git clone " $GIT_URI "
27
+ popd
28
+
29
+ # Render the build manifest template.
30
+ mkdir -p $( dirname " $MANIFEST_FILE " )
31
+ source hooks/manifest.tmpl
32
+
33
+ # Push the wiki update back to GitHub.
34
+ pushd " $GIT_SANDBOX "
35
+ git add .
36
+ git commit -m " DOC: Build ${MANIFEST_FILE} "
37
+ git push -u origin master
38
+ popd
39
+
40
+ # Shutdown the ssh agent for good measure.
41
+ ssh-agent -k
42
+
9
43
# Invoke all downstream build triggers.
44
+ set +e
10
45
for url in $( echo $NEXT_BUILD_TRIGGERS | sed " s/,/ /g" )
11
46
do
12
47
curl -X POST $url
Original file line number Diff line number Diff line change
1
+ cat << EOF > "$MANIFEST_FILE"
2
+ * Build datetime: $(date -u +%FT%TZ)
3
+ * DockerHub build code: ${BUILD_CODE}
4
+ * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
5
+ * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
6
+ * Git commit message:
7
+ \`\`\`
8
+ ${COMMIT_MSG}
9
+ \`\`\`
10
+
11
+ ## Python Packages
12
+
13
+ \`\`\`
14
+ $(docker run --rm ${IMAGE_NAME} conda list)
15
+ \`\`\`
16
+
17
+ ## Apt Packages
18
+
19
+ \`\`\`
20
+ $(docker run --rm ${IMAGE_NAME} apt list --installed)
21
+ \`\`\`
22
+ EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
# Tag the latest build with the short git sha. Push the tag in addition
4
5
# to the "latest" tag already pushed.
5
6
GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12}
6
7
docker tag $IMAGE_NAME $DOCKER_REPO :$GIT_SHA_TAG
7
8
docker push $DOCKER_REPO :$GIT_SHA_TAG
8
9
10
+ # Create a working directory.
11
+ WORKDIR=$( mktemp -d)
12
+ GIT_URI=" git@github.com:jupyter/docker-stacks.wiki.git"
13
+ GIT_SANDBOX=" ${WORKDIR} /docker-stacks.wiki"
14
+ IMAGE_SHORT_NAME=$( basename $DOCKER_REPO )
15
+ MANIFEST_FILE=" ${GIT_SANDBOX} /manifests/${IMAGE_SHORT_NAME} -${SOURCE_COMMIT: 0: 12} .md"
16
+
17
+ # Configure git so it can push back to GitHub.
18
+ eval $( ssh-agent -s)
19
+ ssh-add <( echo " $DEPLOY_KEY " )
20
+ ssh-add -l
21
+ git config --global user.email " jupyter@googlegroups.com"
22
+ git config --global user.name " Jupyter Docker Stacks"
23
+
24
+ # Glone the GitHub project wiki.
25
+ pushd " $WORKDIR "
26
+ git clone " $GIT_URI "
27
+ popd
28
+
29
+ # Render the build manifest template.
30
+ mkdir -p $( dirname " $MANIFEST_FILE " )
31
+ source hooks/manifest.tmpl
32
+
33
+ # Push the wiki update back to GitHub.
34
+ pushd " $GIT_SANDBOX "
35
+ git add .
36
+ git commit -m " DOC: Build ${MANIFEST_FILE} "
37
+ git push -u origin master
38
+ popd
39
+
40
+ # Shutdown the ssh agent for good measure.
41
+ ssh-agent -k
42
+
9
43
# Invoke all downstream build triggers.
44
+ set +e
10
45
for url in $( echo $NEXT_BUILD_TRIGGERS | sed " s/,/ /g" )
11
46
do
12
47
curl -X POST $url
Original file line number Diff line number Diff line change
1
+ cat << EOF > "$MANIFEST_FILE"
2
+ * Build datetime: $(date -u +%FT%TZ)
3
+ * DockerHub build code: ${BUILD_CODE}
4
+ * Docker image: ${DOCKER_REPO}:${GIT_SHA_TAG}
5
+ * Git commit SHA: [${SOURCE_COMMIT}](https://github.com/jupyter/docker-stacks/commit/${SOURCE_COMMIT})
6
+ * Git commit message:
7
+ \`\`\`
8
+ ${COMMIT_MSG}
9
+ \`\`\`
10
+
11
+ ## Apache Packages
12
+
13
+ \`\`\`
14
+ $(docker run --rm ${IMAGE_NAME} spark-submit --version)
15
+ \`\`\`
16
+
17
+ ## Python Packages
18
+
19
+ \`\`\`
20
+ $(docker run --rm ${IMAGE_NAME} conda list)
21
+ \`\`\`
22
+
23
+ ## Apt Packages
24
+
25
+ \`\`\`
26
+ $(docker run --rm ${IMAGE_NAME} apt list --installed)
27
+ \`\`\`
28
+ EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
# Tag the latest build with the short git sha. Push the tag in addition
4
5
# to the "latest" tag already pushed.
5
6
GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12}
6
7
docker tag $IMAGE_NAME $DOCKER_REPO :$GIT_SHA_TAG
7
8
docker push $DOCKER_REPO :$GIT_SHA_TAG
8
9
10
+ # Create a working directory.
11
+ WORKDIR=$( mktemp -d)
12
+ GIT_URI=" git@github.com:jupyter/docker-stacks.wiki.git"
13
+ GIT_SANDBOX=" ${WORKDIR} /docker-stacks.wiki"
14
+ IMAGE_SHORT_NAME=$( basename $DOCKER_REPO )
15
+ MANIFEST_FILE=" ${GIT_SANDBOX} /manifests/${IMAGE_SHORT_NAME} -${SOURCE_COMMIT: 0: 12} .md"
16
+
17
+ # Configure git so it can push back to GitHub.
18
+ eval $( ssh-agent -s)
19
+ ssh-add <( echo " $DEPLOY_KEY " )
20
+ ssh-add -l
21
+ git config --global user.email " jupyter@googlegroups.com"
22
+ git config --global user.name " Jupyter Docker Stacks"
23
+
24
+ # Glone the GitHub project wiki.
25
+ pushd " $WORKDIR "
26
+ git clone " $GIT_URI "
27
+ popd
28
+
29
+ # Render the build manifest template.
30
+ mkdir -p $( dirname " $MANIFEST_FILE " )
31
+ source hooks/manifest.tmpl
32
+
33
+ # Push the wiki update back to GitHub.
34
+ pushd " $GIT_SANDBOX "
35
+ git add .
36
+ git commit -m " DOC: Build ${MANIFEST_FILE} "
37
+ git push -u origin master
38
+ popd
39
+
40
+ # Shutdown the ssh agent for good measure.
41
+ ssh-agent -k
42
+
9
43
# Invoke all downstream build triggers.
44
+ set +e
10
45
for url in $( echo $NEXT_BUILD_TRIGGERS | sed " s/,/ /g" )
11
46
do
12
47
curl -X POST $url
You can’t perform that action at this time.
0 commit comments