forked from vmware-archive/bosh-deployment-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 922 Bytes
/
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
FROM ubuntu:14.04
RUN apt-get install curl unzip cmake software-properties-common pkg-config -y
RUN apt-add-repository ppa:brightbox/ruby-ng && apt-get update
RUN apt-get install ruby2.1 ruby2.1-dev -y
RUN mkdir -p /tmp/rubygems
WORKDIR /tmp/rubygems
RUN curl -O http://production.cf.rubygems.org/rubygems/rubygems-2.4.6.zip && \
unzip rubygems-*.zip && \
cd rubygems-* && \
ruby setup.rb --no-document && \
rm -rf /tmp/rubygems
ADD gems /tmp/gems
RUN gem install /tmp/gems/*.gem --no-document && \
gem install bosh_cli -v 1.2915.0 --no-document && \
gem install bosh-workspace -v 0.9.2 --no-document
ADD . /tmp/resource-gem
RUN cd /tmp/resource-gem && \
gem build *.gemspec && gem install *.gem --no-document && \
mkdir -p /opt/resource && \
ln -s $(which bdr_check) /opt/resource/check && \
ln -s $(which bdr_in) /opt/resource/in && \
ln -s $(which bdr_out) /opt/resource/out