@@ -35,24 +35,24 @@ USER spark
3535ENV PYTHONPATH="${SPARK_HOME}/python/:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src.zip:$PYTHONPATH"
3636
3737# Copy and run setup.sh separately so that test sources can change, but the setup script run is still cached
38- WORKDIR /home/spark/regtests
39- COPY ./regtests/setup.sh /home/spark/regtests/setup.sh
40- COPY ./regtests/pyspark-setup.sh /home/spark/regtests/pyspark-setup.sh
41- COPY ./client/python /home/spark/regtests /client/python
42- COPY ./regtests/polaris-reg-test /home/spark/polaris
38+ WORKDIR /home/spark/polaris
39+ COPY ./regtests/setup.sh /home/spark/polaris/ regtests/setup.sh
40+ COPY ./regtests/pyspark-setup.sh /home/spark/polaris/ regtests/pyspark-setup.sh
41+ COPY ./client/python /home/spark/polaris /client/python
42+ COPY ./regtests/polaris-reg-test /home/spark/polaris/polaris
4343COPY ./regtests/requirements.txt /tmp/
4444
45- RUN python3 -m venv /home/spark/polaris-venv && \
46- . /home/spark/polaris-venv/bin/activate && \
45+ RUN python3 -m venv /home/spark/polaris/polaris -venv && \
46+ . /home/spark/polaris/polaris -venv/bin/activate && \
4747 pip install -r /tmp/requirements.txt && \
4848 deactivate \
49- ./setup.sh
49+ ./regtests/ setup.sh
5050
51- COPY --chown=spark ./regtests /home/spark/regtests
51+ COPY --chown=spark ./regtests /home/spark/polaris/ regtests
5252
5353# /home/spark/regtests might not be writable in all situations, see https://github.com/apache/polaris/pull/205
5454USER root
55- RUN chmod -R go+rwx /home/spark/regtests
55+ RUN chmod -R go+rwx /home/spark/polaris
5656USER spark
5757
58- ENTRYPOINT ["./run.sh" ]
58+ ENTRYPOINT ["./regtests/ run.sh" ]
0 commit comments