mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 09:58:53 -05:00
21 lines
724 B
Bash
Executable File
21 lines
724 B
Bash
Executable File
#!/bin/sh
|
|
# This is a a script to install dependencies/packages, create user, and assign necessary permissions in the centos 9 container.
|
|
# Used in release smoke tests.
|
|
|
|
# update yum and install required packages
|
|
yum install -y epel-release
|
|
yum install -y tar 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 |