Skip to content

Fix /compose and Dockerfile#685

Merged
h4sh3d merged 4 commits into
farcaster-project:mainfrom
LeoNero:fix/compose
Aug 24, 2022
Merged

Fix /compose and Dockerfile#685
h4sh3d merged 4 commits into
farcaster-project:mainfrom
LeoNero:fix/compose

Conversation

@LeoNero
Copy link
Copy Markdown
Member

@LeoNero LeoNero commented Aug 23, 2022

Changes:

  • removed .github/workflows/create-compose-release.yml
  • remove /compose/Dockerfile
  • fix the environment key in /compose/docker-compose.yml
  • moved docker-compose.yml to /compose folder
  • fix /Dockerfile's CMD by removing the -x and --data-dir arguments; the -x argument was giving the error error: Invalid value "lnpz://0.0.0.0:9981/?api=esb" for '--ctl-socket <CTL_SOCKET>': invalid server address string 'lnpz://0.0.0.0:9981/?api=esb', and the --data-dir argument was giving thread 'main' panicked at 'Unable to access data directory: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }'src/opts.rs:133:42
  • /compose/docker-compose.yml uses the latest farcasterd tag and creates a volume from /compose to /var/lib/farcaster, so that the compose/farcasterd.toml can be used

Please test it, too! :)

- remove farcaster:compose tag
- move `docker-compose.yml` to `/compose`
- fix `environment` key in `docker-compose.yml`
- use `farcasterd`'s `latest` tag instead of `compose` tag in
  `docker-compose.yml`
- add volume from `/compose` to `/var/lib/farcaster`
- add `/compose/.farcaster` to `.gitignore`
@h4sh3d
Copy link
Copy Markdown
Member

h4sh3d commented Aug 23, 2022

-x and port forwarding was used to expose the bus outside of the container so a "host" cli could connect to port 9981. But I prefer documenting usage of docker-compose exec farcaster swap-cli ... instead of connecting over the network. So we can remove it. And it is not working anymore because of upstream dependency changes.

I'll do more tests before approve and merge, but concept ACK.

Also we we'll have to check to update documentation in wiki.

@LeoNero
Copy link
Copy Markdown
Member Author

LeoNero commented Aug 23, 2022

@h4sh3d cool. I tried to fix the -x but no success... so I decided to remove it and then open for discussion, but you already clarified it. Thanks! I can update the wiki once this is merged

Copy link
Copy Markdown
Member

@h4sh3d h4sh3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was working on the doc anyway so I did the update.

Now the docker stack is better, using :latest is good but we have to complete improvements on the release process and create releases more often so latest doesn't point to a month old node.

E.g. locally I switched latest to main so I get the updates.

@h4sh3d h4sh3d merged commit 088909b into farcaster-project:main Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants