{"id":21496640,"url":"https://github.com/mlibrary/microsites-vagrant","last_synced_at":"2025-03-17T12:21:55.847Z","repository":{"id":19208944,"uuid":"82469524","full_name":"mlibrary/microsites-vagrant","owner":"mlibrary","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-19T18:00:33.000Z","size":35,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T22:11:57.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlibrary.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":"2017-02-19T15:39:10.000Z","updated_at":"2020-07-21T16:04:38.000Z","dependencies_parsed_at":"2022-09-12T13:50:51.988Z","dependency_job_id":null,"html_url":"https://github.com/mlibrary/microsites-vagrant","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/mlibrary%2Fmicrosites-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fmicrosites-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fmicrosites-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fmicrosites-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/microsites-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031028,"owners_count":20386534,"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-23T16:17:56.912Z","updated_at":"2025-03-17T12:21:55.824Z","avatar_url":"https://github.com/mlibrary.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"A vagrant configuration for running microsites locally. Filesystem syncing via unison is expected for vagrant. Experimental support for running under docker is available.\n\n# Vagrant\n\n## Prerequisites\n\n1. vagrant\n1. vagrant-triggers plugin\n1. ansible\n1. unison\n1. ruby\n\n## Installing a microsites vagrant host\n\n1. Add microsites.local to your `/etc/hosts` file as `10.255.21.10`\n1. `git clone https://github.com/mlibrary/microsites-vagrant`\n1. `cd microsites-vagrant`\n1. `vagrant up`\n1. Follow instructions in `vagrant up` output to get an Oauth access token for https://box.it.umich.edu.\n1. Create `.config` from `.config.EXAMPLE`.\n\n# Docker\n\n### Prerequisites\n\n1. docker\n1. ansible\n1. ansible-container\n1. ruby\n\n### Instructions\n\n1. Add microsites.local to your `/etc/hosts` file as `10.255.21.10`\n1. `git clone https://github.com/mlibrary/microsites-vagrant`\n1. `cd microsites-vagrant`\n1. `docker network create --subnet 10.255.21.0/24  microsites`\n1. `ansible-container build`\n1.\n\n        docker \\\n          run -itd \\\n         --net microsites \\\n         --ip 10.255.21.10 \\\n         --name microsites \\\n         -v \"$PWD/microsites:/microsites\" \\\n         microsites-vagrant-web\n\n7. `git clone https://github.com/mlibrary/microsites`\n8. `(cd rb \u0026\u0026 bundle install --path .bundle)`\n9. `bin/box setup`\n10. `bin/wp-config`\n11. Follow the instructions in `bin/box setup` output to get an Oauth access token for https://box.itd.umich.edu.\n12. Create `.config` from `.config.EXAMPLE`.\n\n## Starting with microsites' WordPress\n\n1. Install a fresh database, or load a database with `bin/db import`\n1. Visit at http://microsites.local/\n\n## Importing and exporting a database from box\n\nThe database import depends on the `.config` file.  Look at `.config.EXAMPLE`.\nUse `bin/db import [db-file]` and `bin/db export [db-file]` to import and export a file respectively.\n\nIf a file name is not provided. The default is `$USER.microsites.sql.gz`.\n\n## Updating wp core\nbin/wp core update --minor=4.9\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fmicrosites-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Fmicrosites-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fmicrosites-vagrant/lists"}