Open dvdpluijm opened 3 years ago
Hi @dvdpluijm
Thanks for reporting. I've not run cx-server in a while, but before big sur I'm sure it worked with the "default" setup.
What happens when you run docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock docker version
?
I'd guess it might be a permission issue that prevents mounting the docker socket?
As an alternative solution, I'd suggest running it in a Linux vm if possible.
I'll try to reproduce on my machine with Big Sur, but I'm not sure if it is comparable because I had that same setup running with older macos versions.
Hi @fwilhe ,
Thanks for looking into it!
I will look into running a linux distribution and use it as a host, unfortunately I am not much of a linux guy (yet).
When executing this command:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock docker version
I do not get any permission issues.
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock docker version
Unable to find image 'docker:latest' locally latest: Pulling from library/docker 801bfaa63ef2: Pull complete 4f7dc993c79e: Pull complete d39d95e4997f: Pull complete 1cda4b703d87: Pull complete 54e5375350ea: Pull complete f08cd1b3bb1b: Pull complete 8e17d04e0c68: Pull complete Digest: sha256:b1356a9c0d4de04e7009b34940d6969699ba7e71dd9bb495bd04c01ae618c1e3 Status: Downloaded newer image for docker:latest Client: Docker Engine - Community Version: 20.10.1 API version: 1.41 Go version: go1.13.15 Git commit: 831ebea Built: Tue Dec 15 04:28:35 2020 OS/Arch: linux/amd64 Context: default Experimental: true
Server: Docker Engine - Community Engine: Version: 20.10.0 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: eeddea2 Built: Tue Dec 8 18:58:04 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.4.3 GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b runc: Version: 1.0.0-rc92 GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff docker-init: Version: 0.19.0 GitCommit: de40ad0
Hi,
thanks, that is the expected output. Seems like I can reproduce this issue on my machine, but I can't make any promises on when I find time to look into it.
Contributions would be very appreciated in this area.
Meanwhile, the recommended way to run Cx-Server is on a Linux VM with Docker installed.
Kind regards
Florian
Hi all,
I am trying to get started with: https://sap.github.io/jenkins-library/guidedtour/ But I get stuck on implementing the mtaBuild step.
I'm working through the steps on a fresh installation of Mac OS Big Sur. Also installed Docker Desktop for Mac (Version V20.10.0, API Version 1.41)
Setting up Jenkins went fine:
I used a copy of "cloud-cf-helloworld-nodejs" (branch 1), and took the first steps to create a pipeline. Also configured Jenkins job to fetch project from git. The prepare step is fine at this point.
Next I added the mtaBuild step:
Analyzing the logs "cx-jenkins-master" is not able to execute mtaBuild, an error is thrown "hudson.AbortException: [mtaBuild] Step execution failed (category: undefined). Error: Environment variable "M2_HOME" not set or empty"
Scrolling back up in the logging I think it was initially attempting to spin up "devxci/mbtci:1.0.16.1" and delegate the build task to that image. There I get an error message that tells me the docker daemon is not running / not accessible?
Is it a bug in the cx-server setup somewhere? Should I fix something to get it working on a Mac OS specifically?