This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRW-537 reorganize dockerfile steps so we can override patch and post…
…-patch steps, such that generated tarball includes patched theia sources (#571) * CRW-537 if patches applied, tar up the results AFTER patching so we don't have to repatch later. move add+apply patch steps to new builder-patch-theia.dockerfile files; add builder-post-patch.dockerfile too move tarball step from builder-clone-theia to builder-post-patch.dockerfile add 'nothing to do on alpine' markers in empty files add same comment in alpine and ubi8 versions of builder-clone-theia.dockerfile Change-Id: I50c9380b5289d91f5ff7542c553c792572047c15 Signed-off-by: nickboldt <nboldt@redhat.com> * add newline to dockerfiles/theia/docker/ubi8/builder-clone-theia.dockerfile Change-Id: Id95ffd9e2c32155e68a0c236d49c148b77c4c2cf Signed-off-by: nickboldt <nboldt@redhat.com>
- Loading branch information
Showing
8 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# Clone theia and keep source code in home | ||
RUN git clone --branch ${GIT_BRANCH_NAME} --single-branch --depth 1 https://github.com/${THEIA_GITHUB_REPO} ${HOME}/theia-source-code |
11 changes: 11 additions & 0 deletions
11
dockerfiles/theia/docker/alpine/builder-patch-theia.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Add patches | ||
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 \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# nothing to do on alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# nothing to do on alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# Clone theia and keep source code in home | ||
RUN git clone --branch ${GIT_BRANCH_NAME} --single-branch --depth 1 https://github.com/${THEIA_GITHUB_REPO} ${HOME}/theia-source-code \ | ||
&& cd ${HOME} && tar zcf ${HOME}/theia-source-code.tgz theia-source-code | ||
|
||
RUN git clone --branch ${GIT_BRANCH_NAME} --single-branch --depth 1 https://github.com/${THEIA_GITHUB_REPO} ${HOME}/theia-source-code |
11 changes: 11 additions & 0 deletions
11
dockerfiles/theia/docker/ubi8/builder-patch-theia.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Add patches | ||
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 \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN cd ${HOME} && tar zcf ${HOME}/theia-source-code.tgz theia-source-code |