mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-08-07 14:42:26 +08:00
Dockerfile build (#727)
* Added Dockerfile run configuration and fixed manual test project to run appropriately * Finished updates for Docker build and management of project through docker commands. Any of the dotnet CLI commands accessible through 'builder' container and default run is manual test project * Added a docker-compose.yaml files to support commands: docker-compose run tests, docker-compose run benchmarks, docker-compose run manual-test
This commit is contained in:

committed by
Brian Delgado

parent
3c4808a1eb
commit
ac211886f1
24
docker-compose.yaml
Normal file
24
docker-compose.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
version: "3.4"
|
||||
services:
|
||||
|
||||
tests:
|
||||
build:
|
||||
context: .
|
||||
target: builder
|
||||
volumes:
|
||||
- type: bind
|
||||
source: .
|
||||
target: /results
|
||||
command: test --logger:trx -r /results
|
||||
|
||||
benchmarks:
|
||||
build:
|
||||
context: .
|
||||
target: builder
|
||||
args:
|
||||
build_configuration: Release
|
||||
command: run -c Release --project test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj 0 1 2 3 4
|
||||
|
||||
manual-test:
|
||||
build: .
|
||||
ports: [ "5000:80" ]
|
Reference in New Issue
Block a user