#!/bin/sh
# This is a script to install dependencies/packages, create user, and assign necessary permissions in the ubuntu 24 container.
# Used in release smoke tests.

# update apt and install required packages
apt-get update
apt-get install -y tar ca-certificates jq gzip

# Extract the tailpipe binary
tar -xzf /artifacts/linux.tar.gz -C /usr/local/bin

# Make the binary executable
chmod +x /usr/local/bin/tailpipe

# Make the scripts executable
chmod +x /scripts/smoke_test.sh 