From b86d6506161bda833b1046c3d4258be43fe7e832 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Thu, 8 Oct 2015 16:43:44 -0400 Subject: [PATCH] replaced wercker yml with Dockerfile --- Dockerfile | 7 +++++++ wercker-box.yml | 21 --------------------- 2 files changed, 7 insertions(+), 21 deletions(-) create mode 100644 Dockerfile delete mode 100644 wercker-box.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eaed261 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:14.04 +MAINTAINER Ryan Kes +RUN curl -sL https://deb.nodesource.com/setup | sudo bash - +RUN apt-get update && apt-get upgrade -y +RUN apt-get install -y golang git wget nodejs npm git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev +RUN wget https://github.com/spf13/hugo/releases/download/v0.14/hugo_0.14_amd64.deb && dpkg -i hugo_0.14_amd64.deb && rm hugo_0.14_amd64.deb +RUN cd && git clone git://github.com/sstephenson/rbenv.git .rbenv && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile && echo 'eval "$(rbenv init -)"' >> ~/.bash_profile && git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build && echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile && . ~/.bash_profile && rbenv install -v 2.2.3 && rbenv global 2.2.3 && echo "gem: --no-document" > ~/.gemrc && gem install bundler diff --git a/wercker-box.yml b/wercker-box.yml deleted file mode 100644 index f82f689..0000000 --- a/wercker-box.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: golang-gulp-ruby -version: 0.0.1 -inherits: wercker/ubuntu12.04-webessentials@0.0.3 -type: main -platform: ubuntu@12.04 -description: wercker box to run hugo in combination with nodejs and ruby -keywords: - - golang - - nodejs - - ruby - - opensource -script: | - sudo apt-get update -y - sudo apt-get install golang build-essential -y - sudo curl -L https://get.rvm.io | bash -s stable - sudo source ~/.rvm/scripts/rvm - sudo rvm requirements - sudo rvm install ruby - sudo rvm use ruby --default - sudo curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - - sudo apt-get install --yes nodejs