Let the docker-compose file build the server docker
This commit is contained in:
parent
d3dd1130a2
commit
a89e577aec
2 changed files with 8 additions and 5 deletions
|
@ -5,6 +5,9 @@ volumes:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
rove-server:
|
rove-server:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: cmd/rove-server/Dockerfile
|
||||||
image: rove-server:latest
|
image: rove-server:latest
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
|
@ -4,11 +4,8 @@ cd "$(dirname "$0")"
|
||||||
cd ..
|
cd ..
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Build the image
|
# Build and start rove-server
|
||||||
bash script/build.sh
|
docker-compose up --detach --build
|
||||||
|
|
||||||
# Build and start the service
|
|
||||||
docker-compose up --detach
|
|
||||||
|
|
||||||
# Run tests, including integration tests
|
# Run tests, including integration tests
|
||||||
go mod download
|
go mod download
|
||||||
|
@ -17,5 +14,8 @@ go test -v ./... -tags integration -cover -coverprofile=/tmp/c.out
|
||||||
# Take down the service
|
# Take down the service
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
|
# Check that the cmdline client builds
|
||||||
|
docker build -f "cmd/rove/Dockerfile" .
|
||||||
|
|
||||||
# Convert the coverage data to html
|
# Convert the coverage data to html
|
||||||
go tool cover -html=/tmp/c.out -o /tmp/coverage.html
|
go tool cover -html=/tmp/c.out -o /tmp/coverage.html
|
Loading…
Add table
Reference in a new issue