Using .NET 7 on Fedora Linux
Create a new .NET 7 project in the C# language:
dotnet new console -o HelloWorldConsole
Run a container
podman run -it -p 8080:8080 hello-container
podman run node ls
Run container and keep console open inside container (Apply :Z flag to label correctly for SELinux)
podman run -ti --rm -v $(pwd):/app:Z node bash
podman run -ti -v $(pwd):/app:Z node bash
Run node inside container
➜ src git:(dock) ✗ podman run -ti -v $(pwd):/app:Z node bash
root@6f2ce81bdff7:/# cd app/
root@6f2ce81bdff7:/app# ls
helloWorld.js
root@6f2ce81bdff7:/app# node helloWorld.js
Hello, world
root@6f2ce81bdff7:/app#
Run node inside container with library -w /app to define working directory where npm add will be executed
➜ podman run -ti -v $(pwd):/app:Z -w /app node npm add underscore
We use SemVer for versioning. For the versions available, see the tags on this repository.
Tankred
- Hat tip to anyone whose code was used
- Using .NET 7 on Fedora Linux
- Co-authoring git commit msg