File tree 3 files changed +28
-2
lines changed
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 93
93
sudo make import TARGET=docker REPOSITORY=${REPOSITORY} TAG=${TAG}\
94
94
-o ${{ steps.artifact.outputs.name }}
95
95
96
+ # Add relevant labels
97
+ COMMIT_ID=$(git log -1 --format=%H)
98
+ DESCRIPTION=$(yq .description rockcraft.yaml | xargs)
99
+
100
+ echo "FROM ${IMAGE_NAME}:${TAG}" | docker build --label org.opencontainers.image.description="${DESCRIPTION}" --label org.opencontainers.image.revision="${COMMIT_ID}" --label org.opencontainers.image.source="${{ github.repositoryUrl }}" -t "${IMAGE_NAME}:${TAG}" -
101
+
96
102
echo "Publishing ${IMAGE_NAME}:${TAG}"
97
103
docker push ${IMAGE_NAME}:${TAG}
98
104
@@ -119,6 +125,10 @@ jobs:
119
125
-o $(find .make_cache -name "*.tag")
120
126
121
127
IMAGE_NAME=$(make help FLAVOUR=jupyter REPOSITORY=${REPOSITORY} TAG=${TAG} help | grep "Image\:" | cut -d ":" -f2 | xargs)
128
+
129
+ DESCRIPTION=$(sed -n '/^#\ \-/,/^#\ \-/ p' build/Dockerfile.jupyter | sed 's/^\#\ //g' | sed '$ d' | tail -n+2 | xargs)
130
+
131
+ echo "FROM ${IMAGE_NAME}:${TAG}" | docker build --label org.opencontainers.image.description="${DESCRIPTION}" --label org.opencontainers.image.revision="${COMMIT_ID}" --label org.opencontainers.image.source="${{ github.repositoryUrl }}" -t "${IMAGE_NAME}:${TAG}" -
122
132
123
133
echo "Publishing ${IMAGE_NAME}:${TAG}"
124
134
docker push ${IMAGE_NAME}:${TAG}
Original file line number Diff line number Diff line change
1
+ # ---------------------------------------------------------------------------
2
+ # This is an OCI image to deploy JupyterLab server instances on K8s, fully
3
+ # integrated with Charmed Spark ecosystem and utilities. The image provides an
4
+ # automated and seamless user-experience to deploy, operate, manage and monitor
5
+ # SparkJob running on K8s cluster.
6
+ # It is an open source, end-to-end, production ready data platform on top of
7
+ # cloud native technologies.
8
+ # ---------------------------------------------------------------------------
9
+
1
10
ARG BASE_IMAGE=base-charmed-spark:latest
2
11
ARG JUPYTERLAB_VERSION=4.0.0
3
12
FROM $BASE_IMAGE
Original file line number Diff line number Diff line change 1
1
name : charmed-spark
2
- summary : Spark ROCK
3
- description : Spark ROCK
2
+ summary : Charmed Apache Spark ROCK
3
+ description : |
4
+ This is an OCI image that bundles Apache Spark binaries together with other
5
+ tools of its ecosystem in order to be used in Charmed Operators, providing
6
+ an automated and seamless experience to deploy, operate, manage and monitor
7
+ SparkJob on K8s cluster.
8
+ It is an open source, end-to-end, production ready data platform on top of
9
+ cloud native technologies.
10
+
4
11
license : Apache-2.0
5
12
6
13
version : " 3.4.2"
You can’t perform that action at this time.
0 commit comments