Skip to content

Commit

Permalink
Fix Docker Images for new directories
Browse files Browse the repository at this point in the history
  • Loading branch information
berestovskyy committed Aug 8, 2020
1 parent 2e28599 commit 64028de
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion cpp_grpc_mt_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM gcc:10
RUN apt update && apt install -y protobuf-compiler protobuf-compiler-grpc libgrpc++-dev

WORKDIR /app
COPY cpp_grpc_mt /app
COPY cpp_grpc_mt_bench /app
COPY proto /app/proto

RUN mkdir gen && \
Expand Down
2 changes: 1 addition & 1 deletion cpp_grpc_st_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM gcc:10
RUN apt update && apt install -y protobuf-compiler protobuf-compiler-grpc libgrpc++-dev

WORKDIR /app
COPY cpp_grpc_st /app
COPY cpp_grpc_st_bench /app
COPY proto /app/proto

RUN mkdir gen && \
Expand Down
2 changes: 1 addition & 1 deletion crystal_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM crystallang/crystal:0.35.1

WORKDIR /app
COPY crystal_grpc /app
COPY crystal_grpc_bench /app
COPY proto /app/proto

RUN shards install
Expand Down
2 changes: 1 addition & 1 deletion csharp_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1

WORKDIR /app
COPY csharp_grpc /app
COPY csharp_grpc_bench /app
COPY proto /app/proto

RUN dotnet build -c Release Greeter.sln
Expand Down
4 changes: 2 additions & 2 deletions dart_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM google/dart

WORKDIR /app
COPY dart_grpc/pubspec.yaml /app/pubspec.yaml
COPY dart_grpc_bench/pubspec.yaml /app/pubspec.yaml
COPY proto /app/proto

RUN pub get
COPY dart_grpc /app
COPY dart_grpc_bench /app
RUN pub get --offline
RUN apt update && apt install -y protobuf-compiler
RUN pub global activate protoc_plugin
Expand Down
2 changes: 1 addition & 1 deletion dotnet_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0

WORKDIR /app
COPY dotnet_grpc /app
COPY dotnet_grpc_bench /app
COPY proto /proto

RUN dotnet build -c Release Greeter.sln
Expand Down
2 changes: 1 addition & 1 deletion elixir_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM elixir:slim

WORKDIR /app
COPY elixir_grpc /app
COPY elixir_grpc_bench /app
COPY proto /app/proto

RUN apt update && apt install -y git protobuf-compiler
Expand Down
2 changes: 1 addition & 1 deletion go_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.14

WORKDIR /app
COPY go_grpc /app
COPY go_grpc_bench /app
COPY proto /app/proto

RUN apt update && apt install -y protobuf-compiler
Expand Down
2 changes: 1 addition & 1 deletion java_aot_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM oracle/graalvm-ce:20.1.0-java11-ol8 as rel

WORKDIR /app
COPY java_micronaut /app
COPY java_micronaut_bench /app
COPY proto/helloworld/helloworld.proto /app/src/main/proto/helloworld.proto

RUN /app/gradlew assemble
Expand Down
2 changes: 1 addition & 1 deletion java_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:8-jdk

WORKDIR /app
COPY java_grpc /app
COPY java_grpc_bench /app
COPY proto/helloworld/helloworld.proto /app/src/main/proto/helloworld.proto

RUN /app/gradlew installDist
Expand Down
2 changes: 1 addition & 1 deletion java_micronaut_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:8-jdk

WORKDIR /app
COPY java_micronaut /app
COPY java_micronaut_bench /app
COPY proto/helloworld/helloworld.proto /app/src/main/proto/helloworld.proto

RUN /app/gradlew installDist
Expand Down
2 changes: 1 addition & 1 deletion kotlin_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:8-jdk

WORKDIR /app
COPY kotlin_grpc /app
COPY kotlin_grpc_bench /app
COPY proto/helloworld/helloworld.proto /app/src/main/proto/hello_world.proto

RUN /app/gradlew installDist
Expand Down
4 changes: 2 additions & 2 deletions lua_grpc_st_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /app
RUN pip install conan
RUN apt update && apt install -y cmake

COPY lua_grpc_st/conanfile.txt /app/conanfile.txt
COPY lua_grpc_st_bench/conanfile.txt /app/conanfile.txt
COPY proto/helloworld/helloworld.proto /app/helloworld.proto

RUN conan remote add remote_bintray_conan-community https://api.bintray.com/conan/conan-community/conan
Expand All @@ -17,7 +17,7 @@ RUN conan install lua-cpp/5.3.4@jinq0123/testing --build=missing
RUN conan install luapbintf/0.1@jinq0123/testing --build=missing
RUN conan install grpc-lua/0.1@jinq0123/testing --build=missing

COPY lua_grpc_st /app
COPY lua_grpc_st_bench /app

RUN cp $(find / -name 'lua-cpp' -executable -type f | head -n 1) .
RUN cp $(find / -name 'libluapbintf.so' -type f | head -n 1) /app/luapbintf.so
Expand Down
2 changes: 1 addition & 1 deletion node_grpc_st_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:stretch-slim

WORKDIR /app
COPY node_grpc_st /app
COPY node_grpc_st_bench /app
COPY proto /app/proto

RUN npm install
Expand Down
2 changes: 1 addition & 1 deletion node_grpcjs_st_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:stretch-slim

WORKDIR /app
COPY node_grpcjs_st /app
COPY node_grpcjs_st_bench /app
COPY proto /app/proto

RUN npm install
Expand Down
4 changes: 2 additions & 2 deletions php_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RUN tar -xvf protoc-gen-php-grpc-1.2.1-linux-amd64.tar.gz && cp protoc-gen-php-g
RUN tar -xvf rr-grpc-1.2.1-linux-amd64.tar.gz && cp rr-grpc-1.2.1-linux-amd64/rr-grpc /usr/bin/

COPY proto /app/proto
COPY php_grpc/composer.json /app/composer.json
COPY php_grpc_bench/composer.json /app/composer.json

RUN mkdir src && protoc --php_out=src --php-grpc_out=src --proto_path=/app/proto/helloworld helloworld.proto
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --quiet
RUN ./composer.phar install

COPY php_grpc /app
COPY php_grpc_bench /app

ENTRYPOINT [ "rr-grpc", "serve" ]
2 changes: 1 addition & 1 deletion python_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3-slim

WORKDIR /app
COPY python_grpc /app
COPY python_grpc_bench /app
COPY proto /app/proto

RUN python -m pip install grpcio grpcio-tools
Expand Down
2 changes: 1 addition & 1 deletion ruby_grpc_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ruby:2.7-buster

WORKDIR /app
COPY ruby_grpc /app
COPY ruby_grpc_bench /app
COPY proto /app/proto

RUN gem install grpc grpc-tools
Expand Down
2 changes: 1 addition & 1 deletion rust_thruster_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM rust:1.44.1-stretch

WORKDIR /app
COPY rust_thruster /app
COPY rust_thruster_bench /app
COPY proto /app/proto

ENV RUSTFLAGS "-C target-cpu=native"
Expand Down
2 changes: 1 addition & 1 deletion rust_tonic_mt_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM rust:1.44.1-stretch

WORKDIR /app
COPY rust_tonic_mt /app
COPY rust_tonic_mt_bench /app
COPY proto /app/proto

RUN rustup component add rustfmt --toolchain 1.44.1-x86_64-unknown-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion rust_tonic_st_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM rust:1.44.1-stretch

WORKDIR /app
COPY rust_tonic_st /app
COPY rust_tonic_st_bench /app
COPY proto /app/proto

RUN rustup component add rustfmt --toolchain 1.44.1-x86_64-unknown-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion scala_akka_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12

WORKDIR /app
COPY scala_akka /app
COPY scala_akka_bench /app
COPY proto/helloworld/helloworld.proto /app/src/main/protobuf/helloworld.proto

RUN sbt compile
Expand Down
2 changes: 1 addition & 1 deletion swift_grpc_st_bench/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM swift:5.2

WORKDIR /app
COPY swift_grpc_st /app
COPY swift_grpc_st_bench /app

RUN swift build -c release

Expand Down

0 comments on commit 64028de

Please sign in to comment.