pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

`make build` fails because the Makefile uses `docker-compose` which isn't included with Docker Desktop

Open Infamous003 opened this issue 6 months ago • 1 comments

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

  1. Clone the repo
  2. Follow the setup guide
  3. 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

Infamous003 avatar Jun 14 '25 12:06 Infamous003

See https://github.com/mozilla/pontoon/pull/3662

flodolo avatar Jun 14 '25 12:06 flodolo