Граф коммитов

797 Коммитов

Автор SHA1 Сообщение Дата
Justin Kotalik 7831c46b54
Codeowners (#214) 2020-03-26 11:42:50 -07:00
Justin Kotalik 4aa3470389
Two minor cleanup items (#211) 2020-03-26 11:40:24 -07:00
Amiee Lo 38828bd3b6
Merge pull request #202 from dotnet/jkotalik/makeButtonsPop
Make buttons pop a bit more
2020-03-26 10:51:14 -07:00
David Fowler ab48bfc3ba
Fixed capturing startup errors in containers and processes (#209)
- Capture both stderr and stdout
- Run docker logs in a loop to capture the output for restarting containers.

Fixes #199
2020-03-26 09:35:03 -07:00
David Fowler 3108735d0f
Fixed issues when JSON is logged (#210) 2020-03-26 09:34:51 -07:00
David Fowler 6a592c01e0
Remove reading of launch settings (#203)
* Remove reading of launch settings
- If bindings are specified, add an http and https binding with autodetect port to true.
- Prefer HTTP over HTTPS for ingress
2020-03-26 08:00:15 -07:00
Justin Kotalik c2fa919c1d Updated color 2020-03-25 22:48:38 -07:00
Justin Kotalik bdd3d65d9b info 2020-03-25 17:41:38 -07:00
Justin Kotalik dfbe552495 Different colors 2020-03-25 16:35:02 -07:00
Justin Kotalik 49ca126eb8 nit 2020-03-25 16:14:08 -07:00
Justin Kotalik 0b6c61ab1f make buttons pop a bit more 2020-03-25 16:11:54 -07:00
Justin Kotalik 2a1b22d4bd
Add voting sample (#201) 2020-03-25 15:44:53 -07:00
David Fowler 6d4910b1f5
Random cleanup (#198)
* Random cleanup
- Remove fully qualified namespaces
- Deleted some unused types
- Move types to infrastructure
- Move path normalization to ApplicationFactory layer
- Renamed IngressService to HttpProxyService
2020-03-25 11:35:21 -07:00
David Fowler 11ca89bf37
Print error if there are no runnable services in the application. (#193) 2020-03-25 11:35:06 -07:00
David Fowler 2484cb4804
Normalize directories to their absolute paths after reading (#195) 2020-03-24 23:25:46 -07:00
Ryan Nowak 8e809449f5 PR feedback 2020-03-24 23:00:58 -07:00
Ryan Nowak 97e2c6c0ba Use same directory for Dockerfile and app
Fixes: #189
Fixes: #153

This change rejiggers the docker build infrastructure to publish the project
and generate a Dockerfile in the same directory. This way they can't be on
separate drives!

Also added some focused tests for single-phase docker build.
2020-03-24 23:00:58 -07:00
David Fowler 944027b30c
Assume http only for projects, not containers (#191) 2020-03-24 22:10:33 -07:00
David Fowler e218821d13
Use msbuild project info for running (#188)
* Use msbuild project info for running
- This fixes several subtle bugs around how we resolve output paths adhoc and uses msbuild to find various outputs.

Fixes #184
2020-03-24 17:05:46 -07:00
David Fowler 486fbb11b9
Delay instead of sleep with cancellation (#186)
- This lets ctrl+c work faster
2020-03-24 12:58:10 -07:00
David Fowler c65a21f81c
Rename internalPort to containerPort (#182)
- Updated the docs
2020-03-23 21:51:54 -07:00
Ryan Nowak e75f226e2d Refactor of data model
Merged the data model we use for m8s features with the features
that come from rynowak/opulence. The `ApplicationBuilder` type (and related
types) now capture all of the details we use for everything.

There's a lot of just moving stuff around in this change - the goal
is to have a separate data model for:

- The config we read
- The representation we mutate
- The data model used by Tye.Hosting

So in this PR there's a lot of righthand/lefthand.
2020-03-23 20:20:46 -07:00
David Fowler 877b6044de
Added ingress support in local orchestrator (#172)
* Added ingress support in local orchestrator
- Supports host and port mapping to other services
- Added sample to show ingress usage
- Added a test
2020-03-23 11:19:31 -07:00
Justin Kotalik 1d4479587c
Fix NullRef in Tye run when not specifying and projects to debug. (#180) 2020-03-23 10:29:18 -07:00
Ryan Nowak adf05b230e Fix tests 2020-03-23 01:49:30 -07:00
Ryan Nowak a82b0f2093 Use MSBuild in process to grovel project information
This replaces the (dirty) technique of target-based injection with
hosting MSBuild in process.

This is a speedup of about 800ms per project for every project past the first
one. Given that Tye is for microservices, hopefully you have more than one
project.
2020-03-22 19:13:25 -07:00
Justin Kotalik c33e37bf74
Allow debugging specific projects (#163) 2020-03-22 13:51:55 -07:00
David Fowler 2da2d998d5
Clean up port injection (#165)
* Clean up port injection:
- We inject ASPNETCORE_URLS, HTTPS_PORT and a PORTS env variable for binding.

* Use internal ports 80 and 443 when auto assigning ports

* Set the PORT env variable during deployment as well.
2020-03-21 23:15:22 -07:00
Chad Jessup 96207c9af0 made usage of 'Dockerfile' consistent as well as 'multi/single-phase' 2020-03-21 22:57:46 -07:00
Chad Jessup 908183290e minor whitespace, typo, and structured logging, changes 2020-03-21 22:57:46 -07:00
David Fowler 571c9f0a34
Allow shutting down even if startup fails. (#164)
- Running a process starts a loop directly when starting up, instead of it should yield so that StartAsync can return.
2020-03-21 07:30:55 -07:00
David Fowler 759e02e12a
Use the internal port as binding port if available (#162) 2020-03-20 12:19:40 -07:00
David Fowler ebfae55f99
Renamed dockerImage to image (#160)
* Renamed dockerImage to image
- Added a new image field and marked dockerImage as deprecated. Will remove in a future version.
- Fixes #122

* Removed dockerImage support

* Added dockerImage back to the docs
2020-03-20 11:05:00 -07:00
Justin Kotalik 0d05542e3f
Create new json objects for service models (#154) 2020-03-20 10:51:48 -07:00
David Fowler fbf3ac7a63
Don't assume executables are relative to the context directory. (#161)
- This allows running executables that are on the path.
2020-03-20 10:36:57 -07:00
David Fowler 25dfa1443b
Add basic docs for volumes (#158) 2020-03-20 10:33:23 -07:00
David Fowler fb5243bcf2
Added support for volume mapping docker containers (#156)
- This also works when you run projects as containers.
2020-03-20 07:24:02 -07:00
David Fowler 8b81b3d470
Make user secrets work in docker scenarios. (#152)
* Make user secrets work in docker scenarios.
- Make build errors show up in the output

* Small nits
2020-03-19 16:11:57 -07:00
Chad Jessup 73ce2a08cd
renamed 'Metics' to 'Metrics' (#151) 2020-03-19 13:45:34 -07:00
Chad Jessup 0cff10ec76
States we're already in containers, when we're not (#142) 2020-03-19 12:58:00 -07:00
Justin Kotalik 76df4e3f2b
Add restore files (#149) 2020-03-19 11:05:35 -07:00
David Fowler 2c34fd9b88
Use dotnet publish to make static assets work (#148)
- This will prevent it from using relative paths for static assets
2020-03-19 10:17:48 -07:00
ericsampson feac07eb9c
Add link to K3s (#147) 2020-03-19 10:08:39 -07:00
David Fowler fe07b638d0
Add support for running local containers (#141)
* Add support for running local containers
- This support builds the application locally then volume mounts the application into the container when the --docker flag is specified. Added support for volume mounts and working directory to the DockerRunner.
- Add simple test for tye run --docker
2020-03-19 00:08:34 -07:00
Chad Jessup f7ae86711a
Making 'tye run' explicit at end of instructions (#140) 2020-03-18 22:48:10 -07:00
David Gardiner 28496837b4
Fix minor typos (#139) 2020-03-18 22:37:16 -07:00
Ryan Nowak cc6d88b3cf Update getting started to point at a real build. 2020-03-18 18:15:54 -07:00
Justin Kotalik f45b9444d4
Fix spelling error in issue template 2020-03-18 16:50:32 -07:00
Ryan Nowak 1c1d256672 use OpenTelemetry build from nuget.org 2020-03-18 16:43:08 -07:00
Ryan Nowak 9a72790965 Add docs for schema 2020-03-18 16:34:03 -07:00