Created
October 26, 2023 10:17
-
-
Save qwell/b8a9532661adb4e18492f232dcf78c1b to your computer and use it in GitHub Desktop.
parsedmarc-dockerized - start.sh
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
docker compose up --no-start | |
if [ ! -f data/conf/parsedmarc/patched_gmail ]; then | |
mkdir -p patched/ | |
if docker cp parsedmarc-dockerized-parsedmarc-1:/opt/pypy/lib/pypy3.10/site-packages/parsedmarc/ patched/; then | |
cp gmail_api.diff patched/parsedmarc/ | |
pushd patched/parsedmarc > /dev/null | |
patch -p0 < gmail_api.diff | |
popd > /dev/null | |
touch data/conf/parsedmarc/patched_gmail | |
# End SRC_PATH with /. because Docker. | |
docker cp patched/parsedmarc/. parsedmarc-dockerized-parsedmarc-1:/opt/pypy/lib/pypy3.10/site-packages/parsedmarc/ | |
else | |
echo "Could not copy files to patch. Good luck." | |
fi | |
rm -rf patched/ | |
fi | |
docker compose up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment