DataBiosphere / azul

Metadata indexer and query service used for AnVIL, HCA, LungMAP, and CGP
Apache License 2.0
7 stars 2 forks source link

Updating `act@0.2.62` breaks `make images` target #6277

Open achave11-ucsc opened 4 months ago

achave11-ucsc commented 4 months ago

… when locally building the azul-docker-pycharm & azul-docker-elasticsearch images for testing.

❯ make images
DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}') \
        act \
                --env azul_docker_registry="localhost:5000/" \
                --remote-name github \
                push
INFO[0000] Using docker host 'unix:///Users/achave11/.docker/run/docker.sock', and daemon socket 'unix:///Users/achave11/.docker/run/docker.sock' 
WARN  ⚠ You are using Apple M-series chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠  
[Docker/build] 🚀  Start image=catthehacker/ubuntu:act-latest
[Docker/build]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Docker/build] using DockerAuthConfig authentication for docker pull
[Docker/build]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Docker/build]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
Error: failed to start container: Error response from daemon: error while creating mount source path '/host_mnt/Users/achave11/.docker/run/docker.sock': mkdir /host_mnt/Users/achave11/.docker/run/docker.sock: operation not supported
make: *** [images] Error 1

It seems to be a regression introduced in the latest version of act.

achave11-ucsc commented 4 months ago

Assignee to monitor resolution of upstream issue.

dsotirho-ucsc commented 2 months ago

Assignee to attempt the proposed workaround.

dsotirho-ucsc commented 2 months ago

Assignee to attempt the proposed workaround.

The workaround was unsuccessful. Until this is resolved in a future version of act, I'll be using v0.2.59.

$ cat ~/.actrc
--container-daemon-socket="unix:///Users/daniel/.docker/run/docker.sock"

$ ll /var/run/docker.sock ~/.docker/run/docker.sock
srwxr-xr-x  1 daniel  staff    0 Jul 29 14:26 /Users/daniel/.docker/run/docker.sock=
lrwxr-xr-x@ 1 root    daemon  37 Jul 23 09:15 /var/run/docker.sock@ -> /Users/daniel/.docker/run/docker.sock

$ make start_registry
docker run \
        --rm \
        --detach \
        --publish 5000:5000 \
        --name registry registry:2.7
baaca1a776197b23f135399b2bfa343eaf5340910545ed63f841f10ac13a9456

$ make images
DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}') \
    act \
        --env azul_docker_registry="localhost:5000/" \
        --remote-name origin \
        push
INFO[0000] Using docker host 'unix:///Users/daniel/.docker/run/docker.sock', and daemon socket '"unix:///Users/daniel/.docker/run/docker.sock"'
WARN  ⚠ You are using Apple M-series chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
[Docker/build] 🚀  Start image=catthehacker/ubuntu:act-latest
[Docker/build]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Docker/build] using DockerAuthConfig authentication for docker pull
[Docker/build]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
Error: failed to create container: 'Error response from daemon: invalid mode: /var/run/docker.sock'
make: *** [images] Error 1