Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
CRW-537 if patches applied, tar up the results AFTER patching so we d…
Browse files Browse the repository at this point in the history
…on't have to repatch later.

Change-Id: I3fdbfb5b46a13f0d3ce616d326181fc6763c3f3b
Signed-off-by: nickboldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Dec 2, 2019
1 parent 26e75a1 commit 1a091f9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dockerfiles/theia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ ADD src/patches ${HOME}/patches

# Apply patches
RUN if [ -d "${HOME}/patches/${THEIA_VERSION}" ]; then \
echo "Applying patches for Theia version ${THEIA_VERSION}"; \
for file in $(find "${HOME}/patches/${THEIA_VERSION}" -name '*.patch'); do \
echo "Patching with ${file}"; \
cd ${HOME}/theia-source-code && patch -p1 < ${file}; \
done \
echo "Applying patches for Theia version ${THEIA_VERSION}"; \
for file in $(find "${HOME}/patches/${THEIA_VERSION}" -name '*.patch'); do \
echo "Patching with ${file}"; \
cd ${HOME}/theia-source-code && patch -p1 < ${file}; \
done; \
tar zcf ${HOME}/theia-source-code.tgz ${HOME}/theia-source-code; \
fi

# Generate che-theia
Expand Down

0 comments on commit 1a091f9

Please sign in to comment.