focalboard
focalboard copied to clipboard
Bug: docker-compose: main.go not found?
Steps to reproduce the behavior
1.$ git clone "git clone "https://github.com/mattermost/focalboard.git" 2. cd into docker with $ cd focalboard/docker 3. Run $ docker-compose -f docker-compose-db-nginx.yml up 4. See Error: => CANCELED [nodebuild 4/4] RUN npm install --no-optional && npm run pack 72.6s => [gobuild 2/5] WORKDIR /go/src/focalboard 1.0s => [gobuild 3/5] ADD . /go/src/focalboard 0.9s => ERROR [gobuild 4/5] RUN make server-linux 0.5s
[gobuild 4/5] RUN make server-linux: #12 0.383 go run ./mattermost-plugin/build/gowork/main.go #12 0.398 stat ./mattermost-plugin/build/gowork/main.go: no such file or directory #12 0.399 make: *** [Makefile:43: setup-go-work] Error 1
executor failed running [/bin/sh -c make server-linux]: exit code: 2 ERROR: Service 'app' failed to build : Build failed
Expected behavior
I excepted a message like: Container/ Stack is running @localhost:port or something
Screenshots (optional)
`(base) oli92@Mac-mini-von-Oliver RAM % git clone "https://github.com/mattermost/focalboard.git"
Cloning into 'focalboard'...
remote: Enumerating objects: 39079, done.
remote: Counting objects: 100% (591/591), done.
remote: Compressing objects: 100% (361/361), done.
remote: Total 39079 (delta 368), reused 415 (delta 224), pack-reused 38488
Receiving objects: 100% (39079/39079), 35.98 MiB | 710.00 KiB/s, done.
Resolving deltas: 100% (29754/29754), done.
(base) oli92@Mac-mini-von-Oliver RAM % cd focalboard/docker
(base) oli92@Mac-mini-von-Oliver docker % docker-compose -f docker-compose-db-nginx.yml up
Creating network "docker_proxy" with the default driver
Creating network "docker_default" with the default driver
Pulling proxy (jwilder/nginx-proxy:latest)...
latest: Pulling from jwilder/nginx-proxy
dc1f00a5d701: Already exists
cfeb1af30280: Pull complete
8b393d1865ed: Pull complete
0e1c4d45c50e: Pull complete
3b5fbcc85c0d: Pull complete
05bbe9de3bca: Pull complete
8ef3c56c87f7: Pull complete
e3d89cb7fb33: Pull complete
51c730e195b3: Pull complete
5f61d2e108a8: Pull complete
da8e5801fb3e: Pull complete
e13fe796112f: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:a68e451e39aade9242cba7ad3e7b284519daa0c53b7c9f65809f37de525e9baf
Status: Downloaded newer image for jwilder/nginx-proxy:latest
Building app
[+] Building 124.7s (16/22)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.12kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 122B 0.1s
=> [internal] load metadata for gcr.io/distroless/base-debian10@sha256:d2ce069a83a6407e98c7e0844f4172565f439dab683157bf93b6de20c5b46155 3.0s
=> [internal] load metadata for docker.io/library/node:16.3.0@sha256:ca6daf1543242acb0ca59ff425509eab7defb9452f6ae07c156893db06c7a9a4 4.0s
=> [internal] load metadata for docker.io/library/golang:1.18.3@sha256:b203dc573d81da7b3176264bfa447bd7c10c9347689be40540381838d75eebef 4.0s
=> [internal] load build context 5.3s
=> => transferring context: 67.59MB 5.3s
=> [gobuild 1/5] FROM docker.io/library/golang:1.18.3@sha256:b203dc573d81da7b3176264bfa447bd7c10c9347689be40540381838d75eebef 117.3s
=> => resolve docker.io/library/golang:1.18.3@sha256:b203dc573d81da7b3176264bfa447bd7c10c9347689be40540381838d75eebef 0.0s
=> => sha256:b203dc573d81da7b3176264bfa447bd7c10c9347689be40540381838d75eebef 2.35kB / 2.35kB 0.0s
=> => sha256:c6edb1d568eeb978f3273dd71d09a0ea574227b20e310f00a895b8fc2ecc35cf 7.12kB / 7.12kB 0.0s
=> => sha256:f9dd8baf438f408e37393c61dcd6daa467d87014c98def6469f369e825152aa1 1.80kB / 1.80kB 0.0s
=> => sha256:a9d4d985d43a589369b9913a1e53ea26e5ba547069037ffa31021650476d1ef3 81.08MB / 81.08MB 80.7s
=> => sha256:1096769cc31ad53f4ba0b4224d714998364a900c205205f3576656fdd7a45cb1 108.88MB / 108.88MB 109.6s
=> => sha256:0dd9ad2436d2d1f4f8cba6329e84ff3a1ec8017654f4d7d6fb0de8bb349b0400 127B / 127B 9.5s
=> => extracting sha256:a9d4d985d43a589369b9913a1e53ea26e5ba547069037ffa31021650476d1ef3 5.5s
=> => extracting sha256:1096769cc31ad53f4ba0b4224d714998364a900c205205f3576656fdd7a45cb1 6.8s
=> => extracting sha256:0dd9ad2436d2d1f4f8cba6329e84ff3a1ec8017654f4d7d6fb0de8bb349b0400 0.0s
=> [stage-2 1/7] FROM gcr.io/distroless/base-debian10@sha256:d2ce069a83a6407e98c7e0844f4172565f439dab683157bf93b6de20c5b46155 9.0s
=> => resolve gcr.io/distroless/base-debian10@sha256:d2ce069a83a6407e98c7e0844f4172565f439dab683157bf93b6de20c5b46155 0.0s
=> => sha256:d2ce069a83a6407e98c7e0844f4172565f439dab683157bf93b6de20c5b46155 1.67kB / 1.67kB 0.0s
=> => sha256:99e93da06a6d4ab7afd80e144172c01fb2875fcb7c451565f209d797c18c57c7 590B / 590B 0.0s
=> => sha256:e7016ca976b79f9577abc17dd631200dfb4867ba9345f2ec67c9f99a31385276 619B / 619B 0.0s
=> => sha256:c48e4f4f069400e2c5df3ac1f83cda6f18c6155705477aefa9cc55942b457da4 657.98kB / 657.98kB 1.9s
=> => sha256:3b35b98e301107aa477081d86f5d90d592d589d378ec8f1d373cb52b26b707b1 7.11MB / 7.11MB 7.9s
=> => extracting sha256:c48e4f4f069400e2c5df3ac1f83cda6f18c6155705477aefa9cc55942b457da4 2.8s
=> => extracting sha256:3b35b98e301107aa477081d86f5d90d592d589d378ec8f1d373cb52b26b707b1 1.0s
=> [nodebuild 1/4] FROM docker.io/library/node:16.3.0@sha256:ca6daf1543242acb0ca59ff425509eab7defb9452f6ae07c156893db06c7a9a4 47.5s
=> => resolve docker.io/library/node:16.3.0@sha256:ca6daf1543242acb0ca59ff425509eab7defb9452f6ae07c156893db06c7a9a4 0.0s
=> => sha256:ca6daf1543242acb0ca59ff425509eab7defb9452f6ae07c156893db06c7a9a4 1.21kB / 1.21kB 0.0s
=> => sha256:332b9b16a5530229e9b7c8432edf308b513eba509a3c852416a7895ee8672610 2.21kB / 2.21kB 0.0s
=> => sha256:a6abb7a3800e0fe3a6b4df155a3cf5dae7a6b4fc3b5d97dcbf2061d94ec33a02 7.80kB / 7.80kB 0.0s
=> => sha256:86a7b2799124118988d864638ea58e7d23940704c93480adceeffc42c0da180f 4.21kB / 4.21kB 10.8s
=> => extracting sha256:86a7b2799124118988d864638ea58e7d23940704c93480adceeffc42c0da180f 0.1s
=> => sha256:026d4a372991b68e97a69fcc43fe3a6bef168bfc322e62a899c882027b16a0ac 34.62MB / 34.62MB 44.0s
=> => sha256:99f21314000640c58066ac1420d897df11b439c0bdbeec058dd8d6b906284975 2.29MB / 2.29MB 47.0s
=> => extracting sha256:026d4a372991b68e97a69fcc43fe3a6bef168bfc322e62a899c882027b16a0ac 2.9s
=> => extracting sha256:99f21314000640c58066ac1420d897df11b439c0bdbeec058dd8d6b906284975 0.1s
=> => sha256:49285d4db505900681beb5e96a6db36d62032ee80b0a510150d677b3574f7142 284B / 284B 47.4s
=> => extracting sha256:49285d4db505900681beb5e96a6db36d62032ee80b0a510150d677b3574f7142 0.0s
=> [stage-2 2/7] WORKDIR /opt/focalboard 0.4s
=> [nodebuild 2/4] WORKDIR /webapp 0.2s
=> [nodebuild 3/4] ADD webapp/ /webapp 0.1s
=> CANCELED [nodebuild 4/4] RUN npm install --no-optional && npm run pack 72.6s
=> [gobuild 2/5] WORKDIR /go/src/focalboard 1.0s
=> [gobuild 3/5] ADD . /go/src/focalboard 0.9s
=> ERROR [gobuild 4/5] RUN make server-linux 0.5s
[gobuild 4/5] RUN make server-linux: #12 0.383 go run ./mattermost-plugin/build/gowork/main.go #12 0.398 stat ./mattermost-plugin/build/gowork/main.go: no such file or directory #12 0.399 make: *** [Makefile:43: setup-go-work] Error 1
executor failed running [/bin/sh -c make server-linux]: exit code: 2 ERROR: Service 'app' failed to build : Build failed (base) oli92@Mac-mini-von-Oliver docker % cd focalboard/docker `
Edition and Platform
- Edition: latest main branch
- Version: latest main branch
- Browser and OS: tested with m1 mac/Monteray 12.4 AND Linux Manjaro 21.3.6
Additional context (optional)
I have the same issue too
If it helps, it looks like the issue is that the mattermost-plugin
folder is listed in the .dockerignore file, therefore it is not copied into the image at this step of the Dockerfile. This causes the following step of the Dockerfile to fail when it reaches this point of the Makefile.
I am not familiar with the project so I don't know if the right solution is to simply remove the folder name from the .dockerignore file.
@wiggin77, appears to be related to the multi-product architecture changes?
Fixed via https://github.com/mattermost/focalboard/pull/3517