Skip to content

Commit

Permalink
Merge pull request #997 from ge-high-assurance/ji/use-current-vagrant
Browse files Browse the repository at this point in the history
Use most current Ubuntu 22.04 vagrant box
  • Loading branch information
chrisage authored Aug 31, 2023
2 parents 6060403 + af70ad5 commit 51e153a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-virtual-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:

- name: Download base box for virtual machine
run: |
curl -LOSfs https://app.vagrantup.com/ubuntu/boxes/jammy64/versions/20230720.0.0/providers/virtualbox.box
curl -LOSfs https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64-vagrant.box
mkdir -p RACK/rack-box/jammy64
tar -xf virtualbox.box -C RACK/rack-box/jammy64
rm -f virtualbox.box
tar -xf jammy-server-cloudimg-amd64-vagrant.box -C RACK/rack-box/jammy64
rm -f jammy-server-cloudimg-amd64-vagrant.box
- name: Build rack-box virtual machine
run: |
Expand Down
7 changes: 4 additions & 3 deletions rack-box/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ although we will mention each file here as well:
--exclude=.github --exclude=assist --exclude=cli --exclude=rack-box
--exclude=tests --exclude=tools RACK`)

- `jammy64\*`: Download latest Ubuntu 22.04 vagrant box from
<https://app.vagrantup.com/ubuntu/boxes/jammy64>, unpacking it in a
`jammy64` folder (`tar -xf virtualbox.box -C RACK/rack-box/jammy64`)
- `jammy64\*`: Download current Ubuntu 22.04 vagrant box from
<https://cloud-images.ubuntu.com/jammy/current>, unpacking it in a
`jammy64` folder (`tar -xf jammy-server-cloudimg-amd64-vagrant.box
-C RACK/rack-box/jammy64`)

Once you have put these files into the `files` subdirectory, skip to
[Build the rack-box images](#Build-the-rack-box-images) for the next
Expand Down
2 changes: 1 addition & 1 deletion rack-box/scripts/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi

# Upgrade all packages

apt-get update -yqq
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update -yqq
apt-get upgrade -yqq

# Clean apt cache and temporary files
Expand Down
2 changes: 1 addition & 1 deletion rack-box/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd /tmp/files

export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
apt-get update -yqq
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update -yqq
apt-get install -yqq ca-certificates software-properties-common
cp GE_External_Root_CA_2_1.crt /usr/local/share/ca-certificates
update-ca-certificates
Expand Down

0 comments on commit 51e153a

Please sign in to comment.