mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
Debian 11 support
This commit is contained in:
@@ -53,4 +53,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo rpm -i pkg/firezone*.rpm
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
@@ -47,4 +47,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo rpm -i pkg/firezone*.rpm
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
@@ -53,4 +53,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
CC=/usr/bin/gcc-10 bin/omnibus build firezone
|
||||
|
||||
sudo dpkg -i pkg/firezone*.deb
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
60
.ci/provision/debian_11.sh
Executable file
60
.ci/provision/debian_11.sh
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
set -xe
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install prerequisites
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -y -q \
|
||||
dpkg-dev \
|
||||
zlib1g-dev \
|
||||
libssl-dev \
|
||||
openssl \
|
||||
bzip2 \
|
||||
procps \
|
||||
rsync \
|
||||
ca-certificates \
|
||||
build-essential \
|
||||
git \
|
||||
gnupg \
|
||||
curl \
|
||||
unzip \
|
||||
locales \
|
||||
net-tools \
|
||||
systemd \
|
||||
wireguard-dkms
|
||||
|
||||
# Set locale
|
||||
sudo sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen
|
||||
sudo locale-gen
|
||||
export LANG=en_US.UTF-8
|
||||
export LANGUAGE=en_US:en
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
# Install asdf
|
||||
if [ ! -d $HOME/.asdf ]; then
|
||||
git clone --depth 1 https://github.com/asdf-vm/asdf.git $HOME/.asdf
|
||||
fi
|
||||
grep -qxF '. $HOME/.asdf/asdf.sh' $HOME/.bashrc || echo '. $HOME/.asdf/asdf.sh' >> $HOME/.bashrc
|
||||
grep -qxF '. $HOME/.asdf/completions/asdf.bash' $HOME/.bashrc || echo '. $HOME/.asdf/completions/asdf.bash' >> $HOME/.bashrc
|
||||
. $HOME/.asdf/asdf.sh
|
||||
asdf list ruby || asdf plugin-add ruby
|
||||
cd /vagrant
|
||||
asdf install
|
||||
|
||||
# Install omnibus
|
||||
cd omnibus
|
||||
gem install bundler
|
||||
bundle install --binstubs
|
||||
|
||||
# Build omnibus package
|
||||
sudo mkdir -p /opt/firezone
|
||||
sudo chown -R ${USER} /opt/firezone
|
||||
CC=/usr/bin/gcc-10 bin/omnibus build firezone
|
||||
|
||||
sudo dpkg -i pkg/firezone*.deb
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
@@ -43,4 +43,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo rpm -i pkg/firezone*.rpm
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
@@ -43,4 +43,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo rpm -i pkg/firezone*.rpm
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
@@ -52,4 +52,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo dpkg -i pkg/firezone*.deb
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
@@ -52,4 +52,8 @@ sudo chown -R ${USER} /opt/firezone
|
||||
bin/omnibus build firezone
|
||||
|
||||
sudo dpkg -i pkg/firezone*.deb
|
||||
sudo firezone-ctl reconfigure
|
||||
|
||||
# Usually fails the first time
|
||||
sudo firezone-ctl reconfigure || true
|
||||
|
||||
sudo firezone-ctl restart
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -77,6 +77,8 @@ jobs:
|
||||
os: ubuntu_18.04
|
||||
- port: 8806
|
||||
os: ubuntu_20.04
|
||||
- port: 8807
|
||||
os: debian_11
|
||||
# if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -90,6 +92,7 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- debian_10
|
||||
- debian_11
|
||||
- ubuntu_18.04
|
||||
- ubuntu_20.04
|
||||
- centos_7
|
||||
|
||||
7
Vagrantfile
vendored
7
Vagrantfile
vendored
@@ -86,4 +86,11 @@ Vagrant.configure("2") do |config|
|
||||
ubuntu2004.vm.network "forwarded_port", guest: 8800, host: ENV.fetch("PORT", 8806)
|
||||
ubuntu2004.vm.provision "shell", path: ".ci/provision/ubuntu_20.04.sh", privileged: false
|
||||
end
|
||||
|
||||
config.vm.define "debian_11" do |debian11|
|
||||
debian11.vm.box = "generic/debian11"
|
||||
debian11.vm.box_url = "https://home.cloudfirenetwork.com/vb/debian11.box"
|
||||
debian11.vm.network "forwarded_port", guest: 8800, host: ENV.fetch("PORT", 8807)
|
||||
debian11.vm.provision "shell", path: ".ci/provision/debian_11.sh", privileged: false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user