Dockerize src-expose volume 1
Created by: ryan-blunden
A potential customer requested a Dockerized version of src-expose
.
The main thing to note about the Dockerfile, is that the container can be used in one of 2 ways:
- Using the standard
ENTRYPOINT
in which it is used in the same was as if it were a local binary - Using the
entry.sh
script which will passsrc-expose
a list of directories mounted in theWORKDIR
(/app/data
).
The use-case for number 2 is for simplicity, where all a consumer has to do is mount a parent folder at /app/data
and the entry.sh
script will take care of the rest.
I'll have a Kubernetes sample to go along with this shortly that will further illustrate the need for use case 2.