Skip to content

Commit

Permalink
add go dockerfile test and no modules (Azure#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamero authored and aamgayle committed Mar 23, 2023
1 parent 2d0380e commit e5e9977
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions template/dockerfiles/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ EXPOSE {{PORT}}
WORKDIR /go/src/app
COPY . .

ARG GO111MODULE=off
RUN go get -d -v ./...
RUN go build -v -o app ./...
RUN mv ./app /go/bin/
Expand Down
17 changes: 17 additions & 0 deletions test/integration/go/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# this file is generated using gen_integration.sh
deployType: "Helm"
languageType: "go"
deployVariables:
- name: "PORT"
value: "8080"
- name: "SERVICEPORT"
value: "8080"
- name: "APPNAME"
value: "testapp"
languageVariables:
- name: "VERSION"
value: "1.20"
- name: "BUILDERVERSION"
value: "null"
- name: "PORT"
value: "8080"
17 changes: 17 additions & 0 deletions test/integration/go/kustomize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# this file is generated using gen_integration.sh
deployType: "kustomize"
languageType: "go"
deployVariables:
- name: "PORT"
value: "8080"
- name: "SERVICEPORT"
value: "8080"
- name: "APPNAME"
value: "testapp"
languageVariables:
- name: "VERSION"
value: "1.20"
- name: "BUILDERVERSION"
value: "null"
- name: "PORT"
value: "8080"
17 changes: 17 additions & 0 deletions test/integration/go/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# this file is generated using gen_integration.sh
deployType: "manifests"
languageType: "go"
deployVariables:
- name: "PORT"
value: "8080"
- name: "SERVICEPORT"
value: "8080"
- name: "APPNAME"
value: "testapp"
languageVariables:
- name: "VERSION"
value: "1.20"
- name: "BUILDERVERSION"
value: "null"
- name: "PORT"
value: "8080"
7 changes: 7 additions & 0 deletions test/integration_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"serviceport": 80,
"repo": "gambtho/go_echo"
},
{
"language": "go",
"version": "1.20",
"port": "8080",
"serviceport": 8080,
"repo": "davidgamero/go-echo-no-mod"
},
{
"language": "python",
"version": "3",
Expand Down

0 comments on commit e5e9977

Please sign in to comment.