forked from OneIdentity/safeguard-bash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (19 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This Dockerfile will create a new image based on the default safeguard-bash image
# that is found at the root of the safeguard-bash repository. The build.sh script will
# create an image called safeguard-eventdemo based on this Dockerfile. The build.sh
# script is also called from run.sh.
FROM oneidentity/safeguard-bash:latest
MAINTAINER [email protected]
# This image adds a new script (sample-event-listener.sh) from this directory. This script
# contains the real functionality for what this container will do in production. In this
# case, it simply run through the sample code in sample-event-login.sh using bootstrap
# admin.
COPY sample-event-listener.sh /scripts/
# When started using 'docker run', a container based on this image will start /bin/bash
# the same way that the safeguard-bash does.
ENTRYPOINT ["/bin/bash"]
# These arguments will be passed to safeguard-certdemo by default, but they can be
# overridden by arguments passed to 'docker run'. In this case the defaults will give
# us exactly what we need. The only reason to override would be to debug the container
# which you could do by passing '-c /bin/bash' to either docker run or run.sh.
CMD ["/scripts/sample-event-listener.sh"]