From 41540840cd0787bf3415adf0ccdfc4410f2ac0f7 Mon Sep 17 00:00:00 2001 From: mek Date: Thu, 13 Apr 2023 18:53:00 +0000 Subject: [PATCH] Adding fossilserver to fossil docker documentation. FossilOrigin-Name: cbdb09f65e15cc21983672ad887de329701c0926be82a3e8645ae50c38c2f425 --- fossil.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/fossil.md b/fossil.md index 5c42e80..bf717ed 100644 --- a/fossil.md +++ b/fossil.md @@ -146,4 +146,36 @@ tmp/passwd $ curl -LsSf -o /dev/null -w '%{http_code}\n' http://localhost:9999 200 -``` \ No newline at end of file +``` + +## Fossil Repo Server Image + +I also want to have a fossil repo server. I would have to change the run +portion. + +``` +<>= +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. + +``` +<>= +<> +<> +<> +@ +``` +