-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (16 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
16 lines (16 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:12.04
RUN apt-get update && apt-get install -y cron && apt-get install -y curl sudo git rsync build-essential wget ruby1.9.1 rubygems1.9.1 python-software-properties && curl -L https://www.opscode.com/chef/install.sh | bash && wget -O - https://github.com/travis-ci/travis-cookbooks/archive/master.tar.gz | tar -xz && mkdir -p /var/chef/cookbooks && cp -a travis-cookbooks-master/ci_environment/* /var/chef/cookbooks
RUN apt-get -y install socat
RUN adduser travis --disabled-password --gecos ""
RUN mkdir /home/travis/builds
ADD travis.json travis.json
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN chmod 777 /tmp
RUN echo 'travis ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chef-solo -o phantomjs -j travis.json
ADD start.sh start.sh
CMD sh start.sh
EXPOSE 4444