-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
63 lines (43 loc) · 1.15 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Ansible Tower Dockerfie
FROM ubuntu:16.04
MAINTAINER Palanisamy
ENV TOWER_VERSION=3.2.2
ENV PACKAGENAME=ansible-tower-setup-${TOWER_VERSION}
# Install tower
RUN apt-get update && \
apt-get install -y \
curl \
iproute2 \
locales \
nano \
software-properties-common \
sudo
RUN apt-add-repository ppa:ansible/ansible &&\
mkdir -p /tmp/towersetup &&\
cd /tmp/towersetup &&\
curl -SOL https://releases.ansible.com/ansible-tower/setup/${PACKAGENAME}.tar.gz &&\
tar -xvf ${PACKAGENAME}.tar.gz
ADD inventory /tmp/towersetup/${PACKAGENAME}/
RUN locale-gen en_US
RUN locale-gen en_US.UTF-8
RUN cd /tmp/towersetup/${PACKAGENAME} \
&& ./setup.sh
# Our stuff
COPY start /
RUN chmod +x ./start
RUN mkdir -p /certs
# VOLUME ${PG_DATA}
VOLUME /certs
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
ARG HTTP_PROXY
ARG HTTPS_PROXY
ARG no_proxy
EXPOSE 443 80
CMD ["/start"]
RUN echo deleteme > /firstboot.flg
RUN apt install -y python-pip &&\
pip install ansible-tower-cli &&\
tower-cli config host localhost &&\
tower-cli config username admin &&\
tower-cli config password redhatcloud!
ENV TOWER_INIT_SCM_URL not_set