From 5207834e78965cebc13375a260d2037d57678b7a Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 29 Jan 2021 11:17:33 +0100 Subject: [PATCH 1/3] chore: need to run yarn install on build as the base image node modules are outdated --- .tugboat/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.tugboat/config.yml b/.tugboat/config.yml index 2be043cd78..09422032bc 100644 --- a/.tugboat/config.yml +++ b/.tugboat/config.yml @@ -10,6 +10,5 @@ services: - echo "yarn --cwd ${TUGBOAT_ROOT} start-backend --config ${TUGBOAT_ROOT}/app-config.yaml --config ${TUGBOAT_ROOT}/.tugboat/tugboat.app-config.production.yaml" >> /etc/service/node/run - chmod +x /etc/service/node/run build: - - yarn workspace example-app build - update: - yarn install + - yarn workspace example-app build From f44137454fb5e8e4285ed48d6c1735c26582e142 Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 29 Jan 2021 11:20:27 +0100 Subject: [PATCH 2/3] chore: should install with frozen lockfile --- .tugboat/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tugboat/config.yml b/.tugboat/config.yml index 09422032bc..594a1044ac 100644 --- a/.tugboat/config.yml +++ b/.tugboat/config.yml @@ -10,5 +10,5 @@ services: - echo "yarn --cwd ${TUGBOAT_ROOT} start-backend --config ${TUGBOAT_ROOT}/app-config.yaml --config ${TUGBOAT_ROOT}/.tugboat/tugboat.app-config.production.yaml" >> /etc/service/node/run - chmod +x /etc/service/node/run build: - - yarn install + - yarn install --frozen-lockfile - yarn workspace example-app build From 7c0fcd7404d9b5a0171ba1a7426a81d66aad7479 Mon Sep 17 00:00:00 2001 From: blam Date: Sat, 30 Jan 2021 01:44:46 +0100 Subject: [PATCH 3/3] chore: added start command to tugboat to wait for the port to become ready before marking as live in tugboat --- .tugboat/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tugboat/config.yml b/.tugboat/config.yml index 594a1044ac..b8c3c127c8 100644 --- a/.tugboat/config.yml +++ b/.tugboat/config.yml @@ -12,3 +12,6 @@ services: build: - yarn install --frozen-lockfile - yarn workspace example-app build + start: + # wget the endpoint. Will retry every 2 seconds. 30 retries = 1m for service to come up. Plenty. + - wget -O /dev/null -o /dev/null --tries=30 --timeout=5 --retry-connrefused http://localhost:7000