{"id":22606090,"url":"https://github.com/aghost-7/docker-dev","last_synced_at":"2025-04-04T13:08:26.359Z","repository":{"id":54454609,"uuid":"57926150","full_name":"AGhost-7/docker-dev","owner":"AGhost-7","description":"Container images for portable development environments","archived":false,"fork":false,"pushed_at":"2025-03-04T04:58:22.000Z","size":1353,"stargazers_count":167,"open_issues_count":7,"forks_count":26,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-04T12:33:42.685Z","etag":null,"topics":["docker","neovim","nodejs","python","rust","tmux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AGhost-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2016-05-02T22:50:03.000Z","updated_at":"2025-02-01T18:54:40.000Z","dependencies_parsed_at":"2024-05-02T04:27:33.306Z","dependency_job_id":"a7c2a2a1-b8f3-4229-a5a4-39fbedc087f2","html_url":"https://github.com/AGhost-7/docker-dev","commit_stats":{"total_commits":589,"total_committers":10,"mean_commits":58.9,"dds":"0.18336162988115445","last_synced_commit":"c2f9d393d82ae969d2a32c65754cf906fb9090d6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AGhost-7%2Fdocker-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AGhost-7%2Fdocker-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AGhost-7%2Fdocker-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AGhost-7%2Fdocker-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AGhost-7","download_url":"https://codeload.github.com/AGhost-7/docker-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182389,"owners_count":20897381,"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":["docker","neovim","nodejs","python","rust","tmux"],"created_at":"2024-12-08T14:12:28.292Z","updated_at":"2025-04-04T13:08:26.340Z","avatar_url":"https://github.com/AGhost-7.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Dev\nSpin up a container to develop from anywhere!\n\n![docker-dev](https://raw.githubusercontent.com/AGhost-7/docker-dev/assets/demo.gif)\n\nTo run, just:\n```\ndocker run -ti aghost7/nodejs-dev:boron tmux new\n```\n\nAlternatively, using [slipway](https://github.com/AGhost-7/slipway):\n```\npython3 -m pip install --user slipway\nslipway start aghost7/nodejs-dev:noble\n```\n\n## Terminal\nLately, I've been using [alacritty][alacritty]. You can find my configurations\n[here][alacritty_config]. Gnome terminal and/or iTerm2 works fine though.\n\n[alacritty]: https://github.com/jwilm/alacritty\n[alacritty_config]: https://github.com/AGhost-7/dotfiles/tree/master/alacritty\n\n## Images\n\n### Language Images\nOnly the `:noble` tag is currently maintained.\n- `dev-base`: Ubuntu base image with neovim and tmux.\n- `nodejs-dev`: nvm + nodejs specific configurations. Tags available:\n- `rust-dev`: NeoVim configuration and autocomplete for the Rust language. \n- `py-dev`: Python configuration with autocomplete for python and ptpython.\n- `c-dev`: Ubuntu Bionic image for c development with cquery for completions.\n- `deno-dev`: Ubuntu Bionic image for deno development with bash completions.\nTags Available:\n- `devops`: Python image with additional tools (e.g., terraform) for devops\nrelated tasks.\n\t\n### Database Images\n- `pg-dev`: Postgresql image with pgcli, a command line client with\nautocompletions and syntax highlighting. Tags correspond to the Postgresql\nversion.\n- `mongo-dev`: Official mongodb image with [Mongo Hacker][mongo_hacker] added.\nTags correspond to the mongdb version.\n\n[mongo_hacker]: https://github.com/TylerBrock/mongo-hacker\n[iredis]: https://github.com/laixintao/iredis\n\n\n## Calling Docker on the Host\nThe docker daemon run over a socket. The command line tool is just a client to\nthe daemon. In other words, if we make the socket connectable from within the\ncontainer we're in business.\n\nFor some reason it needs `privileged` to work as well.\n```bash\ndocker run -ti --rm \\\n\t--privileged \\\n\t-v `readlink -f /var/run/docker.sock`:/var/run/docker.sock \\\n\taghost7/ubuntu-dev-base:latest \\\n\ttmux new\n```\n\n## SSH Forwarding and Git\nFor ssh, just pass the socket over to the container.\n```\ndocker run -ti --rm \\\n\t-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK \\\n\t-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \\\n\taghost7/ubuntu-dev-base:latest \\\n\ttmux new\n```\nI like to avoid having to reconfigure git every time, so I mount a volume for\n`.gitconfig`. `~/.ssh/known_hosts` is also anoying.\n\n## Getting the Clipboard Working\nBasically, X11 is built in a manner that allows sending display data over the\nwire. I've managed to run GUI applications from a headless server through an\nssh connection in the past. The way I'm doing this is through the same old\nunix socket trick for controlling the docker daemon that's on the host machine.\n\n```bash\ndocker run -ti --rm \\\n\t-e DISPLAY=$DISPLAY \\\n\t-v /tmp/.X11-unix:/tmp/.X11-unix:ro \\\n\taghost7/ubuntu-dev-base:latest bash\n```\n\nOn the host you'll need to disable one of the security features in X11.\n```bash\nxhost +si:localuser:$USER \u003e /dev/null\n```\n\nSource: http://stackoverflow.com/questions/25281992/alternatives-to-ssh-x11-forwarding-for-docker-containers\n\n## Build your own\nThere is a tutorial which can be found [here](tutorial/readme.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faghost-7%2Fdocker-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faghost-7%2Fdocker-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faghost-7%2Fdocker-dev/lists"}