Skip to content

Commit 4d79402

Browse files
committed
test: install maven dependencies for DB drivers
JIRA: GRIF-15
1 parent eb1994b commit 4d79402

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Dockerfile.jruby

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM jruby:9.4.1.0
22

33
MAINTAINER Tomas Korcak <[email protected]>
44

5-
RUN apt-get update && apt-get install -y curl make gcc git g++ python binutils-gold gnupg libstdc++6 cmake
5+
RUN apt-get update && apt-get install -y curl make gcc git g++ python binutils-gold gnupg libstdc++6 cmake maven
66

77
# Switch to directory with sources
88
WORKDIR /src
@@ -15,6 +15,18 @@ RUN gem update --system \
1515

1616
ADD . .
1717

18+
# build postgresql dependencies
19+
RUN mvn -f ci/postgresql/pom.xml clean install -P binary-packaging \
20+
&& cp -rf ci/postgresql/target/*.jar ./lib/gooddata/cloud_resources/postgresql/drivers/
21+
22+
# build mssql dependencies
23+
RUN mvn -f ci/mssql/pom.xml clean install -P binary-packaging \
24+
&& cp -rf ci/mssql/target/*.jar ./lib/gooddata/cloud_resources/mssql/drivers/
25+
26+
# build mysql dependencies
27+
RUN mvn -f ci/mysql/pom.xml clean install -P binary-packaging \
28+
&& cp -rf ci/mysql/target/*.jar ./lib/gooddata/cloud_resources/mysql/drivers/
29+
1830
# Import GoodData certificate to Java. This is needed for connection to ADS.
1931
# https://jira.intgdc.com/browse/TMA-300
2032
RUN keytool -importcert -alias gooddata-2008 -file "./data/2008.crt" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt

0 commit comments

Comments
 (0)