-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
executable file
·52 lines (41 loc) · 1.41 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
41
42
43
44
45
46
47
48
49
50
51
52
# This file was generated by ansible for albandri-laptop-work
#FROM debian:jessie
#FROM stackbrew/ubuntu:14.04
FROM jasongiedymin/ansible-base-ubuntu
# Volume can be accessed outside of container
VOLUME [/home/albandri]
MAINTAINER Alban Andrieu "https://github.com/AlbanAndrieu"
ENV DEBIAN_FRONTEND noninteractive
ENV DROPBOX_HOME /home/albandri
ENV WORKDIR /home/vagrant
# Working dir
WORKDIR /home/vagrant
# COPY
#COPY
RUN pwd
RUN ls -lrta
# ADD
ADD defaults $WORKDIR/ansible-dropbox/defaults
ADD meta $WORKDIR/ansible-dropbox/meta
ADD files $WORKDIR/ansible-dropbox/files
ADD handlers $WORKDIR/ansible-dropbox/handlers
ADD tasks $WORKDIR/ansible-dropbox/tasks
ADD templates $WORKDIR/ansible-dropbox/templates
#ADD vars $WORKDIR/ansible-dropbox/vars
# Here we continue to use add because
# there are a limited number of RUNs
# allowed.
ADD hosts /etc/ansible/hosts
ADD dropbox.yml $WORKDIR/ansible-dropbox/dropbox.yml
# Execute
RUN pwd
RUN ls -lrta
RUN ansible-playbook $WORKDIR/ansible-dropbox/dropbox.yml -c local -vvvv
#RUN apt-get update && \
# apt-get install -y openssh-server openjdk-7-jre-headless
#RUN useradd -m -s /bin/bash jenkins
#RUN echo jenkins:jenkins | chpasswd
#RUN mkdir -p /var/run/sshd
EXPOSE 21:9999
ENTRYPOINT ["/etc/init.d/dropbox", "start"]
CMD ["-g", "deamon off;"]