Commit 5d35a41e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add more details on docker-entrypoint.sh in README.md

parent eeb683b1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ Just ADD the file [`docker-init.sh`][1] to your docker images like so:
ADD https://code.kodo.org.uk/kodo.org.uk/docker-init/raw/master/docker-init.sh <TARGET-PATH>
```


Entrypoint
----------

To use [`docker-entrypoint.sh`][2], `docker-init.sh` must go in `/lib/`:

```
@@ -21,5 +25,9 @@ ADD https://code.kodo.org.uk/kodo.org.uk/docker-init/raw/master/docker-entrypoin
ENTRYPOINT ["/bin/entrypoint"]
```

Any sourceable environment variable setup scripts go into `/etc/environment.d`
while other setup scripts go into `/etc/init.d`. They will be sourced & run
respectively before the container command is run.

[1]: https://code.kodo.org.uk/kodo.org.uk/docker-init/blob/master/doc/docker-init.md "docker-init.sh documentation"
[2]: https://code.kodo.org.uk/kodo.org.uk/docker-init/blob/master/doc/docker-entrypoint.md "docker-entrypoint documentation"