File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ build-golang-executable:
13
13
14
14
build-online-zip :
15
15
$(CLIENT ) build \
16
+ --arch amd64 \
16
17
-t mirror-registry-online:${RELEASE_VERSION} \
17
18
--build-arg RELEASE_VERSION=${RELEASE_VERSION} \
18
19
--build-arg QUAY_IMAGE=${QUAY_IMAGE} \
@@ -29,6 +30,7 @@ build-online-zip:
29
30
30
31
build-offline-zip :
31
32
$(CLIENT ) build \
33
+ --arch amd64 \
32
34
-t mirror-registry-offline:${RELEASE_VERSION} \
33
35
--build-arg RELEASE_VERSION=${RELEASE_VERSION} \
34
36
--build-arg QUAY_IMAGE=${QUAY_IMAGE} \
Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ VERSION := dev-$(TREEISH)
12
12
# from.
13
13
OLD_VERSION := 1.2.9
14
14
15
+ # VAGRANT_UP_ARGS allows to provide additional arguments to `vagrant up`.
16
+ # Example:
17
+ # make test-install VAGRANT_UP_ARGS='--provider=qemu'
18
+ ifeq ($(shell uname -s) $(shell uname -m) ,Darwin arm64)
19
+ VAGRANT_UP_ARGS := --provider=qemu
20
+ else
21
+ VAGRANT_UP_ARGS :=
22
+ endif
23
+
15
24
all : test-install test-sudo-install test-sudo-upgrade
16
25
17
26
# mirror-registry archive from the current repository.
@@ -36,7 +45,7 @@ $(MAKE) start-vagrant && (set -x; $(1)); ret=$$?; $(MAKE) stop-vagrant && exit $
36
45
endef
37
46
38
47
start-vagrant :
39
- vagrant up
48
+ vagrant up $( VAGRANT_UP_ARGS )
40
49
41
50
stop-vagrant :
42
51
ifneq ($(DEBUG ) , 1)
Original file line number Diff line number Diff line change 2
2
# vi: set ft=ruby :
3
3
4
4
Vagrant . configure ( "2" ) do |config |
5
- config . vm . box = "generic/fedora37"
5
+ config . vm . box = "generic/fedora36"
6
+ config . vm . box_architecture = "amd64"
6
7
config . vm . network "forwarded_port" , guest : 8080 , host : 8080
7
8
config . vm . network "forwarded_port" , guest : 8443 , host : 8443
8
9
config . vm . provider "virtualbox" do |vb |
9
10
vb . memory = "3072"
10
11
end
12
+ config . vm . provider "qemu" do |qe |
13
+ qe . arch = "x86_64"
14
+ qe . machine = "q35"
15
+ qe . cpu = "max"
16
+ qe . smp = "cpus=4,sockets=1,cores=4,threads=1"
17
+ qe . memory = "3072"
18
+ qe . net_device = "virtio-net-pci"
19
+ qe . extra_qemu_args = %w( -accel tcg,thread=multi,tb-size=512 )
20
+ qe . forward_port ( "guestssh" , 22 , 50021 , auto : true )
21
+ end
11
22
config . vm . provision "shell" , inline : <<-SHELL
23
+ set -x
24
+
25
+ # On macOS with qemu, the systemd-resolved does not work properly. To work
26
+ # around this issue, we disable the systemd-resolved and use Google's DNS.
27
+ systemctl stop systemd-resolved
28
+ systemctl disable systemd-resolved
29
+ rm -f /etc/resolv.conf
30
+ echo "nameserver 8.8.8.8" >/etc/resolv.conf
31
+
12
32
dnf install -y \
13
33
acl \
14
34
openssl \
You can’t perform that action at this time.
0 commit comments