File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $(target_dir):
3030$(exe ) : $(shell find . unison -type f -name '* .hs') $(shell find . unison -type f -name '* .yaml')
3131 @echo $(exe )
3232 @echo $@
33- stack build $(STACK_FLAGS ) share-api:share-api
33+ stack build $(STACK_FLAGS )
3434
3535$(installed_share ) : $(exe ) $(target_dir )
3636 cp $(exe ) $(installed_share )
@@ -109,3 +109,24 @@ transcripts: $(installed_share)
109109 kill $$ SERVER_PID 2> /dev/null || true ; \
110110 )
111111 @echo " Transcripts complete!" ;
112+
113+ task-runner : $(installed_share )
114+ @echo " Taking down any existing docker dependencies"
115+ @docker compose -f docker/docker-compose.base.yml down || true
116+ @trap ' docker compose -f docker/docker-compose.base.yml down' EXIT INT TERM
117+ @echo " Booting up task docker dependencies..."
118+ docker compose -f docker/docker-compose.base.yml up --remove-orphans --detach
119+ @while ! ( pg_isready --host localhost -U postgres -p 5432 > /dev/null 2>&1 && redis-cli -p 6379 ping > /dev/null 2>&1 && VAULT_ADDR=http://localhost:8200 vault status > /dev/null 2>&1 ) do \
120+ sleep 1; \
121+ done ;
122+ ./transcripts/configure_transcript_database.zsh
123+ @echo " Booting up share" ;
124+ ( . ./local.env ; \
125+ $(exe ) & \
126+ SERVER_PID=$$ ! ; \
127+ trap " kill $$ SERVER_PID 2>/dev/null || true" EXIT INT TERM; \
128+ echo " Running task" ; \
129+ stack exec share-task-runner; \
130+ kill $$ SERVER_PID 2> /dev/null || true ; \
131+ )
132+ @echo " Task complete!" ;
You can’t perform that action at this time.
0 commit comments