-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
36 lines (30 loc) · 1.02 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
#
# ------------------------------------------------------
# Dockerfile
# ------------------------------------------------------
# image: ansible-scala
# tag: latest
# name: ansibleshipyard/ansible-scala
# version: v0.2.1
# repo: https://github.com/AnsibleShipyard/ansible-scala
# how-to: docker build --force-rm -t ansibleshipyard/ansible-scala .
# debug: docker run -t -i ansibleshipyard/ansible-scala bash
# requires: ansibleshipyard/ansible-java
# authors: github:@jasongiedymin,
# github:
# ------------------------------------------------------
FROM ansibleshipyard/ansible-java
MAINTAINER ansibleshipyard
# -----> Env
ENV WORKDIR /tmp/build/roles/ansible-scala
WORKDIR /tmp/build/roles/ansible-scala
# -----> Add assets
ADD ./tasks $WORKDIR/tasks
ADD ./vars $WORKDIR/vars
ADD ./ci $WORKDIR/ci
# -----> Install Galaxy Dependencies
# -----> Execute
RUN ansible-playbook -i $WORKDIR/ci/inventory $WORKDIR/ci/playbook.yml -c local -vvvv
# -----> Cleanup
WORKDIR /
RUN rm -R /tmp/build