blob: 69b88d890563a1d34cf98f741b8d82a994123eee (
plain)
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
|
FROM so/base-image:1.0
ARG http_proxy
ENV HTTP_PROXY=$http_proxy
ENV http_proxy=$HTTP_PROXY
ARG https_proxy
ENV HTTPS_PROXY=$https_proxy
ENV https_proxy=$HTTPS_PROXY
RUN mkdir /app && mkdir /app/config && mkdir /app/certificates && mkdir /app/logs
COPY maven/app.jar /app
COPY configs/logging/logback-spring.xml /app
COPY scripts/start-app.sh /app
COPY scripts/wait-for.sh /app
RUN chown -R so:so /app && chmod 700 /app/*.sh
## TODO for Casablanca: install this in the openstack-adapter container
## Install heatbridge
#RUN apt-get install -y python && apt-get install -y python-pip && echo 'PIP Installed, doing upgrade' && pip install --upgrade pip
#RUN mkdir /opt/mso/heatbridge
#COPY heatbridge/heatbridge-0.3.0.dev0-py2-none-any.whl /opt/mso/heatbridge
#RUN pip install /opt/mso/heatbridge/heatbridge-0.3.0.dev0-py2-none-any.whl
# Springboot configuration (required)
VOLUME /app/config
# Root certificates (optional)
VOLUME /app/ca-certificates
WORKDIR /app
CMD ["/app/start-app.sh"]
|