{"id":20360837,"url":"https://github.com/mardiros/dotdeb","last_synced_at":"2026-06-01T02:31:43.857Z","repository":{"id":28317851,"uuid":"31830762","full_name":"mardiros/dotdeb","owner":"mardiros","description":"Debian Packaging, Docker, Aplty","archived":false,"fork":false,"pushed_at":"2019-02-20T10:16:08.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T02:29:34.063Z","etag":null,"topics":["debian","packaging-tool"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mardiros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-07T22:58:54.000Z","updated_at":"2019-02-20T10:16:09.000Z","dependencies_parsed_at":"2022-08-01T13:37:45.128Z","dependency_job_id":null,"html_url":"https://github.com/mardiros/dotdeb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mardiros/dotdeb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mardiros%2Fdotdeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mardiros%2Fdotdeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mardiros%2Fdotdeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mardiros%2Fdotdeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mardiros","download_url":"https://codeload.github.com/mardiros/dotdeb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mardiros%2Fdotdeb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["debian","packaging-tool"],"created_at":"2024-11-14T23:43:09.697Z","updated_at":"2026-06-01T02:31:43.837Z","avatar_url":"https://github.com/mardiros.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debian Packaging With Docker\n\n\nBuild you package, and host them with aptly using a docker container.\n\nThe aim of this container is for development purpose.\n\n\n## Setup\n\n```bash\n\ndocker pull mardiros/dotdeb                     # Pull the docker image\nmkdir -p ${HOME}/workspace/aptly/{aptly,root,sources.list.d}   # Create a directory to mount volumes\n\n# Create an alias to keep \"runtime\" configuration of the container\nalias dotdeb='docker run -t -i -v ${HOME}/workspace/aptly/repo:/aptly \\\n    -v ${HOME}/workspace/aptly/root:/root \\\n    -v $(pwd):/mnt \\\n    -v /dev/urandom:/dev/random \\\n    -v ${HOME}/workspace/aptly/sources.list.d:/etc/apt/sources.list.d \\\n    mardiros/dotdeb'\n\n# Create a specific alias to expose the port\nalias dotdeb-serve='docker run -t -i -v ${HOME}/workspace/aptly/repo:/aptly \\\n    -v ${HOME}/workspace/aptly/root:/root \\\n    -p 8765:8765 \\\n    mardiros/dotdeb \\\n    aptly serve -listen=:8765'\n\n```\n\nNote that the volume `/dev/urandom:/dev/random` is mount in order to\nfacilitate the creation of the GPG key. The GPG key is saved in the `/root` volume,\nand the repo is created in the `/aptly` volume.\nThe current dir is mounted in `/mnt`, it is used when building the debian package.\nThe `sources.list.d` is mounted in `/etc/apt/` to add new debian packages sources.\nThe port `8765` will be used to serve the repository.\n\n### create the repository\n\n```bash\ndotdeb aptly -architectures=amd64 repo create -distribution=wheezy -component=main aptly-release\n```\n\n\n### build a package\n```bash\ncd a_project_having_a_debian_directory\ndotdeb makedeb\n```\n\n### Push it in the repository\n\n```bash\ndotdeb aptly -architectures=amd64 repo add aptly-release *.deb\ndotdeb aptly publish repo  -architectures=amd64  aptly-release\n```\n\n\nNote that for the next package, you don't have to publish it, but\nto update it with the command:\n\n```bash\ndotdeb aptly publish update wheezy\n```\n\n\n### Run the packages repository\n\n```bash\ndotdeb-serve\n```\n\n### Go further\n\n\nNow, you can add the server in a new file in the\ndirectory `${HOME}/workspace/aptly/sources.list.d/`.\n\nThen, you can test that packages are instalable.\n\n```bash\ndotdeb /bin/bash\napt-get update\napt-get install my_package\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmardiros%2Fdotdeb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmardiros%2Fdotdeb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmardiros%2Fdotdeb/lists"}