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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ docker run -ti --rm quay.io/devfile/universal-developer-image:ubi9-latest bash
| `shellcheck` |`v0.8.0` |
| `tmux` |`3.6a` |
| `herdr` |`v0.7.3` |
|------SANDBOX---------|-------------------------------------|
| `bubblewrap` |`v0.11.2 (built from source)` |
| **TOTAL SIZE** | **8.75GB** (3.6GB compressed) |

**Libraries:**
Expand Down Expand Up @@ -271,6 +273,8 @@ docker run -ti --rm quay.io/devfile/universal-developer-image:ubi10-latest bash
| `shellcheck` |`v0.11.0` |
| `tmux` |`3.6a` |
| `herdr` |`v0.7.3` |
|------SANDBOX---------|-------------------------------------|
| `bubblewrap` |`v0.11.2 (built from source)` |
| **TOTAL SIZE** | **TBD** |

**Libraries:**
Expand Down
28 changes: 28 additions & 0 deletions universal/ubi10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,34 @@ RUN dnf -y install bash-completion \
&& dnf clean all \
&& rm -rf /var/cache/yum

## bubblewrap - built from source (not available in UBI 10 repos)
RUN <<'EOF'
set -euf -o pipefail

TEMP_DIR="$(mktemp -d)"
cd "${TEMP_DIR}"

BWRAP_VERSION="0.11.2"

dnf -y install libcap-devel

curl -fsSL "https://github.com/containers/bubblewrap/releases/download/v${BWRAP_VERSION}/bubblewrap-${BWRAP_VERSION}.tar.xz" -o bubblewrap.tar.xz
tar -xf bubblewrap.tar.xz
cd "bubblewrap-${BWRAP_VERSION}"

printf '#define PACKAGE_STRING "bubblewrap %s"\n' "${BWRAP_VERSION}" > config.h
gcc -D_GNU_SOURCE -o bwrap bubblewrap.c bind-mount.c network.c utils.c -lcap
install -m 755 bwrap /usr/local/bin/bwrap
bwrap --version

cd /
rm -rf "${TEMP_DIR}"

dnf -y remove libcap-devel
dnf clean all
rm -rf /var/cache/yum
EOF

## tmux - using pre-built binaries (not available in UBI repos)
RUN <<'EOF'
set -euf -o pipefail
Expand Down
28 changes: 28 additions & 0 deletions universal/ubi9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,34 @@ RUN dnf -y install bash-completion \
&& dnf clean all \
&& rm -rf /var/cache/yum

## bubblewrap - built from source (not available in UBI 9 repos)
RUN <<'EOF'
set -euf -o pipefail

TEMP_DIR="$(mktemp -d)"
cd "${TEMP_DIR}"

BWRAP_VERSION="0.11.2"

dnf -y install libcap-devel

curl -fsSL "https://github.com/containers/bubblewrap/releases/download/v${BWRAP_VERSION}/bubblewrap-${BWRAP_VERSION}.tar.xz" -o bubblewrap.tar.xz
tar -xf bubblewrap.tar.xz
cd "bubblewrap-${BWRAP_VERSION}"

printf '#define PACKAGE_STRING "bubblewrap %s"\n' "${BWRAP_VERSION}" > config.h
gcc -D_GNU_SOURCE -o bwrap bubblewrap.c bind-mount.c network.c utils.c -lcap
install -m 755 bwrap /usr/local/bin/bwrap
bwrap --version

cd /
rm -rf "${TEMP_DIR}"

dnf -y remove libcap-devel
dnf clean all
rm -rf /var/cache/yum
EOF

## tmux - using pre-built binaries (not available in UBI repos)
RUN <<'EOF'
set -euf -o pipefail
Expand Down
Loading