Fossil SCM
Switched to a split ENTRYPOINT/CMD scheme for launching the Fossil server in the container. The immediate need is so we lower-level ENTRYPOINTs provided by mix-in layers, but it's more correct generally. ENTRYPOINT says this is the hard-coded purpose of the container, and CMD gives the arguments to that command. The split is therefore between the mandatory parts and the parts the user might want to override without needing to write their own Dockerfile.
Commit
deb99e22e143fb91496ce16b26f91d36092b36b00e3a5045ab33633f82b55c1b
Parent
79ac06a5407ecfe…
1 file changed
+2
-3
+2
-3
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -86,11 +86,10 @@ | ||
| 86 | 86 | ## --------------------------------------------------------------------- |
| 87 | 87 | |
| 88 | 88 | ENV PATH "/bin" |
| 89 | 89 | EXPOSE 8080/tcp |
| 90 | 90 | USER fossil |
| 91 | +ENTRYPOINT [ "fossil", "server", "museum/repo.fossil" ] | |
| 91 | 92 | CMD [ \ |
| 92 | - "fossil", "server", \ | |
| 93 | 93 | "--create", \ |
| 94 | 94 | "--jsmode", "bundled", \ |
| 95 | - "--user", "admin", \ | |
| 96 | - "museum/repo.fossil" ] | |
| 95 | + "--user", "admin" ] | |
| 97 | 96 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -86,11 +86,10 @@ | |
| 86 | ## --------------------------------------------------------------------- |
| 87 | |
| 88 | ENV PATH "/bin" |
| 89 | EXPOSE 8080/tcp |
| 90 | USER fossil |
| 91 | CMD [ \ |
| 92 | "fossil", "server", \ |
| 93 | "--create", \ |
| 94 | "--jsmode", "bundled", \ |
| 95 | "--user", "admin", \ |
| 96 | "museum/repo.fossil" ] |
| 97 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -86,11 +86,10 @@ | |
| 86 | ## --------------------------------------------------------------------- |
| 87 | |
| 88 | ENV PATH "/bin" |
| 89 | EXPOSE 8080/tcp |
| 90 | USER fossil |
| 91 | ENTRYPOINT [ "fossil", "server", "museum/repo.fossil" ] |
| 92 | CMD [ \ |
| 93 | "--create", \ |
| 94 | "--jsmode", "bundled", \ |
| 95 | "--user", "admin" ] |
| 96 |