-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile.ansible
More file actions
25 lines (19 loc) · 862 Bytes
/
Dockerfile.ansible
File metadata and controls
25 lines (19 loc) · 862 Bytes
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
FROM ubuntu:24.04
ENV LANG=C.UTF-8
ENV PATH="/root/bin:/root/.local/bin:/root/google-cloud-sdk/bin:/root/appengine/python_appengine:/root/appengine/go_appengine:/root/appengine/java_appengine/bin:${PATH}"
RUN \
apt-get update && \
apt-get install -y --no-install-recommends pipx python3-setuptools apt-transport-https ca-certificates wget rsync unzip jq git && \
pipx install --include-deps ansible==11.10.0
RUN mkdir /root/bin
COPY tasks /google_cloud/tasks
COPY vars /google_cloud/vars
COPY site.yml site.yml
COPY deployment /google_cloud/deployment
RUN ansible-playbook -i localhost -c local site.yml
# For the Maven deploy tests
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends --no-install-suggests maven openjdk-11-jdk && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*