-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server readme updates #611
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,11 +52,23 @@ To mimic the full "fission stack" for local development, you can use the include | |
- `docker compose exec dns-auth pdnsutil create-zone runfission.test` | ||
- `docker compose exec dns-auth pdnsutil create-zone fissionuser.test` | ||
- `docker compose exec dns-auth pdnsutil create-zone fissionapp.test` | ||
4. Point your local DNS resolver to localhost. | ||
4. Create some initial DNS records: | ||
- `docker compose exec dns-auth pdnsutil add-record runfission.test. @ A "127.0.0.1"` | ||
- `docker compose exec dns-auth pdnsutil add-record fissionuser.test. gateway A "127.0.0.1"` | ||
- `docker compose exec dns-auth pdnsutil add-record fissionapp.test. gateway A "127.0.0.1"` | ||
5. Point your local DNS resolver to localhost. | ||
- on macOS: this is under System Preferences > Network > Advanced. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that for me I added 127.0.0.1 and also 192.168.1.1 (default DNS for me if none specified manually). Without this if the container is down I can't reach anything, like |
||
- on Linux: Add `nameserver 127.0.0.1` to `/etc/resolv.conf` | ||
|
||
You can now build / run the haskell server. The included `server.yaml.example` is configured to work with the local docker setup. | ||
6. Pin the CID for the new app placeholder: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this? The "new app placeholder"? What app and where did the CID come from? Also when I run this I get the following error.
Looks like that ipfs container isn't starting up the daemon or at least not keeping it running. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When you create an app from the CLI (via
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have this issue as well. Logs:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
yeah, this is an issue with 0.11 ... i've bumped the docker-compose in this PR to use 0.13 (which fixes the issue) or there's a config workaround here: ipfs/kubo#8645 (comment) |
||
`docker compose exec ipfs ipfs pin add -r QmRVvvMeMEPi1zerpXYH9df3ATdzuB63R1wf3Mz5NS5HQN` | ||
7. Copy `addon-manifest.json.example` to `addon-manifest.json` and change `CHANGE_ME_TO_NUMBER` to a random number (e.g. 42) | ||
8. Copy `server.yaml.example` to `server.yaml` | ||
9. Build / install the server (if using nix-shell you can run `server-install`) | ||
10. Run the server (if using nix-shell you can run `server-debug`) | ||
|
||
You should now have a rest server running on port `1337` (test: http://runfission.test:1337/ping). | ||
|
||
You can use the fission CLI to register users and deploy apps: `fission setup -R runfission.test:1337` (always pass the `-R runfission.test:1337` to commands). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remove ~/.config/fission first. Then do the following.
Server log is below, and I assume this is a similar issue to the pinning error due to ipfs not running.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I believe the issue with ipfs not starting is due to the network being missing from the docker compose.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, modified ./data/ipfs/config with the workaround at ipfs/kubo#8645 (comment) and the daemon starts up now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get the following when trying to set up a new account after I have everything working.
Logs have the following
But I don't see the user in the db
I have no postgres running locally, and only one in docker, so I think I'm in the right db. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
try There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per out Zoom call, I'm assigning this back to you. (I believe it was assigned to me just for review purposes.) Additional items we discussed...
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @justincjohnson I've pushed the updates. 👍 👎 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
#### Local DNS troubleshooting | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With postgres being in docker compose, I believe you need something like the following somewhere in here after docker compose up.
Or with
createdb
instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're using the
env.example
from the repo it definesPOSTGRES_DB
- which will create the database on first run (see https://github.com/docker-library/docs/blob/master/postgres/README.md#postgres_db )