-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 856 Bytes
/
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
FROM grainyu/archery-base:2.0
WORKDIR /opt/archery
ADD http://mirrors.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-7 /etc/pki/rpm-gpg/
COPY . /opt/archery/
RUN chmod a+x /opt/archery/src/docker/startup.sh
#archery
RUN cd /opt \
&& yum -y install nginx \
&& source /opt/venv4archery/bin/activate \
&& pip3 install -r /opt/archery/requirements.txt \
&& cp -f /opt/archery/src/docker/nginx.conf /etc/nginx/ \
&& cp -f /opt/archery/src/docker/supervisord.conf /etc/ \
&& mv /opt/sqladvisor /opt/archery/src/plugins/ \
&& mv /opt/soar /opt/archery/src/plugins/ \
&& mv /opt/my2sql /opt/archery/src/plugins/ \
&& yum clean all \
&& rm -rf /var/cache/yum/* \
&& rm -rf ~/.cache
# && chmod a+x /opt/archery/src/docker/startup.sh
#port
EXPOSE 9123
#start service
ENTRYPOINT bash /opt/archery/src/docker/startup.sh && bash