Code Monkey home page Code Monkey logo

Comments (3)

joostpvh avatar joostpvh commented on June 10, 2024 2

Hi @guillermomolina,

Sorry for the delay in my response. This is very interesting, and something we'd very much like to explore. I've simply not had the cycles to look at this and try it out, but would very much like to.

Are there any restrictions on your current implementation with regards to Solaris or Python versions?

Also it would be good to understand how you'd like to use this? I.e. what is the use case and what is critical to work well?

What would you think is a good next step?

Cheers,

Joost.

from oraclesolaris-contrib.

guillermomolina avatar guillermomolina commented on June 10, 2024

Hi @joostpvh

There are no restrictions regarding to Solaris, I do use oci branded zone, because I manage zones with runz. So you need a more or less updated Solaris 11(.4?).
But as runz itself seems to be a small wrapper over zonecfg/zoneadm, you may very well go and modify oci-solaris-python to use another "backend", maybe zonecfg/zoneadm directly or use rad.
Python version is not an issue, I am using python 3 so we are safe there.

The goal here is that Solaris goes "OCI" compliant. the project oci-solaris-python exists because runz is buggy and undocumented. I had to reverse engineer it (live debugging it with gdb) in order to make it work, So fixing would help a lot. What I want to do is something like this:

oci container run -dit --name my-apache-app -p 8080:80 -v "$PWD":/var/apache2/2.4/htdocs httpd:2.4

And get an apache running at port 8080

IPS has a big constraint in Solaris repo, all packages depends on core-os and core-os depends on many other packages. So the minimum install is very big for a container. A more granular dependency system would help on keeping Solaris oci images smaller even if you are using IPS to install software. I am using a trick here in order to have smaller containers, I create a local repo and take out the core-os dependency for the packages. With that I get containers (zones) of less than 50mb, still using IPS.

Zones are heavier than other container implementations even native zones. For example, the use of Solaris without SMF is a bit hacky. svcs are too hard coded into the system. It would be nice to work a little more with oci branded zones in that respect. In the docker world, most of the time there is only one service working, which is tied to the health of the container itself. The containerd daemon is the watch dog.

The next step is to add network and volume services to the containers.

Cheers,

Guillermo

from oraclesolaris-contrib.

jfasolack avatar jfasolack commented on June 10, 2024

Hi Guillermo,
thank you for sharing this - and also sorry for my late response.
I'm looking forward to try it out and explore the possibilities this offers.

I hope to give you some feedback soon.

Cheers,
Jรถrg

from oraclesolaris-contrib.

Related Issues (10)

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.