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.
Commit
ed50ceee0db1ad8e089f89439ab4b1a726cec1b364cb0c3c10b48cc3052b2d78
Parent
8eeb95e127a837a…
1 file changed
+2
-2
+2
-2
| --- Dockerfile.in | ||
| +++ Dockerfile.in | ||
| @@ -35,23 +35,23 @@ | ||
| 35 | 35 | COPY --from=builder /tmp/fossil bin/ |
| 36 | 36 | COPY --from=builder /tmp/bbx/busybox /bin/ |
| 37 | 37 | RUN [ "/bin/busybox", "--install", "/bin" ] |
| 38 | 38 | RUN set -x \ |
| 39 | 39 | && mkdir -m 755 dev \ |
| 40 | - && mkdir -m 700 museum \ | |
| 41 | 40 | && mknod -m 666 dev/null c 1 3 \ |
| 42 | 41 | && mknod -m 444 dev/urandom c 1 9 \ |
| 42 | + && mkdir -m 700 log museum \ | |
| 43 | 43 | && echo 'root:x:0:0:SysAdmin:/:/bin/nologin' > /etc/passwd \ |
| 44 | 44 | && echo 'root:x:0:root' > /etc/group \ |
| 45 | 45 | && addgroup -g ${UID} fossil \ |
| 46 | 46 | && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \ |
| 47 | 47 | && echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /bin/sha1sum \ |
| 48 | 48 | && echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /bin/sha3sum \ |
| 49 | 49 | && echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > /bin/sqlite3 \ |
| 50 | 50 | && ln -s /jail/bin/fossil /bin/f \ |
| 51 | 51 | && chmod +x /bin/sha?sum /bin/sqlite3 \ |
| 52 | - && chown fossil:fossil . museum | |
| 52 | + && chown fossil:fossil . log museum | |
| 53 | 53 | |
| 54 | 54 | # Now we can run the stripped-down environment in a chroot jail, while |
| 55 | 55 | # leaving open the option to debug it live via the Busybox shell. |
| 56 | 56 | |
| 57 | 57 | EXPOSE 8080/tcp |
| 58 | 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 | && 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 |