You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(containers): Remove reliance on "chained builds" architecture for rhel9 image builds
This work is a continuation of changes originally implemented in `opendatahub-io/notebooks` under opendatahub-io#924.
The `red-hat-data-services/notebooks` repo has some functional differences related to the `rstudio` images which necessitates additional changes:
- `rhel9` builder image is used (instead of `c9s`)
- `BuildConfig` manifest is used to build the image (due to reliance on `subscription-manager`) (instead of naive `Makefile` / container build)
Commit contains following changes:
- Refactors all `rhel9` `rstudio` `Dockerfile`s to to be "self-contained" - not rely on any "build chains" for internal images
- please note in the final form of this PR - many intermediate stages will be combined... this current form makes it easier to understand how the `Dockerfile`s present in the "build chain" are being combined - long term - we'd expect the following stages: `base`, `base-<accelerator>` (if applicable), `<final>`
- `Dockerfile` file now has a file extension/suffix that indicates CPU or accelerator
- `LABEL` directives now should be consistent/accurate
- this probably needs a little more attention
- `base/rhel9-python-3.11` directory removed as its no longer relevant/required
- Makefile updated to remove outdated `base-rhel9-python-3.9` target
- `ENV` directive in `Dockerfile` now properly uses `=` (vs. whitespace)
- `rstudio` `BuildConfig` manifests updated to accomodate changes outlined above
- `Dockerfile.xxx` reference
- No chained build
- For `BuildConfig` manifest - this means removing the `from` attribute from `dockerStrategy`
# uncomment the bellow line if you fall on this error: subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management.
51
+
# uncomment the below line if you fall on this error: subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management.
22
52
#RUN sed -i 's/\(def in_container():\)/\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py
23
53
24
54
# Run the subscription manager command using the provided credentials. Only include --serverurl and --baseurl if they are provided
0 commit comments