{"id":18388268,"url":"https://github.com/ccnmtl/docker","last_synced_at":"2026-02-26T19:06:30.319Z","repository":{"id":66197773,"uuid":"46117116","full_name":"ccnmtl/docker","owner":"ccnmtl","description":"utility dockerfiles","archived":false,"fork":false,"pushed_at":"2021-10-29T16:23:56.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-21T23:49:32.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccnmtl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-13T11:02:26.000Z","updated_at":"2021-10-29T16:23:56.000Z","dependencies_parsed_at":"2024-02-21T23:00:36.416Z","dependency_job_id":null,"html_url":"https://github.com/ccnmtl/docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ccnmtl/docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccnmtl","download_url":"https://codeload.github.com/ccnmtl/docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29868065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-06T01:33:23.284Z","updated_at":"2026-02-26T19:06:30.293Z","avatar_url":"https://github.com/ccnmtl.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker\n\nUtility dockerfiles for building and running our other\napplications. These support a separated build + run workflow. Roughly\nbased on what Glyph describes\n[here](https://glyph.twistedmatrix.com/2015/03/docker-deploy-double-dutch.html),\nbut modified to suit some of our existing conventions and needs.\n\n## ccnmtl/django.base\n\nGeneral, all-purpose django base image. Based on Debian Bullseye. Both\nthe `django.build` and any run containers use it as a base.\n\n## ccnmtl/django.build\n\nWheel building image. To use it, cd into a django project directory\nthat has a `requirements.txt` and something like the following:\n\n    $ mkdir -p wheelhouse\n    $ docker run --rm \\\n\t    -v $(pwd):/app \\\n        -v $(pwd):/wheelhouse:/wheelhouse \\\n        ccnmtl/django.build\n\nThe result should be that you have a `wheelhouse` directory populated\nwith linux x64 wheels of every package specified in your\n`requirements.txt`. This is suitable to then install into a run\ncontainer which has no development tools installed (other than\npip/virtualenv).\n\nI also recommend just having a `Makefile` in your project with the\nfollowing contents:\n\n    ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))\n    \n    # use wheelhouse/requirements.txt as the sentinal so make\n    # knows whether it needs to rebuild the wheel directory or not\n    # has the added advantage that it can just pip install\n    # from that later on as well\n    wheelhouse/requirements.txt: requirements.txt\n    \tmkdir -p wheelhouse\n    \tdocker run --rm \\\n    \t-v $(ROOT_DIR):/app \\\n    \t-v $(ROOT_DIR)/wheelhouse:/wheelhouse \\\n    \tccnmtl/django.build\n    \tcp requirements.txt wheelhouse/requirements.txt\n    \ttouch wheelhouse/requirements.txt\n    \n    build: wheelhouse/requirements.txt\n    \tdocker build -t ccnmtl/sample .\n\nThen you can just do `make build` and it will be smart enough to not\nre-run that step if your requirements haven't changed since the last\ntime it was run.\n\n## ccnmtl/django.sample\n\nFinally, you'll want to build the run image for your application from\na Dockerfile something like this sample one. It pulls in the\n`wheelhouse` directory with all the wheels that the builder built and\ninstalls them into a virtualenv (requiring no network access). Then it\nbrings in the rest of the application, runs the tests inside the\ncontainer, exposes ports, etc.\n\n# todo:\n\n* work out a similar approach to handle nodejs dependencies\n* jshint + jscs included in build steps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnmtl%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccnmtl%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnmtl%2Fdocker/lists"}