forked from AnsibleShipyard/ansible-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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-nodejs
# tag: latest
# name: ansibleshipyard/ansible-nodejs
# version: v0.1.5
# repo: https://github.com/AnsibleShipyard/ansible-nodejs
# how-to: docker build --force-rm -t ansibleshipyard/ansible-nodejs .
# requires: ansibleshipyard/ansible-base-ubuntu
# authors: github:@jasongiedymin,
# github:
# ------------------------------------------------------
FROM ansibleshipyard/ansible-base-ubuntu
MAINTAINER ansibleshipyard
# -----> Env
ENV WORKDIR /tmp/build/roles/ansible-nodejs
WORKDIR /tmp/build/roles/ansible-nodejs
# -----> Add assets
ADD ./ci $WORKDIR/ci
ADD ./meta $WORKDIR/meta
ADD ./tasks $WORKDIR/tasks
ADD ./vars $WORKDIR/vars
# -----> 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