Adding fossilserver to fossil docker documentation.

FossilOrigin-Name: cbdb09f65e15cc21983672ad887de329701c0926be82a3e8645ae50c38c2f425
This commit is contained in:
mek 2023-04-13 18:53:00 +00:00
parent 6d7074db9a
commit 41540840cd
1 changed files with 33 additions and 1 deletions

View File

@ -146,4 +146,36 @@ tmp/passwd
$ curl -LsSf -o /dev/null -w '%{http_code}\n' http://localhost:9999
200
```
```
## Fossil Repo Server Image
I also want to have a fossil repo server. I would have to change the run
portion.
```
<<fossil.reposerver>>=
FROM scratch AS run
COPY --from=os /tmp/group /tmp/passwd /etc/
COPY --from=os --chown=fossil:fossil /log /log/
COPY --from=os --chown=fossil:fossil /museum /museum/
COPY --from=os --chmod=1777 /tmp /tmp/
COPY --from=builder /tmp/fossil /bin/
ENV PATH "/bin"
EXPOSE 8080/tcp
USER fossil
ENTRYPOINT [ "fossil", "server", "/museum" ]
CMD [ "--repolist" ]
@
```
Now create the fossilserver dockerfile.
```
<<fossilserver.dockerfile>>=
<<fossil.builder>>
<<fossil.ossetup>>
<<fossil.reposerver>>
@
```