Fossil SCM

Added a /jail/log directory to the container so someone can pass --errorlog and such to the Fossil instance and have a place to put it. It also acts as a mountpoint for appending to a log out on the host.

wyoung 2022-09-04 22:20 trunk
Commit ed50ceee0db1ad8e089f89439ab4b1a726cec1b364cb0c3c10b48cc3052b2d78
1 file changed +2 -2
+2 -2
--- Dockerfile.in
+++ Dockerfile.in
@@ -35,23 +35,23 @@
3535
COPY --from=builder /tmp/fossil bin/
3636
COPY --from=builder /tmp/bbx/busybox /bin/
3737
RUN [ "/bin/busybox", "--install", "/bin" ]
3838
RUN set -x \
3939
&& mkdir -m 755 dev \
40
- && mkdir -m 700 museum \
4140
&& mknod -m 666 dev/null c 1 3 \
4241
&& mknod -m 444 dev/urandom c 1 9 \
42
+ && mkdir -m 700 log museum \
4343
&& echo 'root:x:0:0:SysAdmin:/:/bin/nologin' > /etc/passwd \
4444
&& echo 'root:x:0:root' > /etc/group \
4545
&& addgroup -g ${UID} fossil \
4646
&& adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
4747
&& echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /bin/sha1sum \
4848
&& echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /bin/sha3sum \
4949
&& echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > /bin/sqlite3 \
5050
&& ln -s /jail/bin/fossil /bin/f \
5151
&& chmod +x /bin/sha?sum /bin/sqlite3 \
52
- && chown fossil:fossil . museum
52
+ && chown fossil:fossil . log museum
5353
5454
# Now we can run the stripped-down environment in a chroot jail, while
5555
# leaving open the option to debug it live via the Busybox shell.
5656
5757
EXPOSE 8080/tcp
5858
--- Dockerfile.in
+++ Dockerfile.in
@@ -35,23 +35,23 @@
35 COPY --from=builder /tmp/fossil bin/
36 COPY --from=builder /tmp/bbx/busybox /bin/
37 RUN [ "/bin/busybox", "--install", "/bin" ]
38 RUN set -x \
39 && mkdir -m 755 dev \
40 && mkdir -m 700 museum \
41 && mknod -m 666 dev/null c 1 3 \
42 && mknod -m 444 dev/urandom c 1 9 \
 
43 && echo 'root:x:0:0:SysAdmin:/:/bin/nologin' > /etc/passwd \
44 && echo 'root:x:0:root' > /etc/group \
45 && addgroup -g ${UID} fossil \
46 && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
47 && echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /bin/sha1sum \
48 && echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /bin/sha3sum \
49 && echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > /bin/sqlite3 \
50 && ln -s /jail/bin/fossil /bin/f \
51 && chmod +x /bin/sha?sum /bin/sqlite3 \
52 && chown fossil:fossil . museum
53
54 # Now we can run the stripped-down environment in a chroot jail, while
55 # leaving open the option to debug it live via the Busybox shell.
56
57 EXPOSE 8080/tcp
58
--- Dockerfile.in
+++ Dockerfile.in
@@ -35,23 +35,23 @@
35 COPY --from=builder /tmp/fossil bin/
36 COPY --from=builder /tmp/bbx/busybox /bin/
37 RUN [ "/bin/busybox", "--install", "/bin" ]
38 RUN set -x \
39 && mkdir -m 755 dev \
 
40 && mknod -m 666 dev/null c 1 3 \
41 && mknod -m 444 dev/urandom c 1 9 \
42 && mkdir -m 700 log museum \
43 && echo 'root:x:0:0:SysAdmin:/:/bin/nologin' > /etc/passwd \
44 && echo 'root:x:0:root' > /etc/group \
45 && addgroup -g ${UID} fossil \
46 && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
47 && echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /bin/sha1sum \
48 && echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /bin/sha3sum \
49 && echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > /bin/sqlite3 \
50 && ln -s /jail/bin/fossil /bin/f \
51 && chmod +x /bin/sha?sum /bin/sqlite3 \
52 && chown fossil:fossil . log museum
53
54 # Now we can run the stripped-down environment in a chroot jail, while
55 # leaving open the option to debug it live via the Busybox shell.
56
57 EXPOSE 8080/tcp
58

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button