1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

First version of the Dockerfile, non-working

This commit is contained in:
Alexander Neumann 2015-05-14 15:21:11 +02:00
parent 396a69886c
commit 5e9b94cbc8

35
Dockerfile Normal file
View file

@ -0,0 +1,35 @@
# this dockerfile is inspired by
# https://registry.hub.docker.com/u/tomdesinto/docker-travis-run/dockerfile/
FROM ubuntu:precise
# install dependencies
RUN apt-get update
RUN apt-get install -y --no-install-recommends build-essential ruby1.9.1 ruby1.9.1-dev rubygems git libhighline-ruby1.9.1 libssl-dev
RUN update-alternatives --set ruby /usr/bin/ruby1.9.1
RUN update-alternatives --set gem /usr/bin/gem1.9.1
# install travis-cli
RUN gem install travis bundler coder activesupport --no-rdoc --no-ri
# install travis-build
RUN git clone https://github.com/travis-ci/travis-build /opt/travis-build
# install other dependencies
RUN git clone https://github.com/meatballhat/gimme /opt/gimme && ln -s /opt/gimme/gimme /usr/bin/gimme
# add and configure user
ENV HOME /home/travis
RUN useradd -m -d $HOME -s /bin/bash travis
# run everything below as user travis
USER travis
WORKDIR $HOME
RUN mkdir .travis
RUN ln -s /opt/travis-build .travis/travis-build
# RUN travis version
# ENTRYPOINT ["travis", "run", "--skip-version-check", "--skip-completion-check"]
# CMD ["-p"]