Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability for create containers #86

Closed
metajiji opened this issue Nov 22, 2022 · 4 comments
Closed

Ability for create containers #86

metajiji opened this issue Nov 22, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request released

Comments

@metajiji
Copy link

Is your feature request related to a problem? Please describe.
A container is MikroTik's implementation of Linux containers, allowing users to run containerized environments within RouterOS. For example run traefik would be very useful!

Describe the solution you'd like
Manage lifecycle for containers, env variables, versions, etc.

Additional context
Here oficial guide for create container
https://help.mikrotik.com/docs/display/ROS/Container

@metajiji metajiji added the enhancement New feature or request label Nov 22, 2022
gfenn-newbury added a commit that referenced this issue Feb 17, 2023
feat(#86): Add ability to create containers
@gfenn-newbury
Copy link
Collaborator

Hmm, the difficulty I'm having with this is the automated testing. There are a few things here:

  • Containers need a package installed. To install a package, you need to upload an npk file, which can't be done with the CLI.
  • Assuming you can get the package installed, you still need to enable the feature. This involves running /system/device-mode/update container=yes, which is fine, but then it requires forcibly shutting down RouterOS (simulate a power loss, for example).

I think we might have to wait until we can either commit a fair bit of time to figuring out the above two problems, or if/when Mikrotik make the feature more accessible via the command line/api.

@vaerh
Copy link
Collaborator

vaerh commented Feb 20, 2023

It seems to me that we can skip the moment of enabling containerization, since routers are initially preconfigured anyway.

@vaerh
Copy link
Collaborator

vaerh commented Feb 23, 2023

Yes, I experimented a bit. Automatic docker package installation is a big problem.

@vaerh
Copy link
Collaborator

vaerh commented Feb 14, 2024

#356
Released

@vaerh vaerh closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

3 participants