Skip to content

Commit

Permalink
Edit environment variables in Dockerfile (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
chester-leung authored Jun 17, 2021
1 parent c8fb669 commit e8aa381
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ RUN echo "source /opt/openenclave/share/openenclave/openenclaverc" >> ~/.bashrc
# Set environment variables
ENV OPAQUE_HOME="/mc2/opaque-sql"
ENV OPAQUE_DATA_DIR=${OPAQUE_HOME}/data/
ENV SPARK_SCALA_VERSION=2.12
ENV SYMMETRIC_KEY_PATH=${OPAQUE_HOME}/symmetric_key.key
ENV PRIVATE_KEY_PATH=${OPAQUE_HOME}/private_key.pem
ENV PRIVATE_KEY_PATH=${OPAQUE_HOME}/src/test/keys/mc2_test_key.pem
ENV MODE=SIMULATE
ENV OE_SDK_PATH=/opt/openenclave/

# Spark settings
ENV SPARK_SCALA_VERSION=2.12
ENV SPARK_HOME=/opt/spark
ENV PATH=$PATH:/opt/spark/bin:/opt/spark/sbin

# Build Opaque SQL
SHELL ["/bin/bash", "-c"]
RUN cd /mc2/opaque-sql && source /opt/openenclave/share/openenclave/openenclaverc && build/sbt package
Expand Down

0 comments on commit e8aa381

Please sign in to comment.