-
Notifications
You must be signed in to change notification settings - Fork 106
Add TeX Live and Pandoc installation for ppc64le #1179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
puneetsharma21
wants to merge
12
commits into
opendatahub-io:main
Choose a base branch
from
puneetsharma21:texlive-ppc64le-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+187
−4
Open
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9211d51
Add TeX Live install for ppc64le
puneetsharma21 38b91c3
Installing pandoc on power
puneetsharma21 7184ab0
Update PATH to support TeX Live for both ppc64le and x86_64
puneetsharma21 c5eb49a
Improve TeX Live and Pandoc setup
puneetsharma21 1c8cc56
optimizing TeX Live & Pandoc install
puneetsharma21 8d3b3e5
Merge remote-tracking branch 'upstream/main' into texlive-ppc64le-sup…
puneetsharma21 2ca6f7d
Add multistage Dockerfile with split PDF build into separate TeX Live…
puneetsharma21 fd58c51
fix: add else condition for unsupported arch in install scripts
puneetsharma21 b009cdd
fix: install TeX Live runtime via profile for ppc64le
puneetsharma21 f124aa1
Add PDF builder stage support to Python 3.12 minimal image
puneetsharma21 510e5a0
Fix TeX Live PATH for multi-arch support (x86_64, ppc64le)
puneetsharma21 6673212
Fix TeX Live and Pandoc for multi-arch support
puneetsharma21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,57 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
|
||
# Install dependencies required for Notebooks PDF exports | ||
|
||
set -euxo | ||
|
||
# tex live installation | ||
echo "Installing TexLive to allow PDf export from Notebooks" | ||
curl -L https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz | ||
zcat < install-tl-unx.tar.gz | tar xf - | ||
cd install-tl-2* | ||
perl ./install-tl --no-interaction --scheme=scheme-small --texdir=/usr/local/texlive | ||
cd /usr/local/texlive/bin/x86_64-linux | ||
./tlmgr install tcolorbox pdfcol adjustbox titling enumitem soul ucs collection-fontsrecommended | ||
ARCH=$(uname -m) | ||
|
||
if [[ "$ARCH" == "ppc64le" ]]; then | ||
echo "Installing TeX Live from source for $ARCH" | ||
|
||
# Download and extract source | ||
wget https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/texlive-20250308-source.tar.xz | ||
tar -xf texlive-20250308-source.tar.xz | ||
cd texlive-20250308-source | ||
|
||
# Install build dependencies | ||
dnf install -y gcc gcc-c++ perl make libX11-devel libXt-devel \ | ||
zlib-devel freetype-devel libpng-devel ncurses-devel \ | ||
gd-devel libtool wget tar xz bison flex libXaw-devel | ||
|
||
# Create build directory | ||
mkdir ../texlive-build | ||
cd ../texlive-build | ||
|
||
# Configure, build, install | ||
../texlive-20250308-source/configure --prefix=/opt/texlive/2025 | ||
make -j$(nproc) | ||
make install | ||
|
||
# Symlink for pdflatex | ||
cd /opt/texlive/2025/bin/powerpc64le-unknown-linux-gnu | ||
ln -s pdftex pdflatex | ||
export PATH="/opt/texlive/2025/bin/powerpc64le-unknown-linux-gnu:$PATH" | ||
pdflatex --version | ||
|
||
# Install pandoc | ||
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
dnf install -y pandoc | ||
|
||
else | ||
puneetsharma21 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
echo "Installing TeX Live from installer for $ARCH" | ||
|
||
# Download and install from official installer | ||
curl -L https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz | ||
zcat < install-tl-unx.tar.gz | tar xf - | ||
cd install-tl-2* | ||
perl ./install-tl --no-interaction --scheme=scheme-small --texdir=/usr/local/texlive | ||
cd /usr/local/texlive/bin/x86_64-linux | ||
./tlmgr install tcolorbox pdfcol adjustbox titling enumitem soul ucs collection-fontsrecommended | ||
fi | ||
|
||
# pandoc installation | ||
curl -L https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-amd64.tar.gz -o /tmp/pandoc.tar.gz | ||
curl -L https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-amd64.tar.gz -o /tmp/pandoc.tar.gz | ||
mkdir -p /usr/local/pandoc | ||
tar xvzf /tmp/pandoc.tar.gz --strip-components 1 -C /usr/local/pandoc/ | ||
rm -f /tmp/pandoc.tar.gz | ||
rm -f /tmp/pandoc.tar.gz |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.