-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (34 loc) · 1.25 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
# ------------------------------------------------------
# Dockerfile
# ------------------------------------------------------
# image: ansible-ddg-hack
# tag: latest
# name: ansibleshipyard/ansible-ddg-hack
# version: 1.0.0
# repo: https://github.com/ansibleshipyard/ansible-ddg-hack
# how-to: docker build --force-rm -t ansibleshipyard/ansible-ddg-hack .
# run: docker run -t -i -u ddghacker $DOCKERNAME bash
# requires: ansible-base-ubuntu
# authors: [email protected]
# desc: Ansible playbook to install duck duck go's hack environment.
# Created via Ansible CI/Docker Playbook Generator
# ------------------------------------------------------
FROM ansibleshipyard/ansible-base-ubuntu
MAINTAINER ansibleshipyard
# -----> Env
ENV WORKDIR /tmp/build/roles/ansible-ddg-hack
WORKDIR /tmp/build/roles/ansible-ddg-hack
# -----> Add assets
ADD ./defaults $WORKDIR/defaults
ADD ./handlers $WORKDIR/handlers
ADD ./meta $WORKDIR/meta
ADD ./tasks $WORKDIR/tasks
ADD ./templates $WORKDIR/templates
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