Comments (11)
boy thats too easy !
flyctl launch
Creating app in /Users/apple/workspace/go/src/github.com/pgrok/pgrok
Scanning source code
Detected a Dockerfile app
? Choose an app name (leave blank to generate one): pgrokd
automatically selected personal organization: xxx
? Choose a region for deployment: Stockholm, Sweden (arn)
Created app pgrokd in organization personal
Admin URL: https://fly.io/apps/pgrokd
Hostname: pgrokd.fly.dev
Wrote config file fly.toml
? Would you like to set up a Postgresql database now? Yes
? Select configuration: Development - Single node, 1x shared CPU, 256MB RAM, 1GB disk
Creating postgres cluster in organization personal
Creating app...
Setting secrets on app pgrokd-db...
Provisioning 1 of 1 machines with image flyio/postgres:14.6@sha256:9cfb3fafcc1b9bc2df7c901d2ae4a81e83ba224bfe79b11e4dc11bb1838db46e
from pgrok.
Yes that’s right.
You can also get a bit fancy and slip stream the binaries in at runtime using a control plane like NATS jetstream.
You Store all versions of binaries inside Nats object store.
the docker boots and all it has is a nats.Go that a ts as an agent. It sits there on top of overmind and subscribes to the binaries.
When you have 10 I stances running on fly ( or anywhere else that can run a docker ) , they all update the binary a few milliseconds later.
you can fork the process and update the binary with zero down time.
This is something I have been working with for a while but have not finished it.
Nats is your registry and the binaries can live in your GitHub releases.
—-
Fly can btw use a do jet image that is hosted on GitHub packsge system too. You might find that useful
from pgrok.
I can make a PR is you want once i get it working..
just let me know..
from pgrok.
I can make a PR is you want once i get it working..
😍 no reason to say no!
from pgrok.
cool. will let you know..
from pgrok.
if we use cockroachdb and embed it in the server then there is no need for docker or docker files.
We just use overmind to run them both.
this works on fly.io and well as anyones latop.
wanny try this ?
from pgrok.
Hey @gedw99!
if we use cockroachdb and embed it in the server then there is no need for docker or docker files.
We just use overmind to run them both.
What does it mean to "embed" when you say "embed it in the server". Does it mean just grab/install the binary version of the cockroachdb?
from pgrok.
In the docker you put cockroachdb as well as Pgrok.
you also put overmind inside.
then you use overmind to start it up. So fly runs overmind which runs the other binaries!
this is how others run multiple processes on fly.io
from pgrok.
You can also run caddy I side fly.io this way as well as whatever app your hosting / proxying
https://github.com/jveres/fly-keydb-serf/blob/main/Dockerfile
https://github.com/tmm1/flyapp-mastodon/blob/main/Dockerfile
from pgrok.
What I like about this is that it’s portable. It’s just a docker with overmind and the binaries
you can run this on a desktop without docker
from pgrok.
Gotcha, that sounds good to me! So we just need another Dockerfile to build images for fly.io (or in general, a bundle image).
from pgrok.
Related Issues (16)
- 400 bad request using Nginx
- WebSocket/WebTransport-based tunneling
- gRPC-based tunneling
- Delete users/tokens
- typo HOT 1
- Method to sponsor the project and send some cash to the developer. HOT 1
- ERR_SSL_PROTOCOL_ERROR on http://pgrok.dev HOT 1
- docker: build images in CI and provide `docker-compose.yml` HOT 4
- config does not support pathing HOT 6
- Stable ports for TCP tunnels HOT 3
- will this setup only work with https and not http HOT 3
- docs: HTTPS example setup HOT 1
- [Question] - it possible to spin up pgrok without an authentication provider? HOT 3
- Is it possible to use multiple url/wildcard per user? HOT 2
- Postgres connection does not work via a Unix Socket HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgrok.