tankred / dotnetlab

dotnet-lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotnet lab

Using .NET 7 on Fedora Linux

Samples

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 

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Tankred

License

GPL v3 license file

Acknowledgments

About

dotnet-lab

License:GNU General Public License v3.0


Languages

Language:Dockerfile 49.3%Language:C# 32.1%Language:JavaScript 18.6%