mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-25 03:00:48 -05:00
Run smoke tests before releasing (#4273)
This commit is contained in:
20
scripts/prepare_amazonlinux_container.sh
Executable file
20
scripts/prepare_amazonlinux_container.sh
Executable 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
|
||||
Reference in New Issue
Block a user