forked from gooddata/gooddata-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (30 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
38
39
40
FROM harbor.intgdc.com/tools/gdc-java-8-jre:92b15b7
ARG GIT_COMMIT=unspecified
ARG BRICKS_VERSION=unspecified
LABEL image_name="GDC LCM Bricks"
LABEL maintainer="LCM <lcm@gooddata.com>"
LABEL git_repository_url="https://github.com/gooddata/gooddata-ruby/"
LABEL parent_image="harbor.intgdc.com/tools/gdc-java-8-jre:92b15b7"
LABEL git_commit=$GIT_COMMIT
LABEL bricks_version=$BRICKS_VERSION
# which is required by RVM
RUN yum install -y curl which \
&& yum clean all \
&& rm -rf /var/cache/yum
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
RUN curl -sSL https://get.rvm.io | bash -s stable
# Switch to directory with sources
WORKDIR /src
ENV HOME=/src
# login shell is required by rvm
RUN /bin/bash -l -c ". /usr/local/rvm/scripts/rvm && rvm install jruby-9.2.5.0 && gem update --system \
&& gem install bundler rake"
ENV GOODDATA_RUBY_COMMIT=$GIT_COMMIT
ADD ./bin ./bin
ADD ./lib ./lib
ADD ./SDK_VERSION .
ADD ./VERSION .
ADD ./Gemfile .
ADD ./gooddata.gemspec .
RUN /bin/bash -l -c ". /usr/local/rvm/scripts/rvm && bundle install"
CMD [ "./bin/help.sh" ]