mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-06-27 17:01:10 -04:00
97 lines
2.6 KiB
Modula-2
97 lines
2.6 KiB
Modula-2
Bootstrap: docker
|
|
From: ubuntu:22.04
|
|
|
|
|
|
%files
|
|
install_boost_openssl.sh .
|
|
openssl-package.deb .
|
|
boost-package.deb .
|
|
|
|
%post
|
|
echo "Setting up the environment..."
|
|
|
|
|
|
touch /var/log/apt/term.log
|
|
if [ -f /var/log/apt/term.log ]; then
|
|
chown root:adm /var/log/apt/term.log || true
|
|
fi
|
|
|
|
|
|
# Set environment variable to avoid interactive prompts during installation
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
echo 'APT::Sandbox::User "root";' > /etc/apt/apt.conf.d/no-sandbox
|
|
mkdir -p /netscratch
|
|
|
|
# Update and install base dependencies
|
|
apt-get update
|
|
apt-get install -y libc6 fakeroot
|
|
|
|
# Fix dependency issues
|
|
apt-get install -f -y || true
|
|
dpkg --configure -a || true
|
|
|
|
# Reinstall problematic packages
|
|
apt-get remove --purge -y dbus fontconfig-config || true
|
|
apt-get install -y dbus fontconfig-config || true
|
|
|
|
rm -f /var/lib/dpkg/lock-frontend
|
|
rm -f /var/lib/dpkg/lock
|
|
rm -f /var/cache/apt/archives/lock
|
|
|
|
# mount -o remount,rw /usr
|
|
# mount -o remount,rw /var
|
|
chown -R root:root /usr/lib/dbus-1.0/dbus-daemon-launch-helper || true
|
|
|
|
|
|
# Install necessary packages
|
|
apt-get install -y fontconfig libfontconfig1 libpangoft2-1.0-0 libbluray2 \
|
|
libpangocairo-1.0-0 libavformat58 libpango-1.0-0 \
|
|
openjdk-11-jre-headless libcairo2 librsvg2-2 librsvg2-common \
|
|
openjdk-11-jre-zero libtheora0 libavcodec58 libcairo-gobject2 \
|
|
ca-certificates-java libchromaprint1 software-properties-common perl-modules bzip2 \
|
|
unzip zlib1g-dev libtinfo5 g++ usbutils gawk bison gcc make wget tar python3.9 locales zstd uuid-dev git || true
|
|
|
|
ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
locale-gen en_US.UTF-8
|
|
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
|
|
|
# Run dpkg to ensure everything is properly configured
|
|
dpkg --configure -a || true
|
|
|
|
# Clean up apt cache
|
|
apt-get clean
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
echo "Setting up the environment..."
|
|
|
|
# Copy the installation script into the container
|
|
cp install_boost_openssl.sh /tmp/
|
|
|
|
# Execute the script
|
|
chmod +x /tmp/install_boost_openssl.sh
|
|
/tmp/install_boost_openssl.sh
|
|
|
|
# Clean up
|
|
rm -f /tmp/install_boost_openssl.sh
|
|
|
|
%environment
|
|
export LANG=en_US.UTF-8
|
|
export LANGUAGE=en_US.UTF-8
|
|
export LC_ALL=en_US.UTF-8
|
|
export HOME=/home/developer
|
|
|
|
|
|
|
|
%runscript
|
|
exec /bin/bash
|
|
|
|
%labels
|
|
Author Rahul
|
|
Version 1.0
|
|
|
|
%test
|
|
echo "Container test successful!"
|
|
locale
|
|
lsusb || echo "lsusb not available"
|
|
ls -l /dev/null
|