-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (21 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use phusion/baseimage as base image. To make your builds reproducible, make
# sure you lock down to a specific version, not to `latest`!
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for
# a list of version numbers.
FROM phusion/baseimage:0.10.1
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# ...put your own build instructions here...
RUN apt-get update -qq && apt-get install wget unzip -qq
RUN (cd /tmp/ && wget -q https://download.manageengine.com/key-manager/97531/ManageEngine_KeyManagerPlus_64bit.bin && bash ManageEngine_KeyManagerPlus_64bit.bin -i silent)
RUN /opt/ManageEngine/Keymanager/bin/keymanager.sh install
RUN mkdir /etc/service/keymanager-plus
COPY sshkeymanager-service.sh /etc/service/keymanager-plus/run
RUN chmod +x etc/service/keymanager-plus/run
RUN mkdir /data
RUN ln -s /opt/ManageEngine/Keymanager/pgsql/data /data
VOLUME /data
EXPOSE 6565
HEALTHCHECK CMD curl --fail http://localhost:6565/ || exit 1
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*