Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore: devfile registry should return index file by /index path
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Aug 30, 2023
1 parent 8cf0257 commit 3436676
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/dev/build-devfile-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cp -rf "$REPO_DIR"/build/scripts "$BUILD_DIR"
cp -rf "$DEVFILES_SRC" "$BUILD_DIR"/devfiles
cd "$BUILD_DIR"
./check_mandatory_fields.sh devfiles
./index.sh > devfiles/index.json
./index.sh > devfiles/index.json && cp devfiles/index.json index
# ./generate_devworkspace_templates.sh

ROUTE_OR_INGRESS="routes"
Expand Down
2 changes: 2 additions & 0 deletions build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN apk add --no-cache bash && \
apk add --no-cache coreutils
COPY .htaccess README.md /usr/local/apache2/htdocs/
COPY --from=builder /build/devfiles /usr/local/apache2/htdocs/devfiles
COPY --from=builder /build/devfiles/index.json /usr/local/apache2/htdocs/index
COPY --from=builder /build/resources /usr/local/apache2/htdocs/resources
COPY ./images /usr/local/apache2/htdocs/images
COPY ./build/dockerfiles/entrypoint.sh /usr/bin/
Expand All @@ -53,4 +54,5 @@ RUN ./cache_projects.sh devfiles resources && \
# Offline registry: copy updated devfile.yamls and cached projects
FROM registry AS offline-registry
COPY --from=offline-builder /build/devfiles /usr/local/apache2/htdocs/devfiles
COPY --from=offline-builder /build/devfiles/index.json /usr/local/apache2/htdocs/index
COPY --from=offline-builder /build/resources /usr/local/apache2/htdocs/resources
2 changes: 2 additions & 0 deletions build/dockerfiles/rhel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ WORKDIR /var/www/html
RUN mkdir -m 777 /var/www/html/devfiles
COPY .htaccess README.md /var/www/html/
COPY --from=builder /build/devfiles /var/www/html/devfiles
COPY --from=builder /build/devfiles/index.json /var/www/html/index
COPY ./images /var/www/html/images
COPY ./build/dockerfiles/rhel.entrypoint.sh ./build/dockerfiles/entrypoint.sh /usr/local/bin/
RUN chmod g+rwX /usr/local/bin/entrypoint.sh /usr/local/bin/rhel.entrypoint.sh
Expand All @@ -99,6 +100,7 @@ RUN ./cache_projects.sh devfiles resources && \

FROM registry AS offline-registry
COPY --from=offline-builder /build/devfiles /var/www/html/devfiles
COPY --from=offline-builder /build/devfiles/index.json /var/www/html/index
COPY --from=offline-builder /build/resources /var/www/html/resources

# append Brew metadata here

0 comments on commit 3436676

Please sign in to comment.