forked from gooddata/gooddata-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jruby
22 lines (16 loc) · 1 KB
/
Dockerfile.jruby
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM jruby:9.1-alpine
MAINTAINER Tomas Korcak <korczis@gmail.com>
RUN apk add --no-cache curl make gcc git g++ python linux-headers binutils-gold gnupg libstdc++
# Switch to directory with sources
WORKDIR /src
ENV HOME=/src
ENV BUNDLE_PATH=$HOME/bundle
RUN gem update --system 3.0.6 \
&& gem install --install-dir $BUNDLE_PATH bundler -v 1.17.3 \
&& gem install --install-dir $BUNDLE_PATH rake -v 11.3.0
ADD . .
# Import GoodData certificate to Java. This is needed for connection to ADS.
# https://jira.intgdc.com/browse/TMA-300
RUN keytool -importcert -alias gooddata-2008 -file "./data/2008.crt" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt
RUN keytool -importcert -alias gooddata-int -file "./data/new_ca.cer" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt
RUN keytool -importcert -alias gooddata-prod -file "data/new_prodgdc_ca.crt" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt