"Building an omnibus-gitlab package locally" syntax incompatibility with docker 20.10.7
Following these instructions on mac 12.3.1, docker 20.10.7, results in an error:
[master|]~/omnibus-gitlab Ω export BUILDER_IMAGE_REVISION=3.3.1
[master|]~/omnibus-gitlab Ω docker run -v ~/omnibus-gitlab:~/omnibus-gitlab -it registry.gitlab.com/gitlab-org/gitlab-omnibus-builder/debian_10:${BUILDER_IMAGE_REVISION} bash
docker: Error response from daemon: invalid volume specification: '/host_mnt/Users/plato/omnibus-gitlab:~/omnibus-gitlab': invalid mount config for type "bind": invalid mount path: '~/omnibus-gitlab' mount path must be absolute.
I attempted to fix it with an absolute container path:
! [master|]~/omnibus-gitlab Ω docker run -v ~/omnibus-gitlab:/root/omnibus-gitlab -it registry.gitlab.com/gitlab-org/gitlab-omnibus-builder/debian_10:${BUILDER_IMAGE_REVISION} bash
root@7a6578d6e756:/# export COMPILE_ASSETS=true
root@7a6578d6e756:/# cd ~/omnibus-gitlab
root@7a6578d6e756:~/omnibus-gitlab# bundle install | tee ~/gitlab.log
root@7a6578d6e756:~/omnibus-gitlab# bundle binstubs --all | tee ~/gitlab2.log
root@7a6578d6e756:~/omnibus-gitlab# bundle exec rake build:project
This is as far as I got, my build fails to build prometheus with go: creating work dir: mkdir /tmp/go-build2112577204: no space left on device
. My default assumption is that's an unrelated issue, but I won't rule out my volume mount change having side effects. Build log attached.gitlab-build-disk.txt