-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_platforms.sh
executable file
·42 lines (35 loc) · 1.12 KB
/
build_platforms.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
mkdir -p dist
mkdir -p assets
mkdir -p scripts
# comma separated list of package groups
packages=`echo "requests,requests boto3,bofhexcuse" | base64`
# Alpine platform
echo "Building for Alpine and Python packages: ${packages}"
platform="alpine" test_platforms="alpine:latest" ./build_and_test_platform.sh $packages
retval=$?
if [[ $retval -ne 0 ]]; then
exit $retval
fi
# RHEL platform - Use Alma Linux to simulate RHEL8
echo "Building for RHEL and Python packages: ${packages}"
platform="rhel8" test_platforms="almalinux:latest" ./build_and_test_platform.sh ${packages}
retval=$?
if [[ $retval -ne 0 ]]; then
exit $retval
fi
# RHEL platform - Use Alma Linux to simulate RHEL7
echo "Building for RHEL7 and Python packages: ${packages}"
platform="rhel7" test_platforms="centos:7" ./build_and_test_platform.sh ${packages}
retval=$?
if [[ $retval -ne 0 ]]; then
exit $retval
fi
# AMZN2 platform - Amazon Linux 2
echo "Building for RHEL and Python packages: ${packages}"
platform="amzn2" test_platforms="amazonlinux:latest" ./build_and_test_platform.sh ${packages}
retval=$?
if [[ $retval -ne 0 ]]; then
exit $retval
fi
exit 0