Skip to content

Commit

Permalink
Create /dev/null in the container (#114)
Browse files Browse the repository at this point in the history
This is needed to run libinteractive problems.
  • Loading branch information
lhchavez authored Jan 24, 2023
1 parent 5fa4759 commit 32f89b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ COPY --from=builder /opt/nodejs/lib/node_modules/ /opt/nodejs/lib/node_modules/
RUN rm -rf /var/lib/omegajail
COPY --from=builder /var/lib/omegajail/ /var/lib/omegajail/
COPY --from=builder /usr/share/java/libinteractive.jar /usr/share/java/libinteractive.jar
RUN mkdir -p /etc/omegaup/runner /var/lib/omegaup
RUN chmod 777 /var/lib/omegaup
RUN mkdir -p /etc/omegaup/runner /var/lib/omegaup && \
chmod 777 /var/lib/omegaup && \
mkdir -p /var/lib/omegajail/root/dev && \
mknod --mode=666 /var/lib/omegajail/root/dev/null c 1 3
COPY bin/omegaup-runner /usr/bin/omegaup-runner
COPY config.json /etc/omegaup/runner/config.json

Expand Down

0 comments on commit 32f89b0

Please sign in to comment.