[ 
https://issues.apache.org/jira/browse/BEAM-12939?focusedWorklogId=679954&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-679954
 ]

ASF GitHub Bot logged work on BEAM-12939:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Nov/21 21:28
            Start Date: 10/Nov/21 21:28
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on a change in pull request #15751:
URL: https://github.com/apache/beam/pull/15751#discussion_r746998817



##########
File path: playground/backend/containers/java/Dockerfile
##########
@@ -15,5 +15,41 @@
 #  See the License for the specific language governing permissions and
 # limitations under the License.
 ###############################################################################
+ARG BASE_IMAGE
+FROM golang:1.17-buster AS build
 
-#Dokerfile to set up the Beam Java SDK
\ No newline at end of file
+# 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/[email protected] &&\
+    go install google.golang.org/grpc/cmd/[email protected]
+
+# Prepare Application
+COPY src /go/src/playground/backend
+#COPY playground /go/src/playground/playground
+WORKDIR /go/src/playground/backend
+RUN ls
+# Build Application
+RUN go mod download &&\
+    go mod tidy &&\
+    cd cmd/server &&\
+    go build -o /go/bin/server_java_backend
+
+FROM $BASE_IMAGE
+ARG BEAM_VERSION=2.33.0
+#ENV BEAM_VERSION=${BEAM_VERSION_ARG}

Review comment:
       ```suggestion
   ```




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 679954)
    Time Spent: 8h 10m  (was: 8h)

> [Playground] Backend app - Docker container
> -------------------------------------------
>
>                 Key: BEAM-12939
>                 URL: https://issues.apache.org/jira/browse/BEAM-12939
>             Project: Beam
>          Issue Type: New Feature
>          Components: beam-playground
>            Reporter: Alex Kosolapov
>            Assignee: Sergey Kalinin
>            Priority: P3
>              Labels: beam-playground-devops, beam-playground-sprint-1, 
> beam-playground-sprint-2, beam-playground-sprint-3
>          Time Spent: 8h 10m
>  Remaining Estimate: 0h
>
> As a Playground maintainer, I want to have a Docker container with the 
> Playground backend application for automating deployments and updates via 
> CI/CD
> Acceptance criteria:
>  # Dockerfile is prepared
>  # Dockerfile is used for built and run the application



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to