mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-29 22:44:20 +00:00
Compare commits
9 Commits
v1.3.0-rc.
...
release-1.
Author | SHA1 | Date | |
---|---|---|---|
2746222e87 | |||
7730c128bf | |||
ec8f757afe | |||
b6e5114715 | |||
23d2fd5042 | |||
2b73d52e0c | |||
47c34587dc | |||
76937b6350 | |||
2e03c1a197 |
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@ -1 +1 @@
|
||||
* @laremere @aLekSer @HazWard @calebatwd @syntxerror @sawagh @andrewgrundy
|
||||
* @laremere @aLekSer @HazWard @calebatwd @syntxerror @sawagh @andrewgrundy @scosgrave
|
||||
|
@ -18,7 +18,9 @@ WORKDIR /go/src/open-match.dev/open-match
|
||||
|
||||
ARG IMAGE_TITLE
|
||||
|
||||
RUN make "build/cmd/${IMAGE_TITLE}"
|
||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
--mount=type=cache,target=/root/.cache/go-build \
|
||||
make "build/cmd/${IMAGE_TITLE}"
|
||||
|
||||
FROM gcr.io/distroless/static:nonroot
|
||||
ARG IMAGE_TITLE
|
||||
|
16
Makefile
16
Makefile
@ -53,7 +53,7 @@
|
||||
# If you want information on how to edit this file checkout,
|
||||
# http://makefiletutorial.com/
|
||||
|
||||
BASE_VERSION = 0.0.0-dev
|
||||
BASE_VERSION = 1.4.0
|
||||
SHORT_SHA = $(shell git rev-parse --short=7 HEAD | tr -d [:punct:])
|
||||
BRANCH_NAME = $(shell git rev-parse --abbrev-ref HEAD | tr -d [:punct:])
|
||||
VERSION = $(BASE_VERSION)-$(SHORT_SHA)
|
||||
@ -62,7 +62,7 @@ YEAR_MONTH = $(shell date -u +'%Y%m')
|
||||
YEAR_MONTH_DAY = $(shell date -u +'%Y%m%d')
|
||||
MAJOR_MINOR_VERSION = $(shell echo $(BASE_VERSION) | cut -d '.' -f1).$(shell echo $(BASE_VERSION) | cut -d '.' -f2)
|
||||
PROTOC_VERSION = 3.10.1
|
||||
HELM_VERSION = 3.0.0
|
||||
HELM_VERSION = 3.8.0
|
||||
KUBECTL_VERSION = 1.16.2
|
||||
MINIKUBE_VERSION = latest
|
||||
GOLANGCI_VERSION = 1.18.0
|
||||
@ -228,10 +228,10 @@ build-images: $(foreach IMAGE,$(IMAGES),build-$(IMAGE)-image)
|
||||
# Include all-protos here so that all dependencies are guaranteed to be downloaded after the base image is created.
|
||||
# This is important so that the repository does not have any mutations while building individual images.
|
||||
build-base-build-image: docker $(ALL_PROTOS)
|
||||
docker build -f Dockerfile.base-build -t open-match-base-build -t $(REGISTRY)/openmatch-base-build:$(TAG) -t $(REGISTRY)/openmatch-base-build:$(ALTERNATE_TAG) .
|
||||
DOCKER_BUILDKIT=1 docker build -f Dockerfile.base-build -t open-match-base-build -t $(REGISTRY)/openmatch-base-build:$(TAG) -t $(REGISTRY)/openmatch-base-build:$(ALTERNATE_TAG) .
|
||||
|
||||
$(foreach CMD,$(CMDS),build-$(CMD)-image): build-%-image: docker build-base-build-image
|
||||
docker build \
|
||||
DOCKER_BUILDKIT=1 docker build \
|
||||
-f Dockerfile.cmd \
|
||||
$(IMAGE_BUILD_ARGS) \
|
||||
--build-arg=IMAGE_TITLE=$* \
|
||||
@ -240,10 +240,10 @@ $(foreach CMD,$(CMDS),build-$(CMD)-image): build-%-image: docker build-base-buil
|
||||
.
|
||||
|
||||
build-mmf-go-soloduel-image: docker build-base-build-image
|
||||
docker build -f examples/functions/golang/soloduel/Dockerfile -t $(REGISTRY)/openmatch-mmf-go-soloduel:$(TAG) -t $(REGISTRY)/openmatch-mmf-go-soloduel:$(ALTERNATE_TAG) .
|
||||
DOCKER_BUILDKIT=1 docker build -f examples/functions/golang/soloduel/Dockerfile -t $(REGISTRY)/openmatch-mmf-go-soloduel:$(TAG) -t $(REGISTRY)/openmatch-mmf-go-soloduel:$(ALTERNATE_TAG) .
|
||||
|
||||
build-mmf-go-backfill-image: docker build-base-build-image
|
||||
docker build -f examples/functions/golang/backfill/Dockerfile -t $(REGISTRY)/openmatch-mmf-go-backfill:$(TAG) -t $(REGISTRY)/openmatch-mmf-go-backfill:$(ALTERNATE_TAG) .
|
||||
DOCKER_BUILDKIT=1 docker build -f examples/functions/golang/backfill/Dockerfile -t $(REGISTRY)/openmatch-mmf-go-backfill:$(TAG) -t $(REGISTRY)/openmatch-mmf-go-backfill:$(ALTERNATE_TAG) .
|
||||
|
||||
#######################################
|
||||
## # Builds and pushes images to your container registry.
|
||||
@ -320,7 +320,7 @@ install-chart-prerequisite: build/toolchain/bin/kubectl$(EXE_EXTENSION) update-c
|
||||
$(KUBECTL) apply -f install/gke-metadata-server-workaround.yaml
|
||||
|
||||
# Used for Open Match development. Install om-configmap-override.yaml by default.
|
||||
HELM_UPGRADE_FLAGS = --cleanup-on-fail -i --no-hooks --debug --timeout=600s --namespace=$(OPEN_MATCH_KUBERNETES_NAMESPACE) --set global.gcpProjectId=$(GCP_PROJECT_ID) --set open-match-override.enabled=true --set redis.password=$(REDIS_DEV_PASSWORD) --set redis.usePassword=false --set redis.sentinel.usePassword=false
|
||||
HELM_UPGRADE_FLAGS = --cleanup-on-fail -i --no-hooks --debug --timeout=600s --namespace=$(OPEN_MATCH_KUBERNETES_NAMESPACE) --set global.gcpProjectId=$(GCP_PROJECT_ID) --set open-match-override.enabled=true --set redis.password=$(REDIS_DEV_PASSWORD) --set redis.auth.enabled=false --set redis.auth.sentinel=false
|
||||
# Used for generate static yamls. Install om-configmap-override.yaml as needed.
|
||||
HELM_TEMPLATE_FLAGS = --no-hooks --namespace $(OPEN_MATCH_KUBERNETES_NAMESPACE) --set usingHelmTemplate=true
|
||||
HELM_IMAGE_FLAGS = --set global.image.registry=$(REGISTRY) --set global.image.tag=$(TAG)
|
||||
@ -793,7 +793,7 @@ $(foreach CMD,$(CMDS),build/cmd/$(CMD)): build/cmd/%: build/cmd/%/BUILD_PHONY bu
|
||||
|
||||
build/cmd/%/BUILD_PHONY:
|
||||
mkdir -p $(BUILD_DIR)/cmd/$*
|
||||
CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -o $(BUILD_DIR)/cmd/$*/run open-match.dev/open-match/cmd/$*
|
||||
CGO_ENABLED=0 $(GO) build -v -installsuffix cgo -o $(BUILD_DIR)/cmd/$*/run open-match.dev/open-match/cmd/$*
|
||||
|
||||
# Default is that nothing needs to be copied into the direcotry
|
||||
build/cmd/%/COPY_PHONY:
|
||||
|
@ -164,7 +164,7 @@ artifacts:
|
||||
- install/yaml/06-open-match-override-configmap.yaml
|
||||
|
||||
substitutions:
|
||||
_OM_VERSION: "0.0.0-dev"
|
||||
_OM_VERSION: "1.4.0"
|
||||
_GCB_POST_SUBMIT: "0"
|
||||
_GCB_LATEST_VERSION: "undefined"
|
||||
_ARTIFACTS_BUCKET: "gs://open-match-build-artifacts/output/"
|
||||
|
1
go.sum
1
go.sum
@ -144,6 +144,7 @@ github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
|
@ -13,12 +13,12 @@
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: v2
|
||||
appVersion: "0.0.0-dev"
|
||||
version: 0.0.0-dev
|
||||
appVersion: "1.4.0"
|
||||
version: 1.4.0
|
||||
name: open-match
|
||||
dependencies:
|
||||
- name: redis
|
||||
version: 12.3.3
|
||||
version: 16.3.1
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
condition: open-match-core.redis.enabled
|
||||
- name: open-match-telemetry
|
||||
|
@ -31,7 +31,7 @@ spec:
|
||||
protocol: TCP
|
||||
port: {{ .Values.scaleFrontend.httpPort }}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "openmatchscale.scaleFrontend.hostName" . }}
|
||||
|
@ -102,14 +102,14 @@ resources:
|
||||
{{- end -}}
|
||||
|
||||
{{- define "openmatch.volumemounts.withredis" -}}
|
||||
{{- if .Values.redis.usePassword }}
|
||||
{{- if .Values.redis.auth.enabled }}
|
||||
- name: redis-password
|
||||
mountPath: {{ .Values.redis.secretMountPath }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "openmatch.volumes.withredis" -}}
|
||||
{{- if .Values.redis.usePassword }}
|
||||
{{- if .Values.redis.auth.enabled }}
|
||||
- name: redis-password
|
||||
secret:
|
||||
secretName: {{ include "call-nested" (list . "redis" "redis.fullname") }}
|
||||
|
@ -90,11 +90,11 @@ data:
|
||||
{{- if index .Values "redis" "sentinel" "enabled"}}
|
||||
sentinelPort: {{ .Values.redis.sentinel.port }}
|
||||
sentinelMaster: {{ .Values.redis.sentinel.masterSet }}
|
||||
sentinelHostname: {{ include "call-nested" (list . "redis" "redis.fullname") }}
|
||||
sentinelUsePassword: {{ .Values.redis.sentinel.usePassword }}
|
||||
sentinelHostname: {{ include "call-nested" (list . "redis" "common.names.fullname") }}
|
||||
sentinelUsePassword: {{ .Values.redis.auth.sentinel }}
|
||||
{{- else}}
|
||||
# Open Match's default Redis setups
|
||||
hostname: {{ include "call-nested" (list . "redis" "redis.fullname") }}-master.{{ .Release.Namespace }}.svc.cluster.local
|
||||
hostname: {{ include "call-nested" (list . "redis" "common.names.fullname") }}-master.{{ .Release.Namespace }}.svc.cluster.local
|
||||
port: {{ .Values.redis.redisPort }}
|
||||
user: {{ .Values.redis.user }}
|
||||
{{- end}}
|
||||
@ -104,7 +104,7 @@ data:
|
||||
port: {{ index .Values "open-match-core" "redis" "port" }}
|
||||
user: {{ index .Values "open-match-core" "redis" "user" }}
|
||||
{{- end }}
|
||||
usePassword: {{ .Values.redis.usePassword }}
|
||||
usePassword: {{ .Values.redis.auth.enabled }}
|
||||
passwordPath: {{ .Values.redis.secretMountPath }}/redis-password
|
||||
pool:
|
||||
maxIdle: {{ index .Values "open-match-core" "redis" "pool" "maxIdle" }}
|
||||
|
@ -107,8 +107,10 @@ configs:
|
||||
# https://github.com/helm/charts/tree/master/stable/redis
|
||||
redis:
|
||||
redisPort: 6379
|
||||
usePassword: false
|
||||
usePasswordFile: false
|
||||
auth:
|
||||
enabled: false
|
||||
sentinel: false
|
||||
usePasswordFiles: false
|
||||
secretMountPath: /opt/bitnami/redis/secrets
|
||||
configmap: |
|
||||
maxclients 100000
|
||||
@ -130,11 +132,11 @@ redis:
|
||||
enabled: false
|
||||
metrics:
|
||||
enabled: true
|
||||
cluster:
|
||||
slaveCount: 3
|
||||
serviceAccount:
|
||||
create: true
|
||||
slave:
|
||||
replica:
|
||||
disableCommands: [] # don't disable 'FLUSH-' commands
|
||||
replicaCount: 3
|
||||
persistence:
|
||||
enabled: false
|
||||
resources:
|
||||
|
@ -107,8 +107,10 @@ configs:
|
||||
# https://github.com/helm/charts/tree/master/stable/redis
|
||||
redis:
|
||||
redisPort: 6379
|
||||
usePassword: false
|
||||
usePasswordFile: false
|
||||
auth:
|
||||
enabled: false
|
||||
sentinel: false
|
||||
usePasswordFiles: false
|
||||
secretMountPath: /opt/bitnami/redis/secrets
|
||||
configmap: |
|
||||
maxclients 100000
|
||||
@ -117,17 +119,29 @@ redis:
|
||||
enabled: true
|
||||
masterSet: om-redis-master
|
||||
port: 26379
|
||||
usePassword: false
|
||||
resources:
|
||||
requests:
|
||||
memory: 300Mi
|
||||
cpu: 0.5
|
||||
master:
|
||||
disableCommands: [] # don't disable 'FLUSH-' commands
|
||||
resources:
|
||||
requests:
|
||||
memory: 300Mi
|
||||
cpu: 0.5
|
||||
replica:
|
||||
disableCommands: [] # don't disable 'FLUSH-' commands
|
||||
replicaCount: 3
|
||||
resources:
|
||||
requests:
|
||||
memory: 300Mi
|
||||
cpu: 0.5
|
||||
metrics:
|
||||
enabled: true
|
||||
cluster:
|
||||
slaveCount: 2
|
||||
resources:
|
||||
requests:
|
||||
memory: 300Mi
|
||||
cpu: 0.5
|
||||
serviceAccount:
|
||||
create: true
|
||||
sysctlImage:
|
||||
@ -257,7 +271,7 @@ global:
|
||||
# Use this field if you need to override the image registry and image tag for all services defined in this chart
|
||||
image:
|
||||
registry: gcr.io/open-match-public-images
|
||||
tag: 0.0.0-dev
|
||||
tag: 1.4.0
|
||||
pullPolicy: Always
|
||||
|
||||
# Expose the telemetry configurations to all subcharts because prometheus, for example,
|
||||
|
@ -12,7 +12,7 @@ If you're making changes to these files you must check in the .tfstate file as
|
||||
well as comment the reason why you're enabling a feature or making a change.
|
||||
|
||||
## GCP Service Account Setup
|
||||
To use the terraform templates when developing Open Match, you need to have the [credential of your service account](https://www.terraform.io/docs/providers/google/provider_reference.html#credentials-1) associated with your Open Match project.
|
||||
To use the terraform templates when developing Open Match, you need to have the [credential of your service account](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account) associated with your Open Match project.
|
||||
|
||||
```bash
|
||||
# Example: Generates the key file in GCP.
|
||||
|
@ -16,7 +16,7 @@ Lastly, these templates are meant for advanced users that are most likely
|
||||
already using Terraform.
|
||||
|
||||
## GCP Service Account Setup
|
||||
To use the terraform templates when developing Open Match, you need to have the [credential of your service account](https://www.terraform.io/docs/providers/google/provider_reference.html#credentials-1) associated with your Open Match project.
|
||||
To use the terraform templates when developing Open Match, you need to have the [credential of your service account](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account) associated with your Open Match project.
|
||||
|
||||
```bash
|
||||
# Example: Generates the key file in GCP.
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !race
|
||||
// +build !race
|
||||
|
||||
// Copyright 2019 Google LLC
|
||||
|
@ -255,6 +255,10 @@ func (rb *redisBackend) UpdateAssignments(ctx context.Context, req *pb.AssignTic
|
||||
}
|
||||
}
|
||||
|
||||
if len(idsI) == 0 {
|
||||
return nil, nil, status.Error(codes.InvalidArgument, "AssignmentGroupTicketIds is empty")
|
||||
}
|
||||
|
||||
ticketBytes, err := redis.ByteSlices(redisConn.Do("MGET", idsI...))
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -228,6 +228,23 @@ func TestUpdateAssignments(t *testing.T) {
|
||||
assignedTicketsIDs: []string{"1"},
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "empty ticketIds, error expected",
|
||||
request: &pb.AssignTicketsRequest{
|
||||
Assignments: []*pb.AssignmentGroup{
|
||||
{
|
||||
TicketIds: []string{},
|
||||
Assignment: &pb.Assignment{Connection: "2"},
|
||||
},
|
||||
},
|
||||
},
|
||||
expected: expected{
|
||||
resp: nil,
|
||||
errCode: codes.InvalidArgument,
|
||||
errMessage: "AssignmentGroupTicketIds is empty",
|
||||
assignedTicketsIDs: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "nil assignment, error expected",
|
||||
request: &pb.AssignTicketsRequest{
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build e2ecluster
|
||||
// +build e2ecluster
|
||||
|
||||
// Copyright 2019 Google LLC
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build e2ecluster
|
||||
// +build e2ecluster
|
||||
|
||||
// Copyright 2019 Google LLC
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !e2ecluster
|
||||
// +build !e2ecluster
|
||||
|
||||
// Copyright 2019 Google LLC
|
||||
|
@ -74,6 +74,27 @@ func TestAssignTickets(t *testing.T) {
|
||||
require.Equal(t, "b", get.Assignment.Connection)
|
||||
}
|
||||
|
||||
// TestAssignTicketsEmpty covers calls to assign when empty TicketIds
|
||||
func TestAssignTicketsEmpty(t *testing.T) {
|
||||
om := newOM(t)
|
||||
ctx := context.Background()
|
||||
|
||||
req := &pb.AssignTicketsRequest{
|
||||
Assignments: []*pb.AssignmentGroup{
|
||||
{
|
||||
TicketIds: []string{},
|
||||
Assignment: &pb.Assignment{Connection: "a"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
resp, err := om.Backend().AssignTickets(ctx, req)
|
||||
require.Nil(t, resp)
|
||||
require.Equal(t, codes.InvalidArgument.String(), status.Convert(err).Code().String())
|
||||
require.Equal(t, "AssignmentGroupTicketIds is empty", status.Convert(err).Message())
|
||||
|
||||
}
|
||||
|
||||
// TestAssignTicketsInvalidArgument covers various invalid calls to assign
|
||||
// tickets.
|
||||
func TestAssignTicketsInvalidArgument(t *testing.T) {
|
||||
|
12
third_party/swaggerui/config.json
vendored
12
third_party/swaggerui/config.json
vendored
@ -1,10 +1,10 @@
|
||||
{
|
||||
"urls": [
|
||||
{"name": "Frontend", "url": "https://open-match.dev/api/v0.0.0-dev/frontend.swagger.json"},
|
||||
{"name": "Backend", "url": "https://open-match.dev/api/v0.0.0-dev/backend.swagger.json"},
|
||||
{"name": "Query", "url": "https://open-match.dev/api/v0.0.0-dev/query.swagger.json"},
|
||||
{"name": "MatchFunction", "url": "https://open-match.dev/api/v0.0.0-dev/matchfunction.swagger.json"},
|
||||
{"name": "Synchronizer", "url": "https://open-match.dev/api/v0.0.0-dev/synchronizer.swagger.json"},
|
||||
{"name": "Evaluator", "url": "https://open-match.dev/api/v0.0.0-dev/evaluator.swagger.json"}
|
||||
{"name": "Frontend", "url": "https://open-match.dev/api/v1.4.0/frontend.swagger.json"},
|
||||
{"name": "Backend", "url": "https://open-match.dev/api/v1.4.0/backend.swagger.json"},
|
||||
{"name": "Query", "url": "https://open-match.dev/api/v1.4.0/query.swagger.json"},
|
||||
{"name": "MatchFunction", "url": "https://open-match.dev/api/v1.4.0/matchfunction.swagger.json"},
|
||||
{"name": "Synchronizer", "url": "https://open-match.dev/api/v1.4.0/synchronizer.swagger.json"},
|
||||
{"name": "Evaluator", "url": "https://open-match.dev/api/v1.4.0/evaluator.swagger.json"}
|
||||
]
|
||||
}
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o evaluator .
|
||||
|
||||
CMD ["/app/evaluator"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o evaluator .
|
||||
|
||||
CMD ["/app/evaluator"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o director .
|
||||
|
||||
CMD ["/app/director"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o frontend .
|
||||
|
||||
CMD ["/app/frontend"]
|
||||
|
@ -17,6 +17,8 @@ WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
|
||||
COPY . .
|
||||
RUN go mod edit -replace open-match.dev/open-match@v0.0.0-dev=open-match.dev/open-match@v1.4.0
|
||||
RUN go mod tidy
|
||||
RUN go build -o matchfunction .
|
||||
|
||||
CMD ["/app/matchfunction"]
|
||||
|
Reference in New Issue
Block a user