Skip to content

Commit

Permalink
Export JAVA_HOME as well
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
sighingnow committed Nov 1, 2022
1 parent 2753df2 commit 0d92652
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion k8s/graphscope.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&
curl git openjdk-8-jdk python3-pip sudo && \
apt clean && rm -fr /var/lib/apt/lists/*

ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64

# install hadoop
RUN cd /tmp && \
curl -LO https://archive.apache.org/dist/hadoop/core/hadoop-2.8.4/hadoop-2.8.4.tar.gz && \
Expand All @@ -35,7 +37,7 @@ ENV HADOOP_CONF_DIR $HADOOP_HOME/etc/hadoop
ENV HADOOP_COMMON_LIB_NATIVE_DIR $HADOOP_HOME/lib/native
ENV PATH $PATH:$HADOOP_HOME/bin

RUN bash -l -c 'echo export CLASSPATH="$($HADOOP_HOME/bin/hdfs classpath --glob)" >> /etc/bashrc'
RUN bash -l -c 'echo export CLASSPATH="$($HADOOP_HOME/bin/hdfs classpath --glob)" >> /etc/bash.bashrc'

# kubectl v1.19.2
RUN cd /tmp && export KUBE_VER=v1.19.2 && \
Expand All @@ -52,6 +54,9 @@ RUN useradd -m graphscope -u 1001 && \
USER graphscope
WORKDIR /home/graphscope

# ensure /etc/bash.bashrc is sourced
RUN bash -l -c 'echo source /etc/bash.bashrc >> /home/graphscope/.bashrc'

ENV PATH=${PATH}:/home/graphscope/.local/bin

COPY . /home/graphscope/gs
Expand Down

0 comments on commit 0d92652

Please sign in to comment.