Skip to content

Commit

Permalink
Make use of services-base image (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov authored Jan 30, 2024
1 parent 58d1c5e commit 5a24012
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 111 deletions.
20 changes: 1 addition & 19 deletions blockscout-ens/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.74-buster as chef

WORKDIR /app
ARG TARGETARCH
RUN case ${TARGETARCH} in \
"arm64") TARGETARCH=aarch_64 ;; \
"amd64") TARGETARCH=x86_64 ;; \
esac \
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-$TARGETARCH.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN case ${TARGETARCH} in \
"amd64") TARGETARCH=x86_64 ;; \
esac \
&& wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-$TARGETARCH -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
13 changes: 1 addition & 12 deletions eth-bytecode-db/eth-bytecode-db-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
13 changes: 1 addition & 12 deletions sig-provider/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
13 changes: 1 addition & 12 deletions smart-contract-verifier/smart-contract-verifier-http/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
13 changes: 1 addition & 12 deletions stats/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
13 changes: 1 addition & 12 deletions user-ops-indexer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
WORKDIR /app

RUN apt-get update && apt-get install -y curl wget unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down
21 changes: 1 addition & 20 deletions visualizer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.74-buster as chef

WORKDIR /app
ARG TARGETARCH
RUN case ${TARGETARCH} in \
"arm64") TARGETARCH=aarch_64 ;; \
"amd64") TARGETARCH=x86_64 ;; \
esac \
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-$TARGETARCH.zip -O ./protoc.zip \
&& unzip protoc.zip \
&& mv ./include/* /usr/include/ \
&& mv ./bin/protoc /usr/bin/protoc

RUN case ${TARGETARCH} in \
"amd64") TARGETARCH=x86_64 ;; \
esac \
&& wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-$TARGETARCH -O ./protoc-gen-openapiv2 \
&& chmod +x protoc-gen-openapiv2 \
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2

FROM ghcr.io/blockscout/services-base:latest as chef

FROM chef AS plan
COPY . .
Expand Down

0 comments on commit 5a24012

Please sign in to comment.