You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/10/27 16:42:24 UTC

[GitHub] [beam] snkalinin commented on a change in pull request #15751: [BEAM-12939][Playground] Backend app - Docker container

snkalinin commented on a change in pull request #15751:
URL: https://github.com/apache/beam/pull/15751#discussion_r737658290



##########
File path: playground/backend/containers/java/Dockerfile
##########
@@ -16,4 +16,36 @@
 # limitations under the License.
 ###############################################################################
 
-#Dokerfile to set up the Beam Java SDK
\ No newline at end of file
+FROM golang:1.17-buster AS build
+
+# Setup Go Environment
+ENV GOPATH /go
+ENV PATH $GOPATH/bin:$PATH
+RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
+RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1 &&\
+    go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
+
+# Prepare Application
+COPY src /go/src/playground/backend
+COPY playground /go/src/playground/playground
+WORKDIR /go/src/playground/backend
+
+# Build Application
+RUN go mod download &&\
+    go mod tidy &&\ 
+    cd cmd/server &&\
+    go build -o /go/bin/server_java_backend 
+
+FROM apache/beam_java8_sdk:2.33.0

Review comment:
       @tvalentyn I switched hardcoded version of Beam SDK image to build arg provided




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org