Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
ImageBuild:
strategy:
matrix:
os: [fedora, suse, debian, ubuntu]
os: [fedora, suse, debian, ubuntu, rocky]
lang: [c,latex]
runs-on: ubuntu-latest
steps:
Expand Down
29 changes: 29 additions & 0 deletions Containerfile.rocky
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM docker.io/library/rockylinux:8

LABEL maintainer="Michael Adam <obnox@samba.org>"

ARG BUILD_LANG=""
ARG INSTALL_SCRIPT=""
ARG VERIFY_SCRIPT=""

LABEL org.opencontainers.image.title="${BUILD_LANG} Build Container"
LABEL org.opencontainers.image.description="Rocky Linux Container for building ${BUILD_LANG} projects"
LABEL org.opencontainers.image.vendor="buildbox"
LABEL org.opencontainers.image.url="https://github.com/TheBuildBox/buildbox"



COPY "${VERIFY_SCRIPT}" /usr/local/bin/verify.sh
COPY common.sh /usr/local/bin/common.sh
RUN chmod +x /usr/local/bin/verify.sh
COPY "${INSTALL_SCRIPT}" /usr/local/bin/install-packages.sh
RUN chmod +x /usr/local/bin/install-packages.sh
# force a sane PATH for the duration of the install
ENV PATH=/usr/local/bin:/usr/bin:/bin:/sbib:/usr/local/sbin:/usr/sbin
# install, fix, and verify in ONE ATOMIC STEP
RUN true && \
/usr/local/bin/install-packages.sh && \
echo "Verifying binaries before layer commit..." && \
/usr/local/bin/verify.sh && \
echo "your buildbox is ready."

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ It is however of course also possible to use the images interactively.
* Debian Linux
* Ubuntu Linux
* openSUSE Linux
* Rocky Linux

### Existing Language variants/installed tools

Expand Down
2 changes: 1 addition & 1 deletion cli/builbo
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ These are the supported options:
[ -l | --lang (c|latex) ] - compilation language (default: $LANG)
[ -r | --registry (quay.io|... ] - container registry (default: $REGISTRY)
[ -c | --container-cmd (podman|docker) ] - default: $CONTAINER_CMD (auto-detected)
[ -o | --os (fedora|debian|ubuntu|suse) ] - linux distro (default: $OS)
[ -o | --os (fedora|debian|ubuntu|rocky|suse) ] - linux distro (default: $OS)
[ -n | --registry-namespace (...) ] - default: $NAMESPACE
[ -s | --build-script (command|path) ] - command or local script (in the CWD) for building the project.
[ -d | --deps (pkg,pkg,pkg,...) ] - additional packages to install (comma-separated)
Expand Down
18 changes: 18 additions & 0 deletions install-packages_rocky_c.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -euo pipefail


dnf group install -y "Development Tools" && \
dnf install -y git gcc make cmake automake autoconf vim less python3

RC=$?

if [ ${RC} -eq 0 ]; then
echo "successfully installed packages."
else
echo "error installing packages."
fi

exit ${RC}

41 changes: 41 additions & 0 deletions install-packages_rocky_latex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -euo pipefail


dnf --refresh upgrade -y && \
dnf group install -y "Development Tools" && \
dnf install -y \
ghostscript \
texlive \
texlive-beamer \
texlive-amscls \
texlive-amsmath \
texlive-amsfonts \
texlive-bibtex \
texlive-makeindex \
texlive-metafont \
texlive-cm-super \
texlive-dvips \
texlive-bibtex\
texlive-makeindex \
texlive-fancyhdr \
texlive-cm \
texlive-metafont\
texlive-ec \
texlive-cm-super && \
dnf clean all && \
echo "DONE dnf install and clean. now syncing." && \
sync

RC=$?

#wiki2beamer: use the legacy RPM (The Fedora 38 package)

if [ ${RC} -eq 0 ]; then
echo "SUCCESSfully installed packages."
else
echo "ERROR installing packages."
fi

exit ${RC}