website
website copied to clipboard
Review and update docker command in website setup
Describe the problem
I was trying to build this site locally and faced issues with the command make setup
. I am new to docker so I could not understand the error that I got.
this is the error I got:
touch .env
make clean
make[1]: Entering directory '/home/somanna/Scripts/flutter/website'
rm -rf _site .jekyll* src/.jekyll* *.log tmp .dart_tool
make[1]: Leaving directory '/home/somanna/Scripts/flutter/website'
docker-compose build --no-cache site
make: docker-compose: No such file or directory
make: *** [Makefile:62: setup] Error 127
Expected fix
I wonder if docker-compose
can be replaced with docker compose
as the earlier one is no longer available. I have the necessary changes, so I guess I can create a pull request.
Additional context
after a million Google searches later I stumbled upon this post from starkoverflow which says that docker-compose has been deprecated so I am supposed to use docker compose
instead. I made a few changes to the makefile, removing dashes from docker-compose
to make it docker compose
. Now I can successfully build the site and use the docs.