File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,8 @@ task updateDlsSubmodule(type: Exec) {
87
87
88
88
compileThrift {
89
89
dependsOn updateDlsSubmodule
90
- sourceItems " ${ projectDir} /src/main/idls/thrift/cadence.thrift" ," ${ projectDir} /src/main/idls/thrift/shared.thrift" ," ${ projectDir} /src/main/idls/thrift/shadower.thrift"
91
-
92
- nowarn true
90
+ verbose true
91
+ sourceItems " ./src/main/idls/thrift/cadence.thrift" ," ./src/main/idls/thrift/shared.thrift" ," ./src/main/idls/thrift/shadower.thrift"
93
92
}
94
93
95
94
compileJava {
Original file line number Diff line number Diff line change 1
- FROM adoptopenjdk/openjdk11:alpine
1
+ FROM adoptopenjdk/openjdk11@sha256:13475f4be7d6701a2ebd0516c4c929f2fa78ea773b4483bb580a36a04975e9f9
2
2
3
3
# Apache Thrift version
4
- ENV APACHE_THRIFT_VERSION=0.9.3
4
+ ENV APACHE_THRIFT_VERSION=0.13.0
5
5
6
6
# Install dependencies using apk
7
7
RUN apk update && apk add --virtual wget ca-certificates wget && apk add --virtual build-dependencies build-base gcc
@@ -10,13 +10,16 @@ RUN apk add git libstdc++
10
10
11
11
# Compile source
12
12
RUN set -ex ;\
13
- wget http://www-us.apache.org/dist/thrift/${APACHE_THRIFT_VERSION}/thrift-${APACHE_THRIFT_VERSION}.tar.gz ;\
14
- tar -xvf thrift-${APACHE_THRIFT_VERSION}.tar.gz ;\
15
- rm thrift-${APACHE_THRIFT_VERSION}.tar.gz ;\
16
- cd thrift-${APACHE_THRIFT_VERSION}/ ;\
17
- ./configure --enable-libs=no --enable-tests=no --enable-tutorial=no --with-cpp=no --with-c_glib=no --with-java=yes --with-ruby=no --with-erlang=no --with-go=no --with-nodejs=no --with-python=no ;\
18
- make -j2 && make install ;\
19
- cd .. && rm -rf thrift-${APACHE_THRIFT_VERSION}
13
+ wget https://downloads.apache.org/thrift/${APACHE_THRIFT_VERSION}/thrift-${APACHE_THRIFT_VERSION}.tar.gz && \
14
+ tar -xvf thrift-${APACHE_THRIFT_VERSION}.tar.gz && \
15
+ rm thrift-${APACHE_THRIFT_VERSION}.tar.gz && \
16
+ cd thrift-${APACHE_THRIFT_VERSION}/ && \
17
+ ./configure --enable-libs=no --enable-tests=no --enable-tutorial=no --with-cpp=no --with-c_glib=no --with-java=yes --with-ruby=no --with-erlang=no --with-go=no --with-nodejs=no --with-python=no && \
18
+ touch config.h && \
19
+ make -d && \
20
+ make install -d && \
21
+ cd .. && \
22
+ rm -rf thrift-${APACHE_THRIFT_VERSION}
20
23
21
24
# Cleanup packages and remove cache
22
25
RUN apk del build-dependencies wget && rm -rf /var/cache/apk/*
You can’t perform that action at this time.
0 commit comments