Skip to content

Commit

Permalink
Disabled py's bytecode caching in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha Jungerman committed Dec 9, 2019
1 parent e392b68 commit 0bff9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dockerGrader/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && loca
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y python3.7
Expand Down
1 change: 1 addition & 0 deletions dockerGrader/grader-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ PY=/nobackup/cs301-pyenv/bin/python3


run_grader() {
export PYTHONDONTWRITEBYTECODE=1
export AWS_SHARED_CREDENTIALS_FILE="/nobackup/.aws/credentials"

echo "Running Auto-grader\n"
Expand Down

0 comments on commit 0bff9bd

Please sign in to comment.