This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new aec8d063 [MINOR] Add `WORKDIR` (#823)
aec8d063 is described below
commit aec8d063754c45070c404e5744c0dbccbc09f088
Author: jokercurry <[email protected]>
AuthorDate: Mon Apr 17 16:22:14 2023 +0800
[MINOR] Add `WORKDIR` (#823)
### What changes were proposed in this pull request?
Add `WORKDIR` for DOCKERFILE.
### Why are the changes needed?
After entering the Docker, you can directly enter the home directory like
https://github.com/apache/spark/blob/1820b18eea940cf7c93e6cb0e1d1d294d2d20d28/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/Dockerfile#L55
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
No need.
---
deploy/kubernetes/docker/Dockerfile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/deploy/kubernetes/docker/Dockerfile
b/deploy/kubernetes/docker/Dockerfile
index df40dc88..8538136b 100644
--- a/deploy/kubernetes/docker/Dockerfile
+++ b/deploy/kubernetes/docker/Dockerfile
@@ -51,4 +51,6 @@ COPY hadoopconfig/ /data/rssadmin/hadoop/etc/hadoop
ENV RSS_VERSION ${RSS_VERSION}
ENV HADOOP_VERSION ${HADOOP_VERSION}
+
+WORKDIR /data/rssadmin
CMD ["bash", "/data/rssadmin/rss/bin/start.sh"]