Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Docker build #1

Open
talhazan opened this issue Apr 30, 2021 · 6 comments
Open

Docker build #1

talhazan opened this issue Apr 30, 2021 · 6 comments

Comments

@talhazan
Copy link

Hello,

This tool seems amazing, would you mind sketch docker build? I can assist if you need.

The build beaks on my linux box, I haven't found any logs so debugging seems a bit complicated.

i would prefer to dockerize the app and continue from there.

Thank you!

@jefc1111
Copy link
Owner

Yes, good point. I definitely should set this up in Docker. I have a little Docker experience, but not a lot so it might take me some time. I will take a look in the next few days and comment here if I get stuck. Thanks for the offer of help!

Meanwhile, Laravel stores logs in /storage/logs. But I have a feeling you might be having problems before that point.

@jefc1111
Copy link
Owner

I have started a branch for this: https://github.com/jefc1111/zenbot-sim-runner/tree/dockerize

It's a work-in-progress (adapted from https://laravel-news.com/laravel-scheduler-queue-docker). The app works, with Redis and MySQL running, but I haven't yet worked out the best way to let it remote-control Zenbot. I could include a block for Zenbot in docker-compose.yml and take that route, but I was hoping to keep them more separate. Any ideas very welcome!

@holber0
Copy link

holber0 commented May 14, 2021

best way is when you use zenbot in a docker to. then add a network to both docker-compose files so they Docker Container can communicate. i will try this and let you know if this is working.

@jefc1111
Copy link
Owner

Ok, thanks. I haven't used Zenbot in Docker so not too familiar with that setup. I did a search on Stack Overflow etc on the subject of 'php app in Docker calling shell cmds in a different Docker container, or on host system' and all the solutions looked fairly involved. Do-able though... Meanwhile I have been working on giving the sim runner some self-learning capabilities. Fun! Let me know how you get on with the Docker stuff, happy to get involved.

@holber0
Copy link

holber0 commented May 14, 2021

didnt get it that you will use the zenbot binaray. so my idea is not working well. will try to build a new Docker environment with all together.
PS: is it possible that your .env File still showing to your local mysql DB? because the "php artisan migrate" will not run in the container. php-mysql stuff is missing.

@jefc1111
Copy link
Owner

To get things working in Docker I had to set my db in .env like this;
DB_HOST=mysql
'mysql' being the name of the container running MySQL server.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants