{"id":21496525,"url":"https://github.com/mlibrary/blogs.lib","last_synced_at":"2025-07-15T19:32:44.095Z","repository":{"id":42123843,"uuid":"464567030","full_name":"mlibrary/blogs.lib","owner":"mlibrary","description":"extraction and upgrade of blogs site","archived":false,"fork":false,"pushed_at":"2024-11-06T18:20:26.000Z","size":75433,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-06T19:28:41.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-28T16:52:00.000Z","updated_at":"2024-11-06T18:20:56.000Z","dependencies_parsed_at":"2024-09-12T20:30:00.817Z","dependency_job_id":null,"html_url":"https://github.com/mlibrary/blogs.lib","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%2Fblogs.lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fblogs.lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fblogs.lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fblogs.lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/blogs.lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226064472,"owners_count":17568036,"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:16:54.647Z","updated_at":"2024-11-23T16:16:55.244Z","avatar_url":"https://github.com/mlibrary.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blogs at blogs.lib.umich.edu\n\nUniversity of Michigan Library Blogs site is a drupal application (https://www.drupal.org/).\n\n## Prerequisites\n\n1. If you haven't already, you will need to install Docker or Docker Desktop (https://docs.docker.com/get-docker/) and Git (https://github.com/git-guides/install-git)\n\n2. To start working on it in docker please contact eliotwsc@umich.edu to obtain appropriate credentials for files and database.\n\n3. IMPORTANT! If you run Docker with a new non-Intel Apple chip, you may have issues! If you do and find a solution please post it in issues.\n\n## 🚀 Quick start\n\n1.  **Clone `blogs.lib`.**\n\n```sh\ngit clone https://github.com/mlibrary/blogs.lib.git \u0026\u0026 cd blogs.lib\n```\n\n2.  **Set up s3 credentials.**\n\nAdd credentials for s3 (NOTE: credentials must be supplied.)\n\n```sh\ntar -zxf aws-stub \u0026\u0026 vi .aws/credentials\n```\n\nAdd the key and secret supplied and save the credentials file\n\n3.  **Get the data from an s3 bucket (NOTE: credentials must be supplied from prior step.)**\n\n```sh\nsudo docker run --rm -it -v $(pwd)/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli s3 cp s3://blogs-lib-umich-edu/ ./ --recursive\n```\n\n4.  **Set up files and database settings.**\n\n```sh\ntar -zxf files.tar.gz -C sites/default \u0026\u0026 cp sites/default/docker.settings.php sites/default/settings.php\n```\n\n5.  **Start the server.**\n\n```sh\nsudo docker-compose build \u0026\u0026 sudo docker-compose up -d\n```\n\n6. **Set files permissions to apache**\n\n```sh\nsudo docker exec -it blogslib-drupal-1 chown -R www-data sites/default/files\n```\n\n7.  **Import the openid config for development.**\n\n```sh\ntar -zxf config-yml.tar.gz\nsudo docker exec -it blogslib-drupal-1 drush config-import --partial --source=config-yml/ \n```\n\n8.  **Open the site. (NOTE: Takes a minute for mariadb to load up.)**\n\nSite should load at http://localhost:25647\n\n## 🚀 Completely Rebuild environment\n1.  **Pull the latest from git.**\n\n```sh\ngit pull\n```\n\n2.  **Get fresh data from the s3 bucket (NOTE: credentials must be supplied from initial build.)\n\n```sh\nsudo docker run --rm -it -v $(pwd)/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli s3 cp s3://blogs-lib-umich-edu/ ./ --recursive\n```\n\n3.  **Set up refreshed files. (NOTE: you may want to mv sites/default/files sites/default/files- or rm -r sites/default/files)**\n\n```sh\nsudo tar -zxvf files.tar.gz -C sites/default \u0026\u0026 sudo chown -R www-data sites/default/files\n```\n\n4.  **Rebuild docker with latest stuff.**\n\nRemove all associated volumes, images and containers. Download the latest. Note that you may have names other than blogslib-drupal-1 and blogslib-database-1.\n\n```sh\nsudo docker rm -f blogslib-database-1 \u0026\u0026 sudo docker rm -f blogslib-drupal-1 \u0026\u0026 sudo docker volume rm -f blogslib_database \u0026\u0026 sudo docker image rm -f mariadb:latest \u0026\u0026 sudo docker image rm -f blogslib_drupal:latest \u0026\u0026 sudo docker-compose build --no-cache \u0026\u0026 sudo docker-compose up -d --force-recreate\n```\n\n5.  **Import the openid config for development. (NOTE: you need to wait for database to start up. Should go green.)**\n\n```sh\ntar -zxf config-yml.tar.gz\nsudo docker exec -it blogslib-drupal-1 drush config-import --partial --source=config-yml/\n```\n\n## Other handy commands\n\n**Update composer**\n\n```sh\nsudo docker exec -it blogslib-drupal-1 composer update\n```\n\n**Run drush commands (status in example, but can be anything)**\n\n```sh\nsudo docker exec -it blogslib-drupal-1 drush status\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fblogs.lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Fblogs.lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fblogs.lib/lists"}