Skip to content

Commit 5dd9dfb

Browse files
authored
btrix dev helper: Add step to build email image to bootstrap (#2939)
Small quality of life improvement for local development helper script
1 parent c14df11 commit 5dd9dfb

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

btrix

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,26 @@
3535
# Run nightly backend tests
3636

3737

38-
bootstrap(){
38+
buildImages(){
3939
echo "Building backend..."
4040
./scripts/build-backend.sh
4141

42+
echo "Building emails..."
43+
./scripts/build-emails.sh
44+
4245
echo "Building frontend..."
4346
./scripts/build-frontend.sh
47+
}
48+
49+
bootstrap(){
50+
buildImages
4451

4552
echo "Installing..."
4653
helm upgrade --install -f ./chart/values.yaml -f ./chart/local.yaml btrix ./chart
4754
}
4855

4956
bootstrapMicrok8s(){
50-
echo "Building backend..."
51-
./scripts/build-backend.sh
52-
53-
echo "Building frontend..."
54-
./scripts/build-frontend.sh
57+
buildImages
5558

5659
echo "Installing..."
5760
microk8s helm3 upgrade --install -f ./chart/values.yaml -f ./chart/local.yaml btrix ./chart
@@ -97,17 +100,17 @@ resetMicrok8s(){
97100
microk8s kubectl delete configmap -n crawlers -l btrix.crawlconfig
98101
}
99102

100-
runTests() {
103+
runTests(){
101104
echo "Running backend tests..."
102105
python3 -m pytest backend/test/test_*.py
103106
}
104107

105-
runNightlyTests() {
108+
runNightlyTests(){
106109
echo "Running nightly backend tests..."
107110
python3 -m pytest backend/test_nightly/test_*.py
108111
}
109112

110-
setupLocalConfig() {
113+
setupLocalConfig(){
111114
if [ -f ./chart/local.yaml ]; then
112115
echo "Local config file already exists at ./chart/local.yaml"
113116
exit 1

0 commit comments

Comments
 (0)