forked from gooddata/gooddata-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.jruby
22 lines (15 loc) · 914 Bytes
/
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 <[email protected]>
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
RUN gem update --system \
&& gem install bundler
ENV BUNDLE_PATH=/bundle
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