Skip to content

Commit

Permalink
FIX: Pass lxd socket to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Oct 6, 2024
1 parent a80f377 commit c93a73d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ container-arch-%: build-in-docker-arch-%
@echo "Full in-docker image ${TAG}-$* completed"

test-in-docker: docker-builder
docker run --rm -v `pwd`:/gopath/src/github.com/Fred78290/kubernetes-cloud-autoscaler/ kubernetes-cloud-autoscaler-builder:latest bash \
docker run --rm -v `pwd`:/gopath/src/github.com/Fred78290/kubernetes-cloud-autoscaler/ \
-v /var/snap/lxd/common/lxd/unix.socket:/var/snap/lxd/common/lxd/unix.socket \
kubernetes-cloud-autoscaler-builder:latest bash \
-c 'cd /gopath/src/github.com/Fred78290/kubernetes-cloud-autoscaler && ./test/bin/lxd.sh && ./test/bin/vsphere.sh && ./test/bin/aws.sh'

.PHONY: all build test-in-docker test-unit clean docker-builder build-in-docker push-image push-manifest
2 changes: 1 addition & 1 deletion test/config/lxd/provider.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lxd-server-url": "unix:",
"lxd-server-url": "unix:/var/snap/lxd/common/lxd/unix.socket",
"container-type": "container",
"storage-pool": "default",
"profiles": [
Expand Down

0 comments on commit c93a73d

Please sign in to comment.