aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 55e7d085df4d57c9047cabe3cfb63db859a6c668 (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
FROM library/ubuntu:latest

# Was this necessary? Removed for now. 
#    apt-get upgrade -y && \
RUN apt-get update && \
    apt-get install -y  software-properties-common && \
    add-apt-repository ppa:webupd8team/java -y && \
    apt-get update && \
    echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
    apt-get install -y oracle-java8-installer && \
    apt-get install -y python && \
    apt-get install -y python-pip && \
    apt-get install -y ssh jq curl && \
    apt-get clean

#for promoverride script
RUN pip install requests

#REMOVE THIS BEFORE SHIPPING
#RUN apt-get update && \
#    apt-get install -y vim

# Chnaged to suppor Maven Docker.  
#COPY target/prom.jar sampleApp/startPromDaemon.sh sampleApp/promoverride.py /app/
COPY maven/ sampleApp/startPromDaemon.sh sampleApp/promoverride.py /app/
WORKDIR /app

CMD ./startPromDaemon.sh -i $ID -c /opt/app/prom/ $PASSIVE -z