-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (23 loc) · 924 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
# Dockerfile to build deployer microservice using current repository
# Docker Hub address is jnprautomate/deployer
# Use same image as from CI process
FROM python:2.7.15-slim-jessie
# Generic Tags
MAINTAINER Thomas Grimonet <[email protected]>
LABEL com.company.key="Juniper Networks"
# Environment variables
ENV DEBIAN_FRONTEND=noninteractive
# Provisioning
ADD . /
WORKDIR /
# Baseline configuration
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y git vim sshpass openssh-client && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
ln -s /usr/local/bin/python /usr/bin/python
# Microservice specific configuration specific configuration
RUN pip install --upgrade pip && \
pip install -r requirements.txt && \
ansible-galaxy install -r requirements.ansible.yaml
ENTRYPOINT sh /microservice-deploy-junos.sh