Tribes-Agency / craft-3

Boilerplate with Craft CMS, Tailwind CSS, VueJS & Alpine.js used for internal projects.
https://madebyshape.co.uk
MIT License
0 stars 0 forks source link

Error on build container, docker and docker-compose command not found #6

Open superpikar opened 1 year ago

superpikar commented 1 year ago

Pardon, I'm having difficulties in running the repo in codespace, because I'm not good at Docker-things.

Looks like to run the server, we need to exec docker command, but the docker and docker-compose is not found. I've tried to replicate other dev setup as well https://www.shoogland.com/2021/11-09-craft-development-in-codespaces.html but I got no luck.

I've pushed my works to feature/setup-codespace and feature/setup-codespace2 branch

Screenshot_675

Another error is ./composer.lock not found, however the file does exist in the project repository

Screenshot_698

Could your update the readme how to properly setup+run the project on Github codespace? 🙏

SamadiPour commented 1 year ago

@sinabehmanesh

sinabehmanesh commented 1 year ago

hello dear @superpikar , sorry for my late reply. i saw your branche setup-codespace2 and the docker-compse file looks complicated, what do you require for your development environment? you need a database for sure to do some CRUD, and ofc a frontend for your project, what else? the docker-compose in setup-codespace2 has too many services in it. you can check docker-compose.yml file in devops branch, it will help you, i have prepared a dockerfile for this project and a docker-compose.yml file that creates a Database, the idea of codespace is that it will provide you with services and anything that you need to develop you project, it is not for production.

about the issues you mentioned:

my help: you can create a new branch, write the documents about how you build your project and i will configure its codespace. but please just pure code and fine docs so i can easily setup the codespace.

thanks, good luck.

sinabehmanesh commented 1 year ago

@stevenjwright

superpikar commented 1 year ago

Hi @sinabehmanesh sorry for the confusion I did make. yes I need those, for the development environment I require LAMP stack as usual (apache/nginx, and mysql/posgre)

I did checkout feature/setup-codespace based on your branch devops, I just modify gulpfile because there was some errors. but I was unable to run docker and docker-compose command.

Screenshot_805

feature/setup-codespace was just my experiment based on internet reference, to test whether the docker command works or not. so please just igonre it 🙏

this project is now handedover to another Tribes dev Taher Kathiriya https://tribesdev.slack.com/archives/C03G49T0PBL/p1670348596542109

regards,