Code Monkey home page Code Monkey logo

eshoponsysbox's Introduction

eShopOnSysbox

Complete .Net 7 microservices architecture using a sysbox powered master container (with systemd functionality) to run all 22 eShop docker containers within docker securely.

prerequisites

Install and configure sysbox on your dev server/laptop

install with yay on arch distros (refer to sysbox documentation for others - https://github.com/nestybox/sysbox)

yay -S sysbox-ce-bin

enable and start sysbox

sudo systemctl enable --now sysbox

make sure this entry is in your docker deamon.json file (/etc/docker/daemon.json)

{
    "runtimes": {
        "sysbox-runc": {
            "path": "/usr/bin/sysbox-runc"
        }
    }
}

sudo systemctl daemon-reload

sudo systemctl restart docker

check that docker can see the sysbox runtime

docker info | grep -i runtime

Runtimes: sysbox-runc io.containerd.runc.v2 runc

docker image

docker pull karlpothast/eshoponsysbox:1.0.0

docker run

docker run --runtime=sysbox-runc -itd -p 5100:5100 -p 5104:5104 -p 5107:5107 --name eshop karlpothast/eshoponsysbox:1.0.0

docker exec

docker exec -it eshop bash

start containers script

cd $HOME ./start-all-containers.sh

image

You should be able to see the catalog, SPA app and health checker with the following URLs :

http://localhost:5100

http://localhost:5104

http://localhost:5107

image

references

.net7 eShopOnContainers microservices architecture https://github.com/dotnet-architecture/eShopOnContainers

Sysbox https://github.com/nestybox/sysbox

Ubuntu 22.04 with systemd : jrei/systemd-ubuntu *this worked easier than nestybox's ubuntu 22.04 iamge

to do

add docker-compose functionality to always get the latest version

eshoponsysbox's People

Contributors

karlpothast avatar

Watchers

 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.