Skip to content

Commit 3459a68

Browse files
aLekSermarkmandel
andauthored
Update Debian image version for SDK base (agones-dev#1511)
* Update Debian image version for SDK base, examples * Fix base image build * Increasing timeout of Cloud build to 2h * Add supported version of Java for Rest SDK test Co-authored-by: Mark Mandel <markmandel@google.com>
1 parent 5ec2fda commit 3459a68

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎build/build-sdk-images/restapi/Dockerfile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ RUN echo '§' && apt-get -qy update
3030
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
3131
apt-get install -qq -y nodejs
3232

33-
#RUN apt-get install -qq -y openjdk-8-jre
34-
RUN apt-get install -qq -y openjdk-8-jre > /dev/null
33+
RUN apt-get install -qq -y openjdk-11-jre > /dev/null
3534

3635
ENV PATH /usr/local/go/bin:/go/bin:$PATH
3736

38-
3937
# code generation scripts
4038
COPY *.sh /root/
4139
RUN chmod +x /root/*.sh

‎build/build-sdk-images/tool/base/Dockerfile‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Base images for SDKs Bump: 1
1818
#
1919

20-
FROM debian:stretch
20+
FROM debian:buster
2121

2222
RUN apt-get update && apt-get install -y \
2323
build-essential autoconf libtool git pkg-config curl \
@@ -27,19 +27,20 @@ RUN apt-get update && apt-get install -y \
2727
ARG GRPC_RELEASE_TAG
2828
# install protobuf first, then grpc
2929
RUN git clone -b $GRPC_RELEASE_TAG --depth=5 https://github.com/grpc/grpc /var/local/git/grpc && \
30-
cd /var/local/git/grpc && \
30+
cd /var/local/git/grpc && \
3131
git submodule update --init && \
3232
echo "--- installing protobuf ---" && \
3333
cd third_party/protobuf && \
3434
./autogen.sh && ./configure --enable-shared && \
35-
make -j$(nproc) && make install && make clean && ldconfig && \
35+
make -j4 && make install && make clean && ldconfig && \
36+
export CFLAGS=-Wno-error && export CXXFLAGS=-Wno-error && \
3637
echo "--- installing grpc ---" && \
3738
cd /var/local/git/grpc && \
38-
make -j$(nproc) && make install && make clean && ldconfig
39+
make -j4 && make install && make clean && ldconfig
3940

4041
WORKDIR /go/src/agones.dev/agones
4142

4243
# code generation scripts
4344
COPY entrypoint.sh /root/
4445
RUN chmod +x /root/entrypoint.sh
45-
ENTRYPOINT [ "/root/entrypoint.sh" ]
46+
ENTRYPOINT [ "/root/entrypoint.sh" ]

‎cloudbuild.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ substitutions:
313313
_RUST_SDK_BUILD_CACHE_KEY: rust-sdk-build
314314

315315
tags: ['ci']
316-
timeout: "1h"
316+
timeout: "2h"
317317
images: ['gcr.io/$PROJECT_ID/agones-controller', 'gcr.io/$PROJECT_ID/agones-sdk', 'gcr.io/$PROJECT_ID/agones-ping']
318318
logsBucket: "gs://agones-build-logs"
319319
options:

0 commit comments

Comments
 (0)