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

Commit

Permalink
fix: generate devWorkspace files into /build/devfiles/{devfile_name} …
Browse files Browse the repository at this point in the history
…folder (#541)

* fix: fix permission problem

Signed-off-by: svor <vsvydenk@redhat.com>

* fix: put generated files into /build/devfiles/ folder

Signed-off-by: svor <vsvydenk@redhat.com>
  • Loading branch information
svor authored and mkuznyetsov committed Dec 6, 2021
1 parent 6c89686 commit a8af79f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ 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/out /usr/local/apache2/htdocs/devfiles
COPY ./images /usr/local/apache2/htdocs/images
COPY ./build/dockerfiles/entrypoint.sh /usr/bin/
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
Expand Down
1 change: 0 additions & 1 deletion build/dockerfiles/rhel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ 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/out /var/www/html/devfiles
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 Down
3 changes: 0 additions & 3 deletions build/scripts/generate_devworkspace_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ do
devfile=$(grep "v2:" "${dir}"meta.yaml)
if [ -n "$devfile" ]; then
devfile=${devfile##*v2: }
dir=${dir%/}
dir=/build/out/${dir##*/}
mkdir "${dir}"
npx @eclipse-che/che-theia-devworkspace-handler --devfile-url:"${devfile}" --output-file:"${dir}"/devworkspace-che-theia-next.yaml
npx @eclipse-che/che-theia-devworkspace-handler --devfile-url:"${devfile}" --editor:eclipse/che-theia/latest \
--output-file:"${dir}"/devworkspace-che-theia-latest.yaml
Expand Down

0 comments on commit a8af79f

Please sign in to comment.