Skip to content
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

DRAFT :: CRW-3397 switch from vfs to fuse-overlayfs :: DO NOT MERGE before OCP 4.13 #341

Open
wants to merge 3 commits into
base: devspaces-3-rhel-8
Choose a base branch
from
Open
Changes from 1 commit
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
11 changes: 5 additions & 6 deletions devspaces-udi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#
# Contributors:
# Red Hat, Inc. - initial API and implementation

# NOTE: this is pinned to 1.16 because golangci-lint 1.44.0 requires go 1.16; newer versions need 1.18 which is not avail in RHEC
nickboldt marked this conversation as resolved.
Show resolved Hide resolved
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi8-minimal
FROM registry-proxy.engineering.redhat.com/rh-osbs/rhel8-go-toolset:1.16.12-2 as go-builder

Expand Down Expand Up @@ -127,7 +129,9 @@ RUN \
RUN dnf -y module enable container-tools:rhel8 && \
dnf -y -q update --exclude=odo && \
dnf -y reinstall shadow-utils && \
dnf -y install podman buildah skopeo fuse-overlayfs
# CRW-3397 ensure fuse-overlayfs is installed BEFORE podman - https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md#ensure-fuse-overlayfs-is-installed
dnf -y install fuse-overlayfs && fuse-overlayfs -V && \
dnf -y install podman buildah skopeo

## Rootless podman install #2
# Set up environment variables to note that this is
Expand All @@ -149,11 +153,6 @@ RUN mkdir -p /var/lib/shared/overlay-images /var/lib/shared/overlay-layers; \
touch /var/lib/shared/overlay-images/images.lock; \
touch /var/lib/shared/overlay-layers/layers.lock

## Rootless podman install #5
# But use VFS since we were not able to make Fuse work yet...
RUN mkdir -p "${HOME}"/.config/containers && \
(echo '[storage]';echo 'driver = "vfs"') > "${HOME}"/.config/containers/storage.conf

RUN \
########################################################################
# Java 8 11 17
Expand Down