Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Oct 4, 2024
1 parent 5f99375 commit 7d401ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ RUN cd /tmp && \

RUN git clone --branch 3.6.0 https://github.com/CTFd/CTFd /opt/CTFd

RUN echo 'tmpfs /run tmpfs defaults,mode=755,shared 0 0' >> /etc/fstab

RUN ln -s /opt/pwn.college/etc/systemd/system/pwn.college.service /etc/systemd/system/pwn.college.service && \
ln -s /opt/pwn.college/etc/systemd/system/pwn.college.backup.service /etc/systemd/system/pwn.college.backup.service && \
ln -s /opt/pwn.college/etc/systemd/system/pwn.college.backup.timer /etc/systemd/system/pwn.college.backup.timer && \
Expand Down
2 changes: 1 addition & 1 deletion dojo_plugin/api/v1/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def start_container(docker_client, user, as_user, mounts, dojo_challenge, practi
"bind",
read_only=True,
propagation="shared",
)
),
]
+ [
docker.types.Mount(
Expand Down
1 change: 1 addition & 0 deletions dojofs/dojofs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ def read(self, path, size, offset, fh):
sys.exit(1)

mountpoint = sys.argv[1]
dojo_fs.__class__.__name__ = "dojofs"
FUSE(dojo_fs, mountpoint, foreground=True, allow_other=True)

0 comments on commit 7d401ac

Please sign in to comment.