{"id":20838486,"url":"https://github.com/reload/ding-docker","last_synced_at":"2025-10-19T08:14:45.645Z","repository":{"id":52832380,"uuid":"76957993","full_name":"reload/ding-docker","owner":"reload","description":"Ding on Docker Compose","archived":false,"fork":false,"pushed_at":"2021-04-08T14:35:47.000Z","size":1460,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-18T23:17:53.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/reload.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":"2016-12-20T13:16:37.000Z","updated_at":"2021-04-08T14:35:49.000Z","dependencies_parsed_at":"2022-08-23T08:21:45.292Z","dependency_job_id":null,"html_url":"https://github.com/reload/ding-docker","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/reload%2Fding-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fding-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fding-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fding-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reload","download_url":"https://codeload.github.com/reload/ding-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196618,"owners_count":20251857,"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-18T01:10:28.451Z","updated_at":"2025-10-19T08:14:40.626Z","avatar_url":"https://github.com/reload.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker for Ding\n\nStill unpolished and in the works.\n\n## Københavns biblioteker (KKB)\nSee the bottom of this README for info on how to get ding-docker/ding2 working with KKB\n\n## Prerequisites\n\nThis project assumes that the following software is installed and working on your machine:\n\n- [Docker and docker-compose](https://www.docker.com/community-edition#/download)\n- [Drush 8.x](http://docs.drush.org/en/8.x/install/)\n\n## Preparation\n\n### Clone this repository\n```sh\n$ git clone https://github.com/reload/ding-docker.git\n$ cd ding-docker\n$ composer install\n```\n\n### Get the latest .make files:\n```sh\n$ make drush-make-download\n```\n\nYou can also define what version of ding2 you want to setup:\n\n**Remember to also be on the right git branch in your web/profiles/ding2 git repo!**\n```sh\n$ make drush-make-download ding_version=7.x-6.2.1\n```\n\n### Setup the .make files\nThis will also install core, and **will delete your `web` folder!**\n\nIf your `web` folder is deleted, **you lose all the progress** you've made further on in these instructions!\n\n```sh\n$ make drush-make\n```\n\n### If you have an existing project, with a drupal core, you can use this:\n\nThis will *NOT delete your `web` folder.\n\n```sh\n$ make drush-remake\n```\n\n### Using NFS with Docker for Mac\nThis project is Mac NFS enabled. You need to copy over the override file for it to work:\n[Reloaders can find a guide on how to set up NFS here](https://reload.atlassian.net/wiki/spaces/RW/pages/153288705/Docker+for+Mac#DockerforMac-5.NFS)\n\n```sh\n$ cp docker-compose.mac-nfs.yml docker-compose.override.yml\n```\n\n### Starting the docker and drupal setup:\n**\"I want everything to be reset, and I dont care about losing any data\":**\n```sh\n$ make reset\n```\n\n**\"I want to just bring the containers up again! I'll reset what I need to reset myself\":**\n```sh\n$ make up\n```\n\n### You should now have a local site available\nAssuming you're using [dory](https://github.com/FreedomBen/dory), you can visit it at https://ding2.docker\n\nOtherwise, you need to visit it using localhost:XXXX. \n\nYou can find the port using `$ docker-compose ps` and seeing what `web` is set to.\n\n### Using a custom version of the codebase (Recommended)\n\nTo use a custom version of the code base then first complete the steps above.\n\nTo use this fork as your origin with the ding2/ding2 as your upstream, do this:\n\n```sh\n$ make setup-git-remotes\n```\n\nand then, if you want to make sure that the origin (reload/ding2) is up to date with upstream (ding2/ding2):\n\n(Substitute `master` with an alternative tag/version if you've used another `ding_version` version above/below)\n```sh\n$ cd web/profiles/ding2\n$ git checkout master\n$ git rebase upstream/master\n$ git push origin master\n```\n\nNote that you may have to clear the cache, download new dependencies or even reinstall the site to make the changes take effect.\n\n## Install ding yourself, without a database dump (not recommended)\n\nThis setup includes a database containing data from a clean installation of the latest version of Ding. Thus the system is already installed.\n\nIf you want to run the install profile yourself you have to drop the contents of the datase first. After that running the install profile can sometimes be tricky.\n\nThe sure-fire way (especially on Mac) is to run the install script through the browser:\n\nhttp://local.docker/install.php (Use the ding2 profile)\n\n**Notice: This way can be pretty slow.**\n\n\nA faster, but not-so-sure way is to run the install-script through Drush:\n\nFrom inside the docker web containers document root (`/var/www/html`) do:\n```sh\n$ drush site-install ding2\n```\n\n## Stuff not polished yet\n\n* varnish only one way (whatever that means)\n\n# \"I need to work with Københavns Biblioteker (KKB)\"\n\nFirst of all: **Lucky you!**\nAll you need to do is follow the patented 6 step programme™️! \n\n(..after following the million step programme above..)\n\n1) **Talk with Nino to get a DDB dump**\n2) **Update/create a docker-compose.override.yml with the following**\n  ```\n  version: '3'\n  \n  services:\n    db:\n      volumes:\n        - \"./docker/db:/docker-entrypoint-initdb.d\"\n        \n    # Dont delete any other stuff you have in the file, such as 'volumes'\n  ```\n3) **Put the .sql dump in `/docker/db`:**\n  ```\n  ╰─$ ll -la  ~/code/ding-docker/docker/db                                                                                                                                                                                130 ↵\n  total 3855224\n  drwxr-xr-x   4 rasben  staff   128B Mar 25 11:41 .\n  drwxr-xr-x  10 rasben  staff   320B Mar 25 11:40 ..\n  -rw-r--r--@  1 rasben  staff   1.8G Oct 21 14:53 koebenhavnddbc_0.sql  \n  ```\n4) **The codebase (Drupal modules) for KKB is available at https://github.com/kdb/kkb-ddb-modules**\n  - `git clone git@github.com:kdb/kkb-ddb-modules.git web/sites/all/modules/kkb-ddb-modules`\n  - Just like the ding2 codebase is now available - as a git repo - in `web/profiles/ding2/` (see more about that above), the KKB codebase is now available in `web/sites/all/modules/kkb-ddb-modules`\n  - It's a git sub-repo, so you also need to do your `git` commands inside the subfolders.\n\n5) `make reset` in the `ding-docker` root\n  - Buckle up, buckaroo! This is gonna take a while, because of the big DB dump!\n\n6) After the initial setup, it's a good idea to use **`make up`** instead of **`make reset`** to speed up the process\n\n### Troubleshooting:\n\n```\nwait-for-it: timeout occurred after waiting XXX seconds for db:3306\nmake: *** [_reset-container-state] Error 124\n```\n\nThe DB-dump from KK is huge. We've set it to wait for 600 seconds, but sometimes that isnt enough.\nYou can bump the number up even more in `scripts/docker/site-reset.sh` - however if 10 minutes wasnt enough for you, there might be a bigger issue at hand.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freload%2Fding-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freload%2Fding-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freload%2Fding-docker/lists"}