Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 573bb85

Browse files
David Tesarrguthriemsft
authored andcommitted
trips golang 1.11.1, alpine 3.8 docker images (#93)
* golang 1.11.1, alpine 3.8 images * Fix readme to run tests
1 parent 338361c commit 573bb85

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

apis/trips/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM golang:1.11.0 AS gobuild
1+
FROM golang:1.11.1 AS gobuild
22

33
WORKDIR /go/src/github.com/Azure-Samples/openhack-devops-team/apis/trips
44

55
COPY . .
66

77
ENV GO111MODULE=on
88

9-
RUN go mod vendor
9+
RUN go get
1010

1111
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
1212

13-
FROM alpine:3.7 AS gorun
13+
FROM alpine:3.8 AS gorun
1414

1515
ENV SQL_USER="YourUserName" \
1616
SQL_PASSWORD="changeme" \

apis/trips/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ go run main.go
1919
To run unit tests, execute:
2020

2121
```shell
22-
go test ./test
22+
go test ./tests
2323
```
2424

25-
To run integration tests, execute:
25+
To run all integration tests, execute:
2626

2727
```shell
28-
go test ./test/integration
28+
go test
2929
```
3030

3131
> Note: this requires an actual database connection, so the required ENV variables need to be present.

0 commit comments

Comments
 (0)