You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2024/08/06 21:19:35 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-49129] Fix `ENTRYPOINT` to point `/opt/spark-operator/operator/docker-entrypoint.sh`
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 996557b [SPARK-49129] Fix `ENTRYPOINT` to point `/opt/spark-operator/operator/docker-entrypoint.sh`
996557b is described below
commit 996557b394df1124045091cbde3ade549ec59126
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Tue Aug 6 14:19:29 2024 -0700
[SPARK-49129] Fix `ENTRYPOINT` to point `/opt/spark-operator/operator/docker-entrypoint.sh`
### What changes were proposed in this pull request?
This PR aims to fix `ENTRYPOINT` to point `/opt/spark-operator/operator/docker-entrypoint.sh`
### Why are the changes needed?
**BEFORE**
```
$ docker run -it spark-kubernetes-operator:0.1.0
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/docker-entrypoint.sh": stat /docker-entrypoint.sh: no such file or directory: unknown.
```
**AFTER**
```
$ docker run -it spark-kubernetes-operator:0.1.0
Usage: docker-entrypoint.sh (operator)
Or docker-entrypoint.sh help
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review because we don't have a CI test coverage for this.
```
$ docker build --build-arg APP_VERSION=0.1.0 -t spark-kubernetes-operator:0.1.0 -f build-tools/docker/Dockerfile .
$ docker run -it spark-kubernetes-operator:0.1.0
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #31 from dongjoon-hyun/SPARK-49129.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
build-tools/docker/Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-tools/docker/Dockerfile b/build-tools/docker/Dockerfile
index a2fbcdb..6e65337 100644
--- a/build-tools/docker/Dockerfile
+++ b/build-tools/docker/Dockerfile
@@ -42,5 +42,5 @@ RUN chown -R spark:spark $SPARK_OPERATOR_HOME && \
chown spark:spark docker-entrypoint.sh
USER spark
-ENTRYPOINT ["/docker-entrypoint.sh"]
+ENTRYPOINT ["/opt/spark-operator/operator/docker-entrypoint.sh"]
CMD ["help"]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org