-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (41 loc) · 1.54 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
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
# Zato
FROM ubuntu:14.04
MAINTAINER Nikolay Beketov <[email protected]>
# Install helper programs used during Zato installation
RUN apt-get update && apt-get install -y \
apt-transport-https \
python-software-properties \
software-properties-common \
libcurl4-openssl-dev \
curl \
redis-server \
ssh \
supervisor
# Add the package signing key
RUN curl -s https://zato.io/repo/zato-0CBD7F72.pgp.asc | sudo apt-key add -
# Add Zato repo to your apt
# update sources and install Zato
RUN apt-add-repository https://zato.io/repo/stable/2.0/ubuntu
RUN apt-get update && apt-get install -y zato
# Setup supervisor
RUN mkdir -p /var/log/supervisor
# Setup sshd
RUN mkdir /var/run/sshd/
# Create work environment for Zato 2.0.7
# Switch to zato user and create Zato environment
USER zato
EXPOSE 22 6379 8183 17010 17011 11223
# Get additional config files and starter scripts
WORKDIR /opt/zato
RUN wget -P /opt/zato -i https://raw.githubusercontent.com/zatosource/zato-build/master/docker/quickstart-dh/filelist
RUN cd /opt/zato/ && rm create_quickstart.sh && \
wget -P /opt/zato https://raw.githubusercontent.com/jorikfon/zatoesb/master/create_quickstart.sh
RUN chmod 755 /opt/zato/zato_start_load_balancer \
/opt/zato/zato_start_server1 \
/opt/zato/zato_start_server2 \
/opt/zato/zato_start_web_admin \
/opt/zato/generate_password_zato_user.sh \
/opt/zato/generate_password_web_admin.sh \
/opt/zato/create_quickstart.sh \
/opt/zato/start.sh
USER root