-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 969 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
29
30
31
32
33
34
FROM openjdk:8
ARG EURECA_COMMON_BRANCH="develop"
ARG EURECA_AS_BRANCH="develop"
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget maven && \
apt-get install -y net-tools iputils-ping && \
rm -rf /var/lib/apt/lists/*
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Installing Common
RUN \
git clone https://github.com/computacao-ufcg/eureca-common.git && \
(cd eureca-common && git checkout $EURECA_COMMON_BRANCH && mvn install -Dmaven.test.skip=true)
# Downloading Authentication service
RUN \
git clone https://github.com/computacao-ufcg/eureca-as.git && \
(cd eureca-as && git checkout $EURECA_AS_BRANCH && mvn install -Dmaven.test.skip=true )
WORKDIR /root/eureca-as