Created
August 30, 2017 13:33
-
-
Save ricardogpsf/8a6186f7aacc7b3791dd75029c0fd152 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| RUN apt-get -y update | |
| # skip installing gem documentation | |
| RUN mkdir -p /usr/local/etc \ | |
| && { \ | |
| echo 'install: --no-document'; \ | |
| echo 'update: --no-document'; \ | |
| } >> /usr/local/etc/gemrc | |
| # install curl and git | |
| RUN apt-get -y install curl libcurl3 libcurl3-dev git vim | |
| # install RVM | |
| RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
| RUN \curl -sSL https://get.rvm.io | bash | |
| ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| # install Ruby | |
| RUN /bin/bash -l -c "rvm requirements" | |
| RUN /bin/bash -l -c "rvm install 2.3.1" | |
| RUN /bin/bash -l -c "gem install bundler" | |
| WORKDIR /app | |
| COPY Gemfile oneview-sdk.gemspec /app/ | |
| RUN mkdir lib/ && mkdir lib/oneview-sdk/ | |
| COPY lib/oneview-sdk/version.rb /app/lib/oneview-sdk/ | |
| RUN /bin/bash -l -c "bundle install" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment