mattermost / mattermost/docker

docker-compose.yml invalid due to blank lines

Open
#133 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
533
Forks
284
PR merge metrics
No merged PRs in 30d

Description

Checking out the repository and running it with docker compose will fail unless the blank lines in docker-compose.yml are removed.
My guess is, that the yaml parser got less tolerant towards invalid syntax.

Command:
$ sudo docker compose -f docker-compose.yml -f docker-compose.nginx.yml up

Running on:

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ apt list "docker*"
Auflistung… Fertig
docker-buildx-plugin/bullseye,now 0.10.4-1~debian.11~bullseye amd64  [installiert]
docker-ce-cli/bullseye,now 5:23.0.4-1~debian.11~bullseye amd64  [installiert]
docker-ce-rootless-extras/bullseye,now 5:23.0.4-1~debian.11~bullseye amd64  [Installiert,automatisch]
docker-ce/bullseye,now 5:23.0.4-1~debian.11~bullseye amd64  [installiert]
docker-clean/stable 2.0.4-3 all
docker-compose-plugin/bullseye,now 2.17.2-1~debian.11~bullseye amd64  [installiert]
docker-compose/stable 1.25.0-1 all
docker-doc/stable 20.10.5+dfsg1-1+deb11u2 all
docker-registry/stable 2.7.1+ds2-7+b6 amd64
docker-scan-plugin/bullseye 0.23.0~debian-bullseye amd64
docker.io/stable 20.10.5+dfsg1-1+deb11u2 amd64
docker2aci/stable 0.17.2+dfsg-2.1+b5 amd64
docker/stable 1.5-2 all

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing docker-compose.yml and docker-compose.nginx.yml, then run the reported docker compose command on a comparable Docker setup. Verify the blank-line syntax in the compose files and confirm that the command starts successfully without the reported parsing failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.