pontoon
pontoon copied to clipboard
`make build` fails because the Makefile uses `docker-compose` which isn't included with Docker Desktop
The Makefile uses:
DC := $(shell which docker-compose)
This causes the build to fail on systems in which docker-compose (hyphenated) isn't included, instead you have docker compose (not hyphenated).
Running make build results in:
which: no docker-compose in (/home/syedmehdi/.local/bin:/home/syedmehdi/bin:/usr/local/bin:/usr/bin)
...[I removed a few lines from the output here]
Generating server.env...
"" build --build-arg USER_ID=1000 --build-arg GROUP_ID=1000 server
/bin/sh: line 1: : command not found
make: *** [Makefile:57: build-server] Error 127
Steps to reproduce
- Clone the repo
- Follow the setup guide
- Run
make build
A simple fix: I was able to fix this by installing docker-compose separately. So, the setup guide should add a step that installs docker-compose (or) Update Makefile to use 'docker compose' instead I think...?
Reference: This article explains the difference between docker compose and docker-compose
See https://github.com/mozilla/pontoon/pull/3662