Fossil SCM

Updated the nojail patch so it applies cleanly atop all these recent Dockerfile changes. No functional change; merely tracks changes in the context parts of the diff.

wyoung 2023-03-24 07:43 trunk
Commit 2bdd5819e2f74137f56a34421d8f8caf274df27caaf6fc1124b3becb561240bf
--- containers/Dockerfile-nojail.patch
+++ containers/Dockerfile-nojail.patch
@@ -1,27 +1,27 @@
11
Index: Dockerfile
22
==================================================================
33
--- Dockerfile
44
+++ Dockerfile
5
-@@ -62,13 +62,13 @@
5
+@@ -57,13 +57,13 @@
66
## ---------------------------------------------------------------------
77
## STAGE 2: Pare that back to the bare essentials.
88
## ---------------------------------------------------------------------
99
10
- FROM scratch
10
+ FROM scratch AS os
1111
-WORKDIR /jail
1212
+WORKDIR /
1313
ARG UID=499
1414
-ENV PATH "/bin:/usr/bin:/jail/bin"
1515
+ENV PATH "/bin:/usr/bin"
1616
1717
### Lay BusyBox down as the first base layer. Coupled with the host's
18
- ### kernel, this is the "OS."
18
+ ### kernel, this is the "OS" used to RUN the subsequent setup script.
1919
COPY --from=builder /tmp/bbx/busybox /bin/
20
- COPY --from=builder /etc/os-release /etc/
21
-@@ -84,19 +84,17 @@
22
- && adduser -S -h `pwd` -g 'Fossil User' -G fossil -u ${UID} fossil \
20
+ RUN [ "/bin/busybox", "--install", "/bin" ]
21
+@@ -78,19 +78,17 @@
22
+ && echo "fossil:x:${UID}:fossil" >> /etc/group \
2323
&& install -d -m 700 -o fossil -g fossil log museum \
2424
&& install -d -m 755 -o fossil -g fossil dev \
2525
&& install -d -m 755 -o root -g root /usr/bin \
2626
&& install -d -m 400 -o root -g root /run \
2727
- && install -d -m 1777 -o root -g root /tmp \
@@ -39,11 +39,11 @@
3939
&& echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /usr/bin/sha1sum \
4040
&& echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /usr/bin/sha3sum \
4141
&& echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > \
4242
/usr/bin/sqlite3 \
4343
&& chmod +x /usr/bin/sha?sum /usr/bin/sqlite3
44
-@@ -107,10 +105,9 @@
44
+@@ -101,10 +99,9 @@
4545
## ---------------------------------------------------------------------
4646
4747
EXPOSE 8080/tcp
4848
CMD [ \
4949
"fossil", "server", \
5050
--- containers/Dockerfile-nojail.patch
+++ containers/Dockerfile-nojail.patch
@@ -1,27 +1,27 @@
1 Index: Dockerfile
2 ==================================================================
3 --- Dockerfile
4 +++ Dockerfile
5 @@ -62,13 +62,13 @@
6 ## ---------------------------------------------------------------------
7 ## STAGE 2: Pare that back to the bare essentials.
8 ## ---------------------------------------------------------------------
9
10 FROM scratch
11 -WORKDIR /jail
12 +WORKDIR /
13 ARG UID=499
14 -ENV PATH "/bin:/usr/bin:/jail/bin"
15 +ENV PATH "/bin:/usr/bin"
16
17 ### Lay BusyBox down as the first base layer. Coupled with the host's
18 ### kernel, this is the "OS."
19 COPY --from=builder /tmp/bbx/busybox /bin/
20 COPY --from=builder /etc/os-release /etc/
21 @@ -84,19 +84,17 @@
22 && adduser -S -h `pwd` -g 'Fossil User' -G fossil -u ${UID} fossil \
23 && install -d -m 700 -o fossil -g fossil log museum \
24 && install -d -m 755 -o fossil -g fossil dev \
25 && install -d -m 755 -o root -g root /usr/bin \
26 && install -d -m 400 -o root -g root /run \
27 - && install -d -m 1777 -o root -g root /tmp \
@@ -39,11 +39,11 @@
39 && echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /usr/bin/sha1sum \
40 && echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /usr/bin/sha3sum \
41 && echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > \
42 /usr/bin/sqlite3 \
43 && chmod +x /usr/bin/sha?sum /usr/bin/sqlite3
44 @@ -107,10 +105,9 @@
45 ## ---------------------------------------------------------------------
46
47 EXPOSE 8080/tcp
48 CMD [ \
49 "fossil", "server", \
50
--- containers/Dockerfile-nojail.patch
+++ containers/Dockerfile-nojail.patch
@@ -1,27 +1,27 @@
1 Index: Dockerfile
2 ==================================================================
3 --- Dockerfile
4 +++ Dockerfile
5 @@ -57,13 +57,13 @@
6 ## ---------------------------------------------------------------------
7 ## STAGE 2: Pare that back to the bare essentials.
8 ## ---------------------------------------------------------------------
9
10 FROM scratch AS os
11 -WORKDIR /jail
12 +WORKDIR /
13 ARG UID=499
14 -ENV PATH "/bin:/usr/bin:/jail/bin"
15 +ENV PATH "/bin:/usr/bin"
16
17 ### Lay BusyBox down as the first base layer. Coupled with the host's
18 ### kernel, this is the "OS" used to RUN the subsequent setup script.
19 COPY --from=builder /tmp/bbx/busybox /bin/
20 RUN [ "/bin/busybox", "--install", "/bin" ]
21 @@ -78,19 +78,17 @@
22 && echo "fossil:x:${UID}:fossil" >> /etc/group \
23 && install -d -m 700 -o fossil -g fossil log museum \
24 && install -d -m 755 -o fossil -g fossil dev \
25 && install -d -m 755 -o root -g root /usr/bin \
26 && install -d -m 400 -o root -g root /run \
27 - && install -d -m 1777 -o root -g root /tmp \
@@ -39,11 +39,11 @@
39 && echo -e '#!/bin/sh\nfossil sha1sum "$@"' > /usr/bin/sha1sum \
40 && echo -e '#!/bin/sh\nfossil sha3sum "$@"' > /usr/bin/sha3sum \
41 && echo -e '#!/bin/sh\nfossil sqlite3 --no-repository "$@"' > \
42 /usr/bin/sqlite3 \
43 && chmod +x /usr/bin/sha?sum /usr/bin/sqlite3
44 @@ -101,10 +99,9 @@
45 ## ---------------------------------------------------------------------
46
47 EXPOSE 8080/tcp
48 CMD [ \
49 "fossil", "server", \
50

Keyboard Shortcuts

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