Skip to content
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

use docker-compose to start minIO and layotto #636

Closed
seeflood opened this issue Jun 9, 2022 · 9 comments · Fixed by #648
Closed

use docker-compose to start minIO and layotto #636

seeflood opened this issue Jun 9, 2022 · 9 comments · Fixed by #648
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/enhancement New feature or request

Comments

@seeflood
Copy link
Member

seeflood commented Jun 9, 2022

What would you like to be added:
We have File API quickstart document showing users how to build and start layotto locally:
https://mosn.io/layotto/#/zh/start/file/minio

And now we can add a docker-compose to start minIO and layotto with one command, and then improve the quickstart.

Examples are redis&layotto quickstart. I modified those redis related quickstarts showing users how to use docker-compose to start redis and layotto:
https://mosn.io/layotto/#/zh/start/state/start
https://mosn.io/layotto/#/en/start/state/start
image

and:
image

Why is this needed:
Make layotto more user friendly

@seeflood seeflood added kind/enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jun 9, 2022
@bxiiiiii
Copy link
Contributor

Could be assigned to me.

@seeflood
Copy link
Member Author

@bxiiiiii ok. Thanks!

@bxiiiiii
Copy link
Contributor

bxiiiiii commented Jun 13, 2022

@seeflood

layotto | 2022-06-13 10:30:42,285 [DEBUG] [network] [read loop] Error on read. Connection = 3, Local Address = 172.20.0.3:34904, Remote Address = 172.20.0.1:51558, err = EOF

The error log is as above, the request from layotto to minIO cannot be sent, how should the IP address be changed to 127.0.0.1?

@seeflood
Copy link
Member Author

@bxiiiiii Did you change the listener address in config.json from 127.0.0.1 to 0.0.0.0?
image

@bxiiiiii
Copy link
Contributor

@seeflood Of course. layotto can already receive the request from the client, but it failed to send to minIO.

@seeflood
Copy link
Member Author

@bxiiiiii Then remember to modify the minio address in the config.json:
image
You can take docker/layotto-redis/config_redis.json as an example

@bxiiiiii
Copy link
Contributor

@seeflood It does work!
btw, there is a an unimportant question.
when using get, we will receive in client

recv file failed
hello layotto

Is there a problem?

@seeflood
Copy link
Member Author

recv file failed

I think it is a problem 🤔
Can you get same error even when running the existing demo in https://mosn.io/layotto/#/zh/start/file/minio ,without docker?
If so, you can submit an issue to track it

@bxiiiiii
Copy link
Contributor

@seeflood yes, the problem still exists.
ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants