Skip to content

Commit

Permalink
Split the maeve patches into compile time and runtime
Browse files Browse the repository at this point in the history
And apply only the compile time patch while building the image
  • Loading branch information
shankari committed Nov 14, 2024
1 parent 7cabceb commit 9db0d53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_push_csms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
shell: bash
run: |
pushd ${{ matrix.csms }}-csms
bash ../everest-demo/${{ matrix.csms }}/apply-patches.sh
bash ../everest-demo/${{ matrix.csms }}/apply-compile-patches.sh
# - name: Build using docker compose
# id: build-using-docker-compose
Expand Down
8 changes: 8 additions & 0 deletions maeve/apply-compile-patches.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# This is a patch to the source code, so we need to apply it
# before we build.
# And there is no harm in turning off OCSP completely

echo "Patching the CSMS to enable local mo root"
patch -p1 -i ../everest-demo/maeve/maeve-csms-ignore-ocsp.patch
3 changes: 0 additions & 3 deletions maeve/apply-patches.sh → maeve/apply-runtime-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
echo "Patching the CSMS to enable local mo root"
patch -p1 -i ../everest-demo/maeve/maeve-csms-local-mo-root.patch

echo "Patching the CSMS to enable local mo root"
patch -p1 -i ../everest-demo/maeve/maeve-csms-ignore-ocsp.patch

else
echo "Patching the CSMS to disable WSS"
patch -p1 -i ../everest-demo/maeve/maeve-csms-no-wss.patch
Expand Down

0 comments on commit 9db0d53

Please sign in to comment.