al-folio
al-folio copied to clipboard
Add Docker-compose file for windows WSL compatibility
This file makes it easier for windows users to use docker. (Closes #829)
Previous to this commit, those how use Windows have to install Ubuntu inside windows (via WSL) and run our commands. Now they can run it by just typing docker-compose up
.
The main problem was that
./bin/dockerhub_run.sh
command was written withBash
in mind and you had to change it a little bit to make it compatible with windowsPowershell
. We shouldn't have two scripts. This is why adding adocker-compose.yml
file is necessary.
This commit changes the command users should type if they want to use docker. I've understood that using docker-compose
is pretty much standard and it works with all operating systems (specially Windows).
Note: we still keep previous commands for compatibility (For previous commands I mean
./bin/dockerhub_run.sh
and etc. ). This is because some users are accustomed to using it this way. We shouldn't break their habit.
With this commit, we can use docker pre-built image using:
docker-compose up
we can build a custom image with:
docker-compose -f docker-local.yml build
and we can use locally built image using:
docker-compose -f docker-local.yml up
I added two parameters --verbose
and --livereload
. I have to see if those parameters add any problems here.
I have tested this commit in Windows, and it is working well. Any comments? @alshedivat @rohandebsarkar