Show HN: Pooshit – Sync local code to remote Docker containers
55 points| marktolson | 5 months ago
I'm a lazy developer for the most part, so this is for people like me. Sometimes I just want my local code running in live remote containers quickly, without building images and syncing to cloud docker repos or setting up git workflows or any of the other draining ways to get your code running remotely.
With pooshit (and a simple config file), you can simply push your local dev files to a remote folder on a VM then automatically remove relevant running containers, then build and run an updated container with one command line call.
It works well with reverse proxies like nginx or caddy as you can specify the docker run arguments in the pooshit_config files.
sippeangelo|5 months ago
It uploads your whole local docker context, source code and all, builds the image on the remote server and up's the container(s) all with a single command. I use this all the time when deploying simple services to avoid all of the complexity of registries etc.
parhamn|5 months ago
pploug|5 months ago
zsimjee|5 months ago
DarmokJalad1701|5 months ago
aitchnyu|5 months ago
robertlagrant|5 months ago
marktolson|5 months ago
scottydelta|5 months ago
You push to github, github action builds it and hits dokploy webhook and it pulls your github code and build and deploy on that server.
This is more reliable and industry way. What you are doing requires same amount of time to deploy and requires manual intervention every time.
For once i thought you were moving code to server and then you just restarted container and it worked without having to build. I have done it in the past due to some unique requirements where dependencies are in docker image and code is copied from local to server and docker image took code from server on start.
marktolson|5 months ago
Additionally there are a million different and better ways to deploy services, this suits the use case I described.
coded_monkey|5 months ago
bilekas|5 months ago
marktolson|5 months ago
infogulch|5 months ago
ElCapitanMarkla|5 months ago
eightnoneone|5 months ago
marktolson|5 months ago
_def|5 months ago
marktolson|5 months ago
gregjw|5 months ago
jackpste|5 months ago
lagniappe|5 months ago
wolttam|5 months ago
WastedCucumber|5 months ago
robertlagrant|5 months ago
unknown|5 months ago
[deleted]
electroglyph|5 months ago
CBLT|5 months ago
65|5 months ago
badc0ffee|5 months ago
marktolson|5 months ago
mhuffman|5 months ago
another-dave|5 months ago
Legal came back saying that it was "highly unorthodox, but approved for use"
spacebanana7|5 months ago
chillfox|5 months ago
catlifeonmars|5 months ago
mouse_|5 months ago
fny|5 months ago
For anyone who's interested in proper bidirectional sync check out Mutagen.[0]
[0]: https://mutagen.io/documentation/synchronization/
marktolson|5 months ago