Skip to content

Commit

Permalink
update vagrant/fedora to fedora-32
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed May 24, 2020
1 parent ec8f1ae commit f3cfbc7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
14 changes: 8 additions & 6 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Using
1. Install vagrant
2. Install vagrant plugins:

```sh
```
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-reload
```

**Launch**:

```sh
```
cd vagrant/fedora
vagrant up
```
Expand All @@ -32,12 +32,14 @@ to install all the packages and reboot at least once. You may want to use
`vagrant halt` instead of `destroy` to suspend the VM until you're done
with dev/test.

The root of the project will be mounted as a host folder to `/src`.
The root of the project will be mounted as a host folder to `/vault-token-helper`.

Run tests from an SSH or GUI Terminal session in the fedora VM:

```sh
cd /src
```
cd /vault-token-helper
make test
# or:
go test -v ./...
```

Expand All @@ -49,7 +51,7 @@ go test -v ./...

**Launch**:

```sh
```
cd vagrant/windows
vagrant up
```
Expand Down
21 changes: 9 additions & 12 deletions vagrant/fedora/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#

Vagrant.configure("2") do |config|
# https://app.vagrantup.com/generic/boxes/fedora29
config.vm.box = "generic/fedora29"
config.vm.box_version = "1.9.14"
# https://app.vagrantup.com/generic/boxes/fedora32
config.vm.box = "generic/fedora32"
config.vm.box_version = '3.0.2'

config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = 1024
vb.memory = 2048
vb.cpus = 2
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
Expand Down Expand Up @@ -44,17 +44,14 @@ SHELL
# pass
config.vm.provision "shell", inline: "sudo dnf install -y pass"

config.vm.provision "shell", inline: <<-SHELL
sudo rpm --import https://mirror.go-repo.io/fedora/RPM-GPG-KEY-GO-REPO
curl -s https://mirror.go-repo.io/fedora/go-repo.repo | sudo tee /etc/yum.repos.d/go-repo.repo
sudo dnf install -y golang
SHELL
# install go
config.vm.provision "shell", inline: "sudo dnf install -y golang"

# vagrant plugin install vagrant-reload
config.vm.provision :reload

# mount the project into /src
config.vm.synced_folder "../..", "/src"
# mount the project into /vault-token-helper
config.vm.synced_folder "../..", "/vault-token-helper"
# TODO: remove below when done using local fork
config.vm.synced_folder "../../../keyring", "/keyring"
# config.vm.synced_folder "../../../keyring", "/keyring"
end

0 comments on commit f3cfbc7

Please sign in to comment.