mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 09:25:53 +03:00
[GH-ISSUE #6] Add Container Creating/Removing + Testing #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luthermonson on GitHub (Aug 4, 2021).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/6
Add endpoints to create and delete containers and add tests to create, start/stop and remove a container. maybe for this we use nginx base container and check for 200OK + welcome to nginx text. check out
docker run -d --name nginx -p 8081:80 --restart=always nginxand what it boots on localhost:8081 and just test for that@luthermonson commented on GitHub (Aug 5, 2021):
ok i figured this out a bit more and read some more documentation. the basics for the test that'll make this easy will be to boot the alpine container and ssh into it and do an ls or something. to do that we'll need to figure out how to do a
pveam downloadwhich will probably require us to figure out the termproxy apiim still trying to figure out the best approach to do this in go but it looks like you hit the termproxy api and get a ticket and use that to login to the proxy which tunnels you to the node or the container. you can termproxy to the node, download the container package, start the container, termproxy to the container and do the l
s