Fossil SCM

The chown -R bit added to the Dockerfile touches /jail/bin/fossil, which causes "docker build" to promote it back into a new layer, nearly doubling the container size. Doing a chown now only on two directories, restoring it to its sub-9M size.

wyoung 2022-08-14 19:53 trunk
Commit 00cc9c3eb1040c787a1982256be01282353243380c5fd062e559f5105ed9966d
1 file changed +1 -1
+1 -1
--- Dockerfile
+++ Dockerfile
@@ -34,11 +34,11 @@
3434
&& mknod -m 600 dev/urandom c 1 9 \
3535
&& echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \
3636
&& echo 'root:x:0:root' > /etc/group \
3737
&& addgroup -g ${UID} fossil \
3838
&& adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
39
- && chown -R fossil:fossil .
39
+ && chown fossil:fossil . museum
4040
4141
# Now we can run the stripped-down environment in a chroot jail, while
4242
# leaving open the option to debug it live via the Busybox shell.
4343
#
4444
# Implicit: We don't set USER here on purpose because we want Fossil to
4545
--- Dockerfile
+++ Dockerfile
@@ -34,11 +34,11 @@
34 && mknod -m 600 dev/urandom c 1 9 \
35 && echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \
36 && echo 'root:x:0:root' > /etc/group \
37 && addgroup -g ${UID} fossil \
38 && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
39 && chown -R fossil:fossil .
40
41 # Now we can run the stripped-down environment in a chroot jail, while
42 # leaving open the option to debug it live via the Busybox shell.
43 #
44 # Implicit: We don't set USER here on purpose because we want Fossil to
45
--- Dockerfile
+++ Dockerfile
@@ -34,11 +34,11 @@
34 && mknod -m 600 dev/urandom c 1 9 \
35 && echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \
36 && echo 'root:x:0:root' > /etc/group \
37 && addgroup -g ${UID} fossil \
38 && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \
39 && chown fossil:fossil . museum
40
41 # Now we can run the stripped-down environment in a chroot jail, while
42 # leaving open the option to debug it live via the Busybox shell.
43 #
44 # Implicit: We don't set USER here on purpose because we want Fossil to
45

Keyboard Shortcuts

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