Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docker/images/build-env-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,24 @@
&& git checkout ${EVEREST_CMAKE_VERSION} \
&& rm -r .git

# Install grpc and grpc-extended-cpp-plugin
ENV GRPC_VERSION=v1.71.0
ENV GRPC_EXTENDED_CPP_PLUGIN_VERSION=v0.1.0
RUN tmpdir=$(mktemp -d) \

Check warning on line 141 in docker/images/build-env-base/Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docker/images/build-env-base/Dockerfile#L141

Double quote to prevent globbing and word splitting.

Check warning on line 141 in docker/images/build-env-base/Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docker/images/build-env-base/Dockerfile#L141

Use WORKDIR to switch to a directory
&& cd $tmpdir \
&& git clone --depth 1 --recurse-submodules --shallow-submodules --branch ${GRPC_VERSION} https://github.com/grpc/grpc.git \
&& git clone --branch ${GRPC_EXTENDED_CPP_PLUGIN_VERSION} https://github.com/EVerest/grpc-extended-cpp-plugin.git \
&& cmake -B build -S grpc-extended-cpp-plugin -G Ninja -D gRPC_INSTALL=ON \
&& cmake --build build \
&& cmake --install build \
&& rm -rf $tmpdir
# renovate: datasource=pypi depName=grpcio
ENV GRPCIO_VERSION=1.71.0
# renovate: datasource=pypi depName=grpcio-tools
ENV GRPCIO_TOOLS_VERSION=1.71.0
RUN python3 -m pip install --break-system-packages \
grpcio==${GRPCIO_VERSION} \
grpcio-tools==${GRPCIO_TOOLS_VERSION}
COPY entrypoint.sh /entrypoint.sh
ARG TARGETARCH
COPY entrypoint_wrapper.sh /entrypoint_wrapper.sh
Expand Down
8 changes: 8 additions & 0 deletions docker/images/run-env-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ RUN python3 -m pip install --break-system-packages \
py4j==${PY4J_VERSION} \
aiofile==${AIOFILE_VERSION}

ENV GO_VERSION=1.24.2
ADD https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz /tmp/go.tar.gz
RUN if [ -d /usr/local/go ]; then \
echo "Go is already installed"; \
else \
tar -C /usr/local -xzf /tmp/go.tar.gz; \
fi
ENV PATH="/usr/local/go/bin:${PATH}"
COPY entrypoint.sh /entrypoint.sh
ARG TARGETARCH
COPY entrypoint_wrapper.sh /entrypoint_wrapper.sh
Expand Down