Skip to content

Can't build frontend service in matchmaker101/frontend tutorial #1171

@scosgrave

Description

@scosgrave

What happened:
I received the following error while following the matchmaker101 "Build your own Game Frontend" tutorial when I executed the docker build command in the "Build and Push" step:

❯ docker build -t scosgrave/mm101-tutorial-frontend frontend/
Sending build context to Docker daemon  52.74kB
Step 1/6 : FROM golang:alpine as go
alpine: Pulling from library/golang
aad63a933944: Pull complete
c732a2540651: Pull complete
7b2225181d6b: Pull complete
c8dae7ec6990: Pull complete
08684ee472f3: Pull complete
Digest: sha256:244a736db4a1d2611d257e7403c729663ce2eb08d4628868f9d9ef27354
Status: Downloaded newer image for golang:alpine
 ---> 760fdda71c8f
Step 2/6 : WORKDIR /app
 ---> Running in d626ff2b5ecc
Removing intermediate container d626ff2b5ecc
 ---> f5e457966455
Step 3/6 : ENV GO111MODULE=on
 ---> Running in 0b169b76bd25
Removing intermediate container 0b169b76bd25
 ---> 383a431fdc04
Step 4/6 : COPY . .
 ---> 8a51d70c7dd0
Step 5/6 : RUN go build -o frontend .
 ---> Running in f206fb482092
go: open-match.dev/open-match@v0.0.0-dev: parsing /open-match/go.mod: open no such file or directory
The command '/bin/sh -c go build -o frontend .' returned a non-zero code:

What you expected to happen:
I expected the docker build command to complete successfully and create a docker image.

How to reproduce it (as minimally and precisely as possible):

  1. Install open-match v0.9.0 in a kubernetes cluster using the installation steps documented here (standard Helm v3 installation steps)
  2. Follow the tutorial for customizing the frontend here
  3. You should see the reported error when executing the "Build and Push" step

Anything else we need to know?:

Output of kubectl version:

❯ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.9", GitCommit:"500f5aba80d71253cc01ac6a8622b8377f4a7ef9", GitTreeState:"clean", BuildDate:"2019-11-13T11:21:43Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):

❯ minikube version
minikube version: v1.8.2
commit: eb13446e786c9ef70cb0a9f85a633194e62396a1

Running on Windows 10

Open Match Release Version:

❯ helm3 list
NAME            NAMESPACE       REVISION        UPDATED                                   STATUS          CHART                   APP VERSION
my-om-release   open-match      1               2020-03-24 11:50:39.2988155 -0700 DST     deployed        open-match-0.9.0        0.9.0

Install Method(yaml/helm)::
Helm

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions