-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (30 loc) · 1.01 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-sbt
# tag: latest
# name: ansibleshipyard/ansible-sbt
# version: v0.2.1
# repo: https://github.com/AnsibleShipyard/ansible-sbt
# how-to: docker build --force-rm -t ansibleshipyard/ansible-sbt .
# debug: docker run -t -i ansibleshipyard/ansible-sbt bash
# requires: ansibleshipyard/ansible-scala
# authors: github:@jasongiedymin,
# github:
# ------------------------------------------------------
FROM ansibleshipyard/ansible-scala
MAINTAINER ansibleshipyard
# -----> Env
ENV WORKDIR /tmp/build/roles/ansible-sbt
WORKDIR /tmp/build/roles/ansible-sbt
# -----> 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