{"id":21721408,"url":"https://github.com/informaticsmatters/rdock_docker","last_synced_at":"2026-04-26T20:31:32.847Z","repository":{"id":80605373,"uuid":"91822366","full_name":"InformaticsMatters/rdock_docker","owner":"InformaticsMatters","description":"Docker build for rDock","archived":false,"fork":false,"pushed_at":"2021-06-15T15:50:34.000Z","size":1787,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T13:47:13.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/InformaticsMatters.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":"2017-05-19T15:55:41.000Z","updated_at":"2023-06-14T10:10:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1f70c39-ad1e-4112-b243-874928ad65e3","html_url":"https://github.com/InformaticsMatters/rdock_docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InformaticsMatters/rdock_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Frdock_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Frdock_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Frdock_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Frdock_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InformaticsMatters","download_url":"https://codeload.github.com/InformaticsMatters/rdock_docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Frdock_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-26T02:16:41.750Z","updated_at":"2026-04-26T20:31:32.828Z","avatar_url":"https://github.com/InformaticsMatters.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker builds for rDock docking program\n\nFor details about rDock look [here](http://rdock.sourceforge.net/)\n\n## Code changes\n\nNote: the rDock source code is modified slightly to remove the check that the ligand structures are 3D structures. \nThe way that rDock does this check is very picky and often real 3D structures fail this check.\nA better solution is needed for this. See [this commit](https://github.com/InformaticsMatters/rdock_docker/commit/c07a70f4e4b7113203aa7ceceb177205da59977b) for the changes.\n\n## Kitchen sink image\n\nThis was the original rDock image that we created. We call it a `kitchen sink` image as the image contains not only the rDock binaries but also the entire\nbuild infrastructure that was needed to compile it. This includes gcc, make and a raft of other things. It also includes runtime tools such as Python\nand OpenBabel. The consequence of this is that whilst you end up with an image that contains lots of useful goodies and might be useful for hacking, it\ncomes in at ~500MB in size, which not only means it takes a long time to pull over the internet, but it has a large attack surface for hackers to\ntry to get into, and so it makes a poor image for running production systems that will be public facing. See below for the more recent buildah-based images \nthat are much better suited to production use.\n\n* `Dockerfile` is a build for rdock. Find image on Dockerhub at [informaticsmatters/rdock](https://hub.docker.com/r/informaticsmatters/rdock).\n* nextflow/Dockerfile also contains [Nextflow](http://nextflow.io) which is useful for running more complex pipelines. Find image on Dockerhub at \n[informaticsmatters/rdock_nextflow](https://hub.docker.com/r/informaticsmatters/rdock_nextflow).\n\n\n## Buildah images\n\nIn contrast to the kitchen sink images we also create minimal images using the [buildah](https://github.com/projectatomic/buildah) tool.\nThese images are named `informaticsmatters/rdock-mini`.\nThe general concept has been described in the [smaller containers](https://www.informaticsmatters.com/category/containers/index.html) series of posts\non the [Informatics Matters blog](https://www.informaticsmatters.com/blog.html).\n\nThese images contain only a minimal centos:7 operating system, a few standard Linux utilities (bash, procps-ng and the coreutils packages), the `popt` runtime library\nneeded by rDock, and Perl (as rDock includes some Perl scripts). The result is an image that is only ~100MB in size, ~5x smaller than the kitchen sink image.\n\nTo build this image:\n\n### Step 1\nBuild the Docker image from which we are going to build the `buildah-mini` image. This is based on a Centos7 image and contains all the build infrastructure\nthat is needed to build rDock from the source code.\n```\ndocker build -f Dockerfile-buildah -t informaticsmatters/rdock-buildah .\n```\n\n### Step 2\nUse this image to build the buildah binaries and load these into a minimal Centos7 based image:\n```\nsudo ./build.sh\n```\n\nThis does 2 things:\n\n1. Fires up the container and executes the `buildah-build.sh` script that compiles the code and uses `buildah` to create a new image containing the `rdlock` binaries.\n2. Push that buildah image to a local Docker image named `informaticsmatters/rdock-mini` so that it can also be run from `docker`.\n\n``` \n\n### Step 3 \nOptionally push the image to Docker Hub:\n\n```\ndocker push informaticsmatters/rdock-mini:latest\n```\nYou need the necessary privileges for this. The image can be found on Docker Hub at \n[informaticsmatters/rdock-mini/](https://hub.docker.com/r/informaticsmatters/rdock-mini/).\n\n### Running the image\n\nTo run the image you might want to allow to access your current directory and run as your user ID.\nTry something like this:\n\n```\n$ docker run -it --rm -u $(id -u):$(id -g) -v $PWD:$PWD:Z -w $PWD informaticsmatters/rdock-mini bash\nbash-4.2# rbdock\n***********************************************\nThe rDock program is licensed under GNU-LGPLv3.0. http://rdock.sourceforge.net/\nExecutable:\trbdock ($Id: //depot/dev/client3/rdock/2013.1/src/exe/rbdock.cxx#4 $)\nLibrary:\tlibRbt.so/2013.1/901 2013/11/27\nRBT_ROOT:\t/rDock_2013.1\nRBT_HOME:\t/root\nCurrent dir:\t/\nDate:\t\tSun Jun 17 13:08:51 2018\n***********************************************\n\nUsage:\nrbdock -i \u003csdFile\u003e -o \u003coutputRoot\u003e -r \u003crecepPrmFile\u003e -p \u003cprotoPrmFile\u003e [-n \u003cnRuns\u003e] [-ap] [-an] [-allH]\n       [-t \u003ctargetScore|targetFilterFile\u003e] [-c] [-T \u003ctraceLevel\u003e] [-s \u003crndSeed\u003e]\n\nOptions:\t-i \u003csdFile\u003e - input ligand SD file\n\t\t-o \u003coutputRoot\u003e - root name for output file(s)\n\t\t-r \u003crecepPrmFile\u003e - receptor parameter file \n\t\t-p \u003cprotoPrmFile\u003e - docking protocol parameter file\n\t\t-n \u003cnRuns\u003e - number of runs/ligand (default=1)\n\t\t-ap - protonate all neutral amines, guanidines, imidazoles (default=disabled)\n\t\t-an - deprotonate all carboxylic, sulphur and phosphorous acid groups (default=disabled)\n\t\t-allH - read all hydrogens present (default=polar hydrogens only)\n\t\t-t - score threshold OR filter file name\n\t\t-c - continue if score threshold is met (use with -t \u003ctargetScore\u003e, default=terminate ligand)\n\t\t-T \u003ctraceLevel\u003e - controls output level for debugging (0 = minimal, \u003e0 = more verbose)\n\t\t-s \u003crndSeed\u003e - random number seed (default=from sys clock)\nbash-4.2# \n```\n\nBy default the container runs as the root user but you can (and should) run the container as a non-priviledged user.\nAny user ID can be used, including a randomly assigned ID. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Frdock_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finformaticsmatters%2Frdock_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Frdock_docker/lists"}