|
| 1 | +containers/devspaces-idea-rhel9-container:3.20.0/registry.redhat.io/ubi9:9.5-1742918310 as ubi-builder |
| 2 | +containers/devspaces-idea-rhel9-container:3.20.0/registry.redhat.io/ubi9-minimal:9.5-1742914212 |
| 3 | +FROM registry.redhat.io/ubi9:9.5-1742918310 as ubi-builder |
| 4 | +COPY --chown=0:0 asset-required-rpms.txt /tmp/asset-required-rpms.txt |
| 5 | +RUN yum install unzip -y --nodocs && \ |
| 6 | + yum install --installroot /mnt/rootfs \ |
| 7 | + --releasever 9 --setopt install_weak_deps=false --nodocs -y && \ |
| 8 | + yum --installroot /mnt/rootfs clean all |
| 9 | +RUN rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* |
| 10 | +COPY --chown=0:0 asset-ide-packaging.tar.gz . |
| 11 | +COPY --chown=0:0 asset-projector-server-assembly.zip . |
| 12 | +COPY --chown=0:0 asset-static-assembly.tar.gz . |
| 13 | +COPY --chown=0:0 asset-che-plugin-assembly.zip . |
| 14 | +COPY --chown=0:0 asset-machine-exec ide/bin/machine-exec |
| 15 | +FROM registry.redhat.io/ubi9-minimal:9.5-1742914212 |
| 16 | +COPY --from=ubi-builder /mnt/rootfs/ / |
| 17 | + |
| 18 | +containers/devspaces-machineexec-rhel9-container:3.20.0/registry.redhat.io/ubi9/go-toolset:9.5-1742197705 as builder |
| 19 | +containers/devspaces-machineexec-rhel9-container:3.20.0/registry.redhat.io/ubi9-minimal:9.5-1741850109 as runtime |
| 20 | +FROM registry.redhat.io/ubi9/go-toolset:9.5-1742197705 as builder |
| 21 | +COPY . . |
| 22 | +RUN adduser unprivilegeduser && \ |
| 23 | + GOOS=linux go build -mod=vendor -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec . && \ |
| 24 | +FROM registry.redhat.io/ubi9-minimal:9.5-1741850109 as runtime |
| 25 | +COPY --from=builder /rootfs / |
| 26 | +RUN microdnf install -y openssl && \ |
| 27 | + |
| 28 | +containers/devspaces-operator-bundle-rhel9-container:3.20.0/scratch |
| 29 | +FROM scratch |
| 30 | +COPY manifests /manifests/ |
| 31 | +COPY metadata /metadata/ |
| 32 | + |
| 33 | +containers/devspaces-pluginregistry-rhel9-container:3.20.0/registry.redhat.io/rhel9-2-els/rhel:9.2-1535 as builder |
| 34 | +containers/devspaces-pluginregistry-rhel9-container:3.20.0/registry.redhat.io/rhel9-2-els/rhel:9.2-1535 |
| 35 | +FROM registry.redhat.io/rhel9-2-els/rhel:9.2-1535 as builder |
| 36 | +RUN dnf install -y make |
| 37 | +RUN dnf module install -y nodejs:18/development |
| 38 | +COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR |
| 39 | + && npm install \ |
| 40 | +FROM registry.redhat.io/rhel9-2-els/rhel:9.2-1535 |
| 41 | +COPY root-local.tgz /tmp/root-local.tgz |
| 42 | +COPY ./build/dockerfiles/content_sets_rhel9.repo /etc/yum.repos.d/ |
| 43 | +COPY ./build/dockerfiles/rhel.install.sh /tmp |
| 44 | +RUN /tmp/rhel.install.sh && rm -f /tmp/rhel.install.sh |
| 45 | + dnf module install postgresql:15/server nodejs:18/development -y |
| 46 | +COPY --chown=0:0 /openvsx-server.tar.gz . |
| 47 | +COPY /build/dockerfiles/application.yaml /openvsx-server/config/ |
| 48 | +COPY --from=builder --chown=0:0 /tmp/opt/ovsx /tmp/opt/ovsx |
| 49 | +COPY /build/scripts/import_vsix.sh /usr/local/bin |
| 50 | +COPY /build/scripts/start_services.sh /usr/local/bin/ |
| 51 | +COPY /build/dockerfiles/openvsx.conf /etc/httpd/conf.d/ |
| 52 | +COPY /build/scripts/*.sh /build/ |
| 53 | + |
| 54 | +containers/devspaces-server-rhel9-container:3.20.0/registry.redhat.io/ubi9-minimal:9.5-1731593028 |
| 55 | +FROM registry.redhat.io/ubi9-minimal:9.5-1731593028 |
| 56 | +RUN microdnf -y install java-17-openjdk-headless tar gzip shadow-utils findutils && \ |
| 57 | + microdnf -y clean all && rm -rf /var/cache/yum && echo "Installed Packages" && rpm -qa | sort -V && echo "End Of Installed Packages" && \ |
| 58 | + adduser -G root user && mkdir -p /home/user/devspaces |
| 59 | +COPY artifacts/assembly-main.tar.gz /tmp/assembly-main.tar.gz |
| 60 | + |
0 commit comments