Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai committed Mar 29, 2024
1 parent b80b13c commit 9461ad6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ RUN pip install -r requirements.txt
RUN useradd -ms /bin/bash student
RUN chmod -R u-r /app


VOLUME /app/settings
VOLUME /app/workdir
VOLUME /app/output
VOLUME /app/webui/pages

COPY . .

RUN chmod +x /app/setup.sh && /app/setup.sh
RUN python3 scripts/setup.py
RUN chmod +x /app/post_setup.sh && /app/post_setup.sh

RUN chmod +x /app/run.sh
ENTRYPOINT ["/app/run.sh"]
4 changes: 3 additions & 1 deletion setup.sh → post_setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ check_addons_setup() {
done
}

apt-get update && apt-get install -y build-essential
chmod -R 777 workdir

apt-get update && apt-get install -y build-essential zip

check_addons_setup
echo "Add-ons setup complete"
5 changes: 2 additions & 3 deletions static/GRADESCOPE_TEMPLATE/source/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ else
fi

cd /autograder/source
chmod +x ./setup.sh
./setup.sh
python3 scripts/setup.py
chmod +x ./post_setup.sh
./post_setup.sh

0 comments on commit 9461ad6

Please sign in to comment.