ashleyhood / php-lxd

A PHP library for interacting with the LXD REST API
MIT License
28 stars 15 forks source link

Development #7

Open Max-Github opened 8 years ago

Max-Github commented 8 years ago

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?

ashleyhood commented 8 years ago

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.

renky commented 7 years ago

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

ashleyhood commented 7 years ago

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.

renky commented 7 years ago

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...

ludmarkson commented 7 years ago

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.

ashleyhood commented 7 years ago

@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);
MichaelNino commented 4 years ago

Nice work!