Giter Site home page Giter Site logo

podman-dotnet-poc's Introduction

Podman .NET 6 Proof of Concept

This is a proof of concept of a .NET 6 Web API created with the dotnet new webapi command running in a podman container.

Installations

Docs

Run

  1. Start the Podman managed VM (Fedora CoreOS) with the following commands:

podman machine init podman machine start

  1. Run the following command to build an image of this app:

podman build -t podman-dotnet-poc .

Verify it was created successfully with the following command:

podman images

  1. Run the following command to create, but not start, a container with the image from the previous step:

podman create -p 8080:80 localhost/podman-dotnet-poc:latest

Verify it was created successfully with the following command:

podman ps --all

  1. Start the container with the following command:

podman start [container ID from previous command]

Verify the container is running with the following command:

podman ps

Note: You can combine steps 3 and 4 into one command:

podman run -d -p 8080:80 localhost/podman-dotnet-poc:latest

  1. Hit http://localhost:8080/

Without Podman

  1. Run dotnet run in this folder
  2. Make an HTTP Get request to https://localhost:[port in output]/time

podman-dotnet-poc's People

Contributors

michaeldfaber avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.