{"id":18639217,"url":"https://github.com/rjeczalik/quick-lxc-deploy","last_synced_at":"2025-11-04T16:30:35.982Z","repository":{"id":6075405,"uuid":"7301577","full_name":"rjeczalik/quick-lxc-deploy","owner":"rjeczalik","description":"Couple of bash scripts hacked together for effortless deploying/accessing debian-based containers.","archived":false,"fork":false,"pushed_at":"2013-05-21T22:12:54.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-27T09:41:16.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"echonest/pyechonest","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rjeczalik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-24T03:18:14.000Z","updated_at":"2014-07-06T20:39:23.000Z","dependencies_parsed_at":"2022-09-12T09:41:05.245Z","dependency_job_id":null,"html_url":"https://github.com/rjeczalik/quick-lxc-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fquick-lxc-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fquick-lxc-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fquick-lxc-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fquick-lxc-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjeczalik","download_url":"https://codeload.github.com/rjeczalik/quick-lxc-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239436594,"owners_count":19638335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:46:02.632Z","updated_at":"2025-11-04T16:30:35.939Z","avatar_url":"https://github.com/rjeczalik.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"quick-lxc-deploy\n================\n\nCouple of bash scripts hacked together for effortless deploying/accessing debian-based containers.\n\n### Why?\n\nEducational purposes. For fully featured lxc manager you may want to try:\n\n* https://github.com/fgrehm/vagrant-lxc\n* https://github.com/lxctl/lxctl\n* http://libvirt.org/drvlxc.html\n\n### Usage\n\n```\nUsage: qlxc help   (prints this help message)\n       qlxc deploy \u003cdistro name\u003e amd64|i386 [\u003ccontainer name\u003e]\n       qlxc ssh    [\u003chostname or index\u003e]    [\u003ccommand\u003e]\n       qlxc start  [\u003chostname or index\u003e]\n       qlxc stop   [\u003chostname or index\u003e]\n       qlxc rm     [\u003chostname or index\u003e]\n```\n\n### Example usages:\n\nTo deploy Ubuntu Raring (x86_64) with default hostname (raring-amd64):\n\n`qlxc deploy raring amd64`\n\nTo echo hostname of first container:\n\n`qlxc ssh 0 \"echo \\$(hostname)\"`\n\n### Features\n\nqlxc takes care of:\n\n* fetching predefined set of packages and packing them into tarball in your CACHE_DIR directory\n* installing new container in DEPLOY_DIR directory\n* creating SSH key files in ~/.ssh/lxc_rsa for root and current user (for speed-dialing with qlxc ssh)\n* creating an account for current user on a target container with rbind-mounting user's home directory\n* starting/stoping/removing containers\n\n### Configuration file - ~/.qlxc.conf\n\nqlxc uses the following options:\n\n* PACKAGES - additional packages list to be included into container\n* CACHE_DIR - path to directory storing debootstrap's tarballs\n* DEPLOY_DIR - prefix path for container rootfs\n\nqlxc ssh\n======\n\nSpeed-dial-like access to a container.\n\n### Speed dialing\n\nTypical qlxc ssh output:\n\n```\n[rjeczalik@rjeczalik-ub64 rjeczalik]$ qlxc ssh\n\n  [0] lenny-amd64 (10.0.3.132)\n  [1] lenny-i386 (10.0.3.166)\n  [2] squeeze-amd64 (10.0.3.107)\n  [3] squeeze-i386 (10.0.3.190)\n\n```\n\nqlxc ssh connects to a container as current user - e.g. in order to login as root to squeeze-amd64 container call\n\n`sudo qlxc ssh 2`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjeczalik%2Fquick-lxc-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjeczalik%2Fquick-lxc-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjeczalik%2Fquick-lxc-deploy/lists"}