forked from gsdenys/ephesoft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (46 loc) · 1.3 KB
/
Copy pathDockerfile
File metadata and controls
59 lines (46 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#gsdenys/ephesoft
FROM centos:6
MAINTAINER Denys G. Santos <gsdenys@gmail.com>
#Install dependencies
RUN yum install -y perl \
m4 \
unzip \
tar \
fipscheck \
freetype \
GConf2 \
gnome-vfs2 \
iptables \
wget
#Install autoconf
ADD assets/install-autoconf.sh /tmp/install-autoconf.sh
RUN /tmp/install-autoconf.sh
#Add ephesoft installer to the tmp directory
#ADD assets/Ephesoft_Community_Release_4.0.2.0.zip /tmp/ephesoft.zip
ADD http://www.ephesoft.com/Ephesoft_Product/Ephesoft_Community_4.0.2.0/Ephesoft_Community_Release_4.0.2.0.zip /tmp/ephesoft.zip
#Configure environment to ephesoft instalation
ADD assets/configure.sh /tmp/configure.sh
RUN /tmp/configure.sh
#Install ephesoft
WORKDIR /tmp/installer
RUN ./install-helper -silentinstall
#Run Post Install Script
WORKDIR /tmp/
ADD assets/post-install.sh /tmp/post-install.sh
RUN /tmp/post-install.sh
#add startup script
ADD assets/startup.sh /etc/init.d/startup.sh
#Add repository to MariaDB
ADD assets/MariaDB.repo /etc/yum.repos.d/MariaDB.repo
#Set environment variables
ENV DB_DATASOURCE=""
ENV DB_USER=""
ENV DB_PASSWD=""
#ENV DB_DIALECT=""
#ENV DB_DRIVER=""
ENV HOSTNAME=""
ENV PORT=""
#Set default workdir and expose 8080
WORKDIR /
#show ephesoft log on startup
CMD ["/etc/init.d/startup.sh"]