Run smoke tests before releasing (#4273)

This commit is contained in:
Puskar Basu
2024-05-23 14:05:29 +05:30
committed by GitHub
parent 663f4031ea
commit 789bb15bf9
8 changed files with 356 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# This is a a script to install dependencies/packages, create user, and assign necessary permissions in the amazonlinux 2023 container.
# Used in release smoke tests.
# update yum and install required packages
yum install -y shadow-utils tar gzip ca-certificates jq
# Extract the steampipe binary
tar -xzf /artifacts/linux.tar.gz -C /usr/local/bin
# Create user, since steampipe cannot be run as root
useradd -m steampipe
# Ensure the binary is executable and owned by steampipe and is executable
chown steampipe:steampipe /usr/local/bin/steampipe
chmod +x /usr/local/bin/steampipe
# Ensure the script is executable
chown steampipe:steampipe /scripts/smoke_test.sh
chmod +x /scripts/smoke_test.sh