-
Notifications
You must be signed in to change notification settings - Fork 4
/
01.get-conductor.sh
29 lines (22 loc) · 1 KB
/
01.get-conductor.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
CONDUCTOR_VERSION=v3.5.1
# Display commands and exit on error
set -ex
# Remove the conductor folder so we start fresh
rm -rf conductor/
# Get Conductor
git clone -c advice.detachedHead=false -c core.autocrlf=false --depth 1 -b ${CONDUCTOR_VERSION} https://github.com/Netflix/conductor.git ./conductor
cd conductor/
# Delete dependencies.lock files
rm -f **/dependencies.lock
# Apply patches
# Update to es7
git apply ../${CONDUCTOR_VERSION}-update-to-es7.patch
# Set ownerEmailMandatory to false
git apply ../${CONDUCTOR_VERSION}-ownerEmailmandatory-to-false.patch
# Remove .schemas() call to prevent the currentSchema property in the Postgres connection string being overridden
git apply ../${CONDUCTOR_VERSION}-fix-currentSchema-override.patch
# Update colors so we can distinguish between IN_PROGRESS and SCHEDULED tasks
git apply ../${CONDUCTOR_VERSION}-update-colors.patch
# "Clean" changes made by patches so, if we make new changes, we can easily create another patch
git commit -a -m "Applied patches"