{"id":25606016,"url":"https://github.com/mozodev/ubuntu-provision","last_synced_at":"2026-02-22T02:34:29.653Z","repository":{"id":43347832,"uuid":"363012353","full_name":"mozodev/ubuntu-provision","owner":"mozodev","description":"우분투 프로비저닝 스크립트","archived":false,"fork":false,"pushed_at":"2025-02-20T09:06:41.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-10T03:07:10.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-30T03:10:51.000Z","updated_at":"2025-02-20T09:06:46.000Z","dependencies_parsed_at":"2023-11-23T15:30:59.977Z","dependency_job_id":"3bd06f55-0aa8-4066-8409-4a8b603fb5ce","html_url":"https://github.com/mozodev/ubuntu-provision","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mozodev/ubuntu-provision","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozodev%2Fubuntu-provision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozodev%2Fubuntu-provision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozodev%2Fubuntu-provision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozodev%2Fubuntu-provision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozodev","download_url":"https://codeload.github.com/mozodev/ubuntu-provision/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozodev%2Fubuntu-provision/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"online","status_checked_at":"2026-02-22T02:00:08.193Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-02-21T18:26:44.562Z","updated_at":"2026-02-22T02:34:29.610Z","avatar_url":"https://github.com/mozodev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ubuntu-provision\n\nProvisioning script template for ubuntu virtual environment using vagrant or multipass cloud init.\n\n## Included List\n\n* Language - Java, NodeJS, PHP, Ruby(using rbenv)\n* DB - MariaDB, MySQL, Postgres\n* APP - Code Server, Docker, Drupal, Hugo, Ruby on Rails, Rclone, Seatable, Wordpress, [mecab-ko](https://bitbucket.org/eunjeon/mecab-ko/src/master/README.md)\n\n## how to use with VAGRANT\n\n1. clone the repo\n2. modify your environment variables to use this repo's template as [VAGRANT_DEFAULT_TEMPLATE](https://www.vagrantup.com/docs/other/environmental-variables#vagrant_default_template).\n\n```\n## ~/.bashrc # or your file of choice.\nexport VAGRANT_DEFAULT_TEMPLATE=~/path/to/ubuntu-provision/vagrant/Vagrantfile.erb\n```\n\n```\n$ source ~/.bashrc\n```\n\n3. Create vagrant file with necessary application(s) you need as parameter(s) and boot virtual environment. \n```\n$ mkdir foo\n$ cd foo\n$ APP=hugo vagrant init\n```\n* Reference vagrant/Vagrantfile.erb for list of parameters to include as provision scripts.\n* If declaring multiple langs, db, apps, delimit them with comma(s).\n```\n$ APP=hugo,rclone,mecab-ko vagrant init\n```\n\n4. Further modify your Vagrantfile or .env file and then vagrant up.\n```\n$ cd path/to/vagrantfile\n$ vagrant up \n```\n\n## How to use with multipass and cloud init\n\n1. clone the repo\n2. copy cloud-init.yml.example to create cloud-init.yml configuration file\n3. edit cloud-init.yml to include variables or scripts\n4. launch multipass \n```\n$ multipass launch -n project_name --cloud-init path/to/cloud-init.yml\n```\n\n## troubleshooting\n\n### How to mount a qcow2 disk image on Ubuntu \n\nhttps://docs.j7k6.org/mount-qcow2-disk-image-linux/\n\n```shell\n$ sudo apt -y install qemu-utils\n# $ IMG=/var/snap/multipass/common/data/multipassd/vault/instances/php7/ubuntu-20.04-server-cloudimg-amd64.img\n$ IMG=/var/snap/multipass/common/data/multipassd/vault/instances/mariadb/ubuntu-20.04-server-cloudimg-amd64.img\n$ sudo modprobe nbd max_part=8\n$ sudo qemu-nbd --connect=/dev/nbd0 --read-only $IMG\n$ sudo fdisk -l /dev/nbd0\n$ sudo mount -o ro /dev/nbd0p1 /home/mozo/mnt\n$ mkdir ~/php7\n$ cd /home/mozo/mnt/home/ubuntu/projects/\n$ cp -r ./*  ~/php7/*\n\n$ sudo umount /home/mozo/mnt\n$ sudo qemu-nbd --disconnect /dev/nbd0\n```\n\n### lxc\n\n```shell\nlxc launch ubuntu:jammy rails --config=user.user-data=\"$(cat ./cloud-init/rails.yml)\"\n# profile\nlxc profile create drupal\nlxc profile set drupal user.user-data - \u003c cloud-init/drupal.yml\nlxc launch ubuntu:jammy drupal -p drupal\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozodev%2Fubuntu-provision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozodev%2Fubuntu-provision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozodev%2Fubuntu-provision/lists"}