File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ elif [ "`which yum`" ]; then
3939 PACKAGE_MANAGER=yum
4040elif [ " ` which zypper` " ]; then
4141 PACKAGE_MANAGER=zypper
42+ elif [ " ` which apk` " ]; then
43+ PACKAGE_MANAGER=apk
4244else
4345 PACKAGE_MANAGER=apt-get
4446 apt-get update --allow-releaseinfo-change # flag needed for when debian version changes
4951R_CUSTOM_CCACHE=` echo $R_CUSTOM_CCACHE | tr ' [:upper:]' ' [:lower:]' `
5052if [ ${R_CUSTOM_CCACHE} = " true" ]; then
5153 # install ccache
52- $PACKAGE_MANAGER install -y epel-release || true
53- $PACKAGE_MANAGER install -y ccache
54+ if [ " $PACKAGE_MANAGER " = " apk" ]; then
55+ $PACKAGE_MANAGER add ccache
56+ else
57+ $PACKAGE_MANAGER install -y epel-release || true
58+ $PACKAGE_MANAGER install -y ccache
59+ fi
5460
5561 mkdir -p ~ /.R
5662 echo " VER=
7379
7480# Install rsync for bundling cpp source and curl to make sure it is installed on all images,
7581# cmake is now a listed sys req.
76- $PACKAGE_MANAGER install -y rsync cmake curl
82+ if [ " $PACKAGE_MANAGER " = " apk" ]; then
83+ $PACKAGE_MANAGER add rsync cmake curl
84+ else
85+ $PACKAGE_MANAGER install -y rsync cmake curl
86+ fi
7787
7888# Update clang version to latest available.
7989# This is only for rhub/clang20. If we change the base image from rhub/clang20,
You can’t perform that action at this time.
0 commit comments