Skip to content

Commit ecfd388

Browse files
authored
Update INTEGRATED-DEMO.md with more details (#103)
* Update INTEGRATED-DEMO.md * Update INTEGRATED-DEMO.md
1 parent e7efc6e commit ecfd388

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/INTEGRATED-DEMO.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
This guidance will track the most up-to-date version of the package and tasks.
44
You should expect it to shrink noticeably over time!
55

6+
## Prerequisites
7+
8+
* Docker should be running
9+
* You should have an environment variable called GITHUB_USERNAME, with your github username in it
10+
* You should have an environment variable called GITHUB_TOKEN, with a github [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) that has `read:packages` permissions.
11+
12+
13+
## Usage
14+
615
```bash
716
# create a new project and move to its directory
817
dotnet new web -n my-awesome-container-app
@@ -20,12 +29,14 @@ dotnet nuget add source https://nuget.pkg.github.com/rainersigwald/index.json \
2029
--store-password-in-clear-text --configfile nuget.config
2130

2231
# add a reference to the package
23-
dotnet add package Microsoft.NET.Build.Containers --prerelease
32+
dotnet add package Microsoft.NET.Build.Containers
2433

2534
# publish your project
2635
dotnet publish --os linux --arch x64 -p:PublishProfile=DefaultContainer
2736

2837
# run your app
29-
docker run -it --rm my-awesome-container-app:latest
38+
docker run -it --rm -p 5010:80 my-awesome-container-app:latest
3039
```
3140

41+
Now you can go to `localhost:5010` and you should see the `Hello World!` text!
42+

0 commit comments

Comments
 (0)