use latest podman release (#8403)

This commit is contained in:
Drew Bailey 2020-07-09 09:28:53 -04:00 committed by GitHub
parent a4b76e0203
commit 01b01f7cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,11 +124,12 @@ mkdir -p /usr/libexec/podman
sudo mv catatonit* /usr/libexec/podman/catatonit sudo mv catatonit* /usr/libexec/podman/catatonit
sudo chmod +x /usr/libexec/podman/catatonit sudo chmod +x /usr/libexec/podman/catatonit
echo "Install podman task driver" echo "Install latest podman task driver"
# install nomad-podman-driver and move to plugin dir # install nomad-podman-driver and move to plugin dir
wget -P /tmp https://github.com/pascomnet/nomad-driver-podman/releases/download/v0.0.3/nomad-driver-podman_linux_amd64.tar.gz latest_podman=$(curl -s https://releases.hashicorp.com/nomad-driver-podman/index.json | jq --raw-output '.versions |= with_entries(select(.key|match("^\\d+\\.\\d+\\.\\d+$"))) | .versions | keys[]' | sort -rV | head -n1)
sudo tar -xf /tmp/nomad-driver-podman_linux_amd64.tar.gz -C /tmp
sudo mv /tmp/nomad-driver-podman/nomad-driver-podman $NOMADPLUGINDIR wget -P /tmp https://releases.hashicorp.com/nomad-driver-podman/${latest_podman}/nomad-driver-podman_${latest_podman}_linux_amd64.zip
sudo unzip /tmp/nomad-driver-podman_${latest_podman}_linux_amd64.zip -d $NOMADPLUGINDIR
sudo chmod +x $NOMADPLUGINDIR/nomad-driver-podman sudo chmod +x $NOMADPLUGINDIR/nomad-driver-podman
# disable systemd-resolved and configure dnsmasq # disable systemd-resolved and configure dnsmasq