php-lxd icon indicating copy to clipboard operation
php-lxd copied to clipboard

Development

Open Max-Github opened this issue 8 years ago • 7 comments

Hello,

I was wondering if there a roadmap for this project? or any planned milestones?

I want to add support for better handling of pushing and pulling files and folders, and execution of commands.

Do you have any preferences on how to run the project? Would you prefer I just work on my fork and add in pull requests?

Are there any established rules regarding dependencies and php version support?

Max-Github avatar Oct 21 '16 18:10 Max-Github

Sorry Max for the delay. For now, pull requests is the easiest.

I would like the dependencies to be kept to a minimum but I am open to discussing valid reasons for added dependencies.

The minimum version is PHP v5.5 for now.

Thanks for your input.

ashleyhood avatar Oct 25 '16 08:10 ashleyhood

Hi there is there still any work in progress? Will it be continued? regards

renky avatar May 24 '17 22:05 renky

At the moment this is working for our needs. If you have any features or have found a bug then it would be great if you could add an issue for it and I will try and get it done in my spare time.

Thanks for your enquire.

ashleyhood avatar May 25 '17 09:05 ashleyhood

Ok, great - just good to know that somebody is watching it :) Currently it works gread for my needs to, but I really found an issue, I will open a new topic...

renky avatar May 25 '17 10:05 renky

Hi Ashley, I have a question. How would i go about assigning a static ip to a container. I can manipulate containers with the classes reasonably well except for this one thing. Eagerly standing by.

ludmarkson avatar Sep 20 '17 16:09 ludmarkson

@ludmarkson the simplest way is to create a profile that configures the network to use macvlan.

The downside to macvlan is that the host cannot access the container.

<?php

$config = ["limits.memory" => "4GB"];
$devices = [ 
    "eth0" => [
        "nictype" => "macvlan",
        "parent" => "eth0",
        "type" => "nic"
    ],
];

$lxd->profiles->replace('lan', 'Set LAN IP address', $config, $devices);

ashleyhood avatar Sep 27 '17 21:09 ashleyhood

Nice work!

MichaelNino avatar Feb 02 '20 07:02 MichaelNino