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

Migrate ds-code container from ubi to rhel-els #587

Open
wants to merge 1 commit into
base: devspaces-3-rhel-8
Choose a base branch
from

Conversation

azatsarynnyy
Copy link
Member

https://issues.redhat.com/browse/CRW-6354

Migrates ds-code container from ubi to rhel-els

# https://registry.access.redhat.com/ubi8/nodejs-18
FROM ubi8/nodejs-18:1-110.1716503936 as checode-linux-libc-ubi8-builder
# https://registry.access.redhat.com/rhel9-6-els/rhel
FROM registry.redhat.io/rhel8-6-els/rhel:8.6 as checode-linux-libc-ubi8-builder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the sync.sh script the base Dockerfile is no longer used as a template for the brew one, so it might not be needed at all.

It also looks like the sync script already ignores the build/dockerfiles directory so we don't have to worry about these changes getting overwritten.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will probably get updated automatically, but we should specify a build number, not just 8.6, for reproducibility etc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It allows to build devspaces-code locally and it's helpful for investigation a problem(not related to brew) - as an investigation/debugging on brew is not easy process.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK.

@@ -457,15 +457,16 @@ USER root
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
WORKDIR $REMOTE_SOURCES_DIR/devspaces-images-code/app/devspaces-machineexec
# hadolint ignore=SC2086
RUN CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec . && \
RUN dnf -y install golang && \
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec . && \
mkdir -p /rootfs/go/bin && cp -rf $REMOTE_SOURCES_DIR/devspaces-images-code/app/devspaces-machineexec/che-machine-exec /rootfs/go/bin

#########################################################################
############################# BUILD 4: rootfs assembly ##################
#########################################################################

# https://registry.access.redhat.com/ubi8
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment should be updated as well, its how the updateBaseImages script knows what to look for.

@SDawley
Copy link
Collaborator

SDawley commented Jun 3, 2024

This should definitely be tested in brew first to make sure there aren't any more gaps between the original source images and rhel-els

@SDawley
Copy link
Collaborator

SDawley commented Jun 3, 2024

In addition the https://github.com/redhat-developer/devspaces-images/blob/devspaces-3-rhel-8/devspaces-code/content_sets.yml file will need to be updated to use the els repos.

Example

So lines 255-257 will need to be updated as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants