Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Aug 6, 2024

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.

@dongjoon-hyun
Copy link
Member Author

cc @viirya and @jiangzho

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya !
Merged to main.

@jiangzho
Copy link
Contributor

jiangzho commented Aug 6, 2024

+1 - late LGTM

@dongjoon-hyun
Copy link
Member Author

Thank you, @jiangzho .

@dongjoon-hyun dongjoon-hyun deleted the SPARK-49129 branch August 6, 2024 22:44
dongjoon-hyun added a commit that referenced this pull request Aug 7, 2024
… run` test

### What changes were proposed in this pull request?

This PR aims to verify built images in `build-image` CI job via `docker run` test

### Why are the changes needed?

As we observed at #31 , the existing CI may build a corrupted image because we didn't verify it.
- #31

### Does this PR introduce _any_ user-facing change?

No, this is a test on our CI infra.

### How was this patch tested?

Pass the CIs. We can see the result of `docker run` like the following.
- https://github.com/apache/spark-kubernetes-operator/actions/runs/10274277967/job/28430624083?pr=32

![Screenshot 2024-08-06 at 14 38 11](https://github.com/user-attachments/assets/5eea4d44-335e-4733-b6b4-2fee3c139834)

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #32 from dongjoon-hyun/SPARK-45923.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Aug 7, 2024
… run` test

This PR aims to verify built images in `build-image` CI job via `docker run` test

As we observed at #31 , the existing CI may build a corrupted image because we didn't verify it.
- #31

No, this is a test on our CI infra.

Pass the CIs. We can see the result of `docker run` like the following.
- https://github.com/apache/spark-kubernetes-operator/actions/runs/10274277967/job/28430624083?pr=32

![Screenshot 2024-08-06 at 14 38 11](https://github.com/user-attachments/assets/5eea4d44-335e-4733-b6b4-2fee3c139834)

No.

Closes #32 from dongjoon-hyun/SPARK-45923.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
jiangzho pushed a commit to jiangzho/spark-kubernetes-operator that referenced this pull request Jul 17, 2025
…erator (apache#31)

* Allow customizing the namespace to deploy Spark operator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants