Skip to content

Commit

Permalink
Linux SDK docker: add Rocky Linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jul 7, 2021
1 parent e940684 commit c0e4f3c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
29 changes: 29 additions & 0 deletions tools/docker/natron-sdk-rockylinux8/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Dockerfile
build-Linux-installer.sh
build-Linux-sdk.sh
build-OSX-installer.sh
build-Windows-installer.sh
build-natron.sh
build-plugins.sh
checkout-repository.sh
common.sh
compiler-common.sh
createBuildOptionsFile.sh
ensure-ssh-identity.sh
gen-natron-doc.sh
genDllVersions.sh
gitRepositories.sh
launchBuildMain.sh
linuxStartupJenkins.sh
macStartupJenkins.sh
manageBuildOptions.sh
manageLog.sh
msysStartupJenkins.sh
push.sh
runUnitTests.sh
uploadArtifactsMain.sh
zip-python.sh
include
pkg
builds
artifacts
15 changes: 15 additions & 0 deletions tools/docker/natron-sdk-rockylinux8/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
cd `dirname "$0"`
cp ../../jenkins/*.sh .
(cd ../../jenkins/; tar cf - include) | tar xf -
export ROCKY=8
LABEL="natrongithub/natron-sdk${UBUNTU+-ubuntu}${UBUNTU:-}${CENTOS+-centos}${CENTOS:-}${ROCKY+-rockylinux}${ROCKY:-}${DTS+-dts}${DTS:-}"
env GEN_DOCKERFILE=1 ../../jenkins/include/scripts/build-Linux-sdk.sh > Dockerfile
docker build -t "${LABEL}:latest" .
#docker build --no-cache -t "${LABEL}:latest" .
echo "please execute:"
#echo "docker-squash ${LABEL}:latest"
echo "docker login"
echo "docker tag ${LABEL}:latest ${LABEL}:$(date -u +%Y%m%d)"
echo "docker push ${LABEL}:latest"
echo "docker push ${LABEL}:$(date -u +%Y%m%d)"
3 changes: 2 additions & 1 deletion tools/jenkins/include/scripts/build-Linux-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ EOF
fi
if [ "${CENTOS:-7}" -ge 8 ] || [ -n "${ROCKY+x}" ]; then
# Enable powertools on CentOS >= 8 / Rocky Linux 8
# https://www.how2shout.com/linux/how-to-enable-powertools-repository-on-rocky-linux-8/
# https://computingforgeeks.com/enable-powertools-repository-on-centos-rhel-linux/
DTSYUM+="dnf -y install dnf-plugins-core && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf config-manager --set-enabled PowerTools && dnf -y groupinstall 'Development Tools' && "
DTSYUM+="dnf -y install dnf-plugins-core && dnf -y install epel-release && dnf config-manager --set-enabled powertools && dnf -y update && dnf -y groupinstall 'Development Tools' && "
YUM_DEVEL_EXTRA=""
else
YUM_DEVEL_EXTRA="libXevie-devel libdmx-devel" # only available on CentOS <= 7
Expand Down

0 comments on commit c0e4f3c

Please sign in to comment.