You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
843 B
22 lines
843 B
ARG BASE_REPO=gradescope/autograder-base
|
|
ARG TAG=latest
|
|
|
|
FROM ${BASE_REPO}:${TAG}
|
|
|
|
|
|
RUN curl -fsSL https://debian.neo4j.com/neotechnology.gpg.key | gpg --dearmor -o /usr/share/keyrings/neo4j.gpg
|
|
RUN echo "deb [signed-by=/usr/share/keyrings/neo4j.gpg] https://debian.neo4j.com stable latest" > /etc/apt/sources.list.d/neo4j.list
|
|
|
|
RUN python3 -m pip install neo4j
|
|
RUN apt-get update
|
|
RUN apt install -y neo4j
|
|
RUN sed -i '1s/^/server.default_listen_address=0.0.0.0\n/' /etc/neo4j/neo4j.conf
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN service neo4j start
|
|
RUN neo4j-admin dbms set-initial-password 4Sfz541Lm --require-password-change=false
|
|
ADD source /autograder/source
|
|
|
|
RUN cp /autograder/source/run_autograder /autograder/run_autograder
|
|
RUN dos2unix /autograder/run_autograder
|
|
RUN chmod +x /autograder/run_autograder |