From f2b65a759c1003a131b2fad20d8fc9982d6c7577 Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 10:26:32 +0000 Subject: [PATCH 01/10] test --- .github/workflows/docker-build.yml | 6 +++--- Dockerfile | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index f58f5774e..4b41d0795 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -4,8 +4,8 @@ env: on: push: - tags: - - '*' + branches: + - 'docker-build-test' jobs: build: @@ -52,5 +52,5 @@ jobs: --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ - --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.RELEASE_TAG }}" \ + --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:test" \ --output "type=registry" ./ diff --git a/Dockerfile b/Dockerfile index cd6692efc..1848b4434 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,6 @@ WORKDIR /relay RUN mkdir /relay/.lnd RUN touch /relay/connection_string.txt RUN chmod 777 /relay/connection_string.txt -RUN cp /relay/config/app.json /relay/dist/config/app.json -RUN cp /relay/config/config.json /relay/dist/config/config.json COPY . . RUN apt-get update @@ -16,6 +14,12 @@ RUN apt install -y g++ gcc libmcrypt-dev RUN npm install bcrypt RUN npm install +RUN cp /relay/config/app.json /relay/dist/config/app.json +RUN cp /relay/config/config.json /relay/dist/config/config.json + +RUN touch /relay/.lnd/sphinx.db +RUN chmod 777 -R /relay/.lnd + FROM node:12-buster-slim USER 1000 From 83937e5a45046f012da39350a31f9f959688565f Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 11:08:01 +0000 Subject: [PATCH 02/10] test --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1848b4434..f8aecd71c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,7 @@ FROM node:12-buster-slim AS builder WORKDIR /relay RUN mkdir /relay/.lnd RUN touch /relay/connection_string.txt -RUN chmod 777 /relay/connection_string.txt -COPY . . +COPY --chown=1000:1000 . . RUN apt-get update @@ -17,9 +16,6 @@ RUN npm install RUN cp /relay/config/app.json /relay/dist/config/app.json RUN cp /relay/config/config.json /relay/dist/config/config.json -RUN touch /relay/.lnd/sphinx.db -RUN chmod 777 -R /relay/.lnd - FROM node:12-buster-slim USER 1000 From a199f254ed02f79d9ffa7cab9461278153008069 Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 11:41:42 +0000 Subject: [PATCH 03/10] test --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f8aecd71c..26ba13d8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM node:12-buster-slim AS builder WORKDIR /relay RUN mkdir /relay/.lnd RUN touch /relay/connection_string.txt +RUN touch /relay/.lnd/sphinx.db COPY --chown=1000:1000 . . RUN apt-get update From fac25486c6730edfbf7f51ea4acd8b3c38b69a1f Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 12:09:52 +0000 Subject: [PATCH 04/10] test --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 26ba13d8c..90ce86b84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /relay RUN mkdir /relay/.lnd RUN touch /relay/connection_string.txt RUN touch /relay/.lnd/sphinx.db +RUN chmod 777 /relay/connection_string.txt COPY --chown=1000:1000 . . RUN apt-get update From df311d913bfad3c6305da742d40a3a5b34926507 Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 12:44:22 +0000 Subject: [PATCH 05/10] test --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 90ce86b84..182d773d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN mkdir /relay/.lnd RUN touch /relay/connection_string.txt RUN touch /relay/.lnd/sphinx.db RUN chmod 777 /relay/connection_string.txt +RUN chmod 777 /relay/.lnd/sphinx.db COPY --chown=1000:1000 . . RUN apt-get update From 281a8e96b2e32d5132db8103b2f02a95ec0df89e Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Wed, 16 Dec 2020 10:14:01 -0800 Subject: [PATCH 06/10] fix setup --- app.ts | 3 ++- dist/app.js | 1 + dist/app.js.map | 2 +- dist/src/controllers/index.js | 7 +------ dist/src/controllers/index.js.map | 2 +- dist/src/utils/setup.js | 1 - dist/src/utils/setup.js.map | 2 +- src/controllers/index.ts | 7 ++----- src/utils/setup.ts | 1 - 9 files changed, 9 insertions(+), 17 deletions(-) diff --git a/app.ts b/app.ts index 76238f2c0..c3ae64fbf 100644 --- a/app.ts +++ b/app.ts @@ -5,7 +5,7 @@ import * as cookieParser from 'cookie-parser' import * as cors from 'cors' import logger from './src/utils/logger' import { pingHubInterval, checkInvitesHubInterval } from './src/hub' -import { setupDatabase, setupDone } from './src/utils/setup' +import { setupDatabase, setupDone, setupOwnerContact } from './src/utils/setup' import * as controllers from './src/controllers' import * as connect from './src/utils/connect' import * as socket from './src/utils/socket' @@ -43,6 +43,7 @@ async function mainSetup() { } async function finishSetup() { + setupOwnerContact() await network.initTribesSubscriptions() if (config.hub_api_url) { checkInvitesHubInterval(5000) diff --git a/dist/app.js b/dist/app.js index facb3dfd4..23e89f0db 100644 --- a/dist/app.js +++ b/dist/app.js @@ -53,6 +53,7 @@ function mainSetup() { } function finishSetup() { return __awaiter(this, void 0, void 0, function* () { + setup_1.setupOwnerContact(); yield network.initTribesSubscriptions(); if (config.hub_api_url) { hub_1.checkInvitesHubInterval(5000); diff --git a/dist/app.js.map b/dist/app.js.map index 76da5e347..b9a43e64c 100644 --- a/dist/app.js.map +++ b/dist/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAkC;AAClC,0CAAyC;AACzC,iCAAgC;AAChC,8CAA6C;AAC7C,6BAA4B;AAC5B,+CAAuC;AACvC,mCAAoE;AACpE,6CAA4D;AAC5D,iDAAgD;AAChD,+CAA8C;AAC9C,6CAA4C;AAC5C,yCAAwC;AACxC,qCAAiD;AACjD,mCAAkC;AAClC,yCAAwC;AACxC,+CAA6C;AAE7C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,CAAC;AAClD,MAAM,MAAM,GAAG,mBAAU,EAAE,CAAA;AAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,cAAc,IAAI,IAAI,CAAA;AAE9D,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;AAC3B,oCAAoC;AAEpC,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,YAAY,CAAA;AAEjD,eAAe;AACf,SAAe,KAAK;;QACnB,MAAM,qBAAa,EAAE,CAAA;QACrB,SAAS,EAAE,CAAA;QACX,IAAI,MAAM,CAAC,WAAW,EAAE;YACvB,qBAAe,CAAC,KAAK,CAAC,CAAA;SACtB;IACF,CAAC;CAAA;AACD,KAAK,EAAE,CAAA;AAEP,SAAe,SAAS;;QACvB,MAAM,QAAQ,EAAE,CAAA,CAAC,eAAe;QAChC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;YAClC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;YAC9B,WAAW,EAAE,CAAA;QACd,CAAC,CAAC,CAAA,CAAC,YAAY;IAChB,CAAC;CAAA;AAED,SAAe,WAAW;;QACzB,MAAM,OAAO,CAAC,uBAAuB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AC,CAAC,CAAC;QAEH,oBAAoB;QACpB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YACtB,OAAO,CAAC,IAAI,CAAC,CAAA;SACb;aAAM;YACN,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,UAAgB,GAAG,EAAE,GAAG;;oBAC3C,MAAM,EAAE,GAAG,MAAM,eAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;oBACnC,IAAI,EAAE,EAAE;wBACP,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;wBACjC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;wBACtB,OAAO,CAAC,IAAI,CAAC,CAAA;qBACb;gBACF,CAAC;aAAA,CAAC,CAAA;SACF;IAEF,CAAC,CAAA,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/src/controllers/index.js b/dist/src/controllers/index.js index 98cf6b3f3..5cab999be 100644 --- a/dist/src/controllers/index.js +++ b/dist/src/controllers/index.js @@ -35,12 +35,7 @@ function set(app) { if (models_1.models && models_1.models.Subscription) { subcriptions.initializeCronJobs(); } - try { - yield media.cycleMediaToken(); - } - catch (e) { - console.log('=> could not auth with media server', e.message); - } + media.cycleMediaToken(); timers.reloadTimers(); app.get('/chats', chats.getChats); app.post('/group', chats.createGroupChat); diff --git a/dist/src/controllers/index.js.map b/dist/src/controllers/index.js.map index bcaf5dbf0..a1112bcc7 100644 --- a/dist/src/controllers/index.js.map +++ b/dist/src/controllers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9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AAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;CACvC,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,iCAAgC;AAChC,8CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,+BAA8B;AAE9B,SAAsB,GAAG,CAAC,GAAG;;QAE5B,WAAW,CAAC,IAAI,EAAE,CAAA;QAElB,IAAI,eAAM,IAAI,eAAM,CAAC,YAAY,EAAE;YAClC,YAAY,CAAC,kBAAkB,EAAE,CAAA;SACjC;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QAEvB,MAAM,CAAC,YAAY,EAAE,CAAA;QAErB,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;QACjC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;QACzC,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;QACvC,GAAG,CAAC,IAAI,CAAC,8BAA8B,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;QACpD,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;QACzC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;QAC3C,GAAG,CAAC,GAAG,CAAC,4BAA4B,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;QAC3D,GAAG,CAAC,IAAI,CAAC,QAAQ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BAAgB;IACpD,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,aAAa,CAAC,4BAA4B;IAC7E,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;CACvC,CAAA"} \ No newline at end of file diff --git a/dist/src/utils/setup.js b/dist/src/utils/setup.js index 2221f243c..2e5ce5947 100644 --- a/dist/src/utils/setup.js +++ b/dist/src/utils/setup.js @@ -29,7 +29,6 @@ const setupDatabase = () => __awaiter(void 0, void 0, void 0, function* () { // console.log("db sync failed", e) } yield migrate(); - setupOwnerContact(); console.log('=> [db] setup done'); }); exports.setupDatabase = setupDatabase; diff --git a/dist/src/utils/setup.js.map b/dist/src/utils/setup.js.map index 96ecbfaa2..e40bcec2d 100644 --- a/dist/src/utils/setup.js.map +++ b/dist/src/utils/setup.js.map @@ -1 +1 @@ -{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA6C;AAC7C,iDAAoC;AACpC,iCAAgC;AAChC,8CAA4D;AAC5D,yBAAyB;AACzB,yCAAoC;AACpC,uCAAiC;AAEjC,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IAClB,IAAI;QACF,MAAM,kBAAS,CAAC,IAAI,EAAE,CAAA;QACtB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KACpC;IAAC,OAAO,CAAC,EAAE;QACV,mCAAmC;KACpC;IACD,MAAM,OAAO,EAAE,CAAA;IACf,iBAAiB,EAAE,CAAA;IACnB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AACnC,CAAC,CAAA,CAAA;AA2KQ,sCAAa;AAzKtB,SAAe,UAAU;;QACvB,IAAI;YACF,MAAM,kBAAS,C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,GAAG,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,GAAG,EAAE,GAAG;YAC3D,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QAClB,CAAC,CAAC,CAAA;IACJ,CAAC;CAAA;AAED,SAAS,oBAAoB,CAAC,GAAW;IACvC,EAAE,CAAC,SAAS,CAAC,uBAAuB,EAAE,GAAG,EAAE,UAAU,GAAG;QACtD,IAAI,GAAG;YAAE,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,GAAG,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/src/controllers/index.ts b/src/controllers/index.ts index 554f9a644..5f8a18e72 100644 --- a/src/controllers/index.ts +++ b/src/controllers/index.ts @@ -26,11 +26,8 @@ export async function set(app) { if (models && models.Subscription) { subcriptions.initializeCronJobs() } - try { - await media.cycleMediaToken() - } catch (e) { - console.log('=> could not auth with media server', e.message) - } + + media.cycleMediaToken() timers.reloadTimers() diff --git a/src/utils/setup.ts b/src/utils/setup.ts index 524b3545d..6a9085c98 100644 --- a/src/utils/setup.ts +++ b/src/utils/setup.ts @@ -19,7 +19,6 @@ const setupDatabase = async () => { // console.log("db sync failed", e) } await migrate() - setupOwnerContact() console.log('=> [db] setup done') } From 0b6408ae47aba9fac188bd5b3e4d5ac35578202f Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 20:21:40 +0000 Subject: [PATCH 07/10] test --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 182d773d6..16d21df3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,6 @@ FROM node:12-buster-slim AS builder WORKDIR /relay RUN mkdir /relay/.lnd -RUN touch /relay/connection_string.txt -RUN touch /relay/.lnd/sphinx.db -RUN chmod 777 /relay/connection_string.txt -RUN chmod 777 /relay/.lnd/sphinx.db -COPY --chown=1000:1000 . . RUN apt-get update @@ -19,6 +14,8 @@ RUN npm install RUN cp /relay/config/app.json /relay/dist/config/app.json RUN cp /relay/config/config.json /relay/dist/config/config.json +RUN chown -R 1000:1000 /relay + FROM node:12-buster-slim USER 1000 From 83cd2b123bec4a5478f1475dfc87d2162daf9b52 Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Wed, 16 Dec 2020 21:35:25 +0000 Subject: [PATCH 08/10] test --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 16d21df3e..1df991613 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:12-buster-slim AS builder WORKDIR /relay RUN mkdir /relay/.lnd +COPY . . RUN apt-get update From ba7a71df22c63c3d2a50dad252bf8603175128f1 Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Thu, 17 Dec 2020 10:05:29 +0000 Subject: [PATCH 09/10] Adding back chown --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1df991613..883fea8d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:12-buster-slim AS builder WORKDIR /relay RUN mkdir /relay/.lnd -COPY . . +COPY --chown=1000:1000 . . RUN apt-get update From 64643015da43cd921b729ad8fa4834fcc6c20cca Mon Sep 17 00:00:00 2001 From: Gonzalo Aune Date: Fri, 18 Dec 2020 11:37:48 +0000 Subject: [PATCH 10/10] set up tag again on build --- .github/workflows/docker-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 4b41d0795..f58f5774e 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -4,8 +4,8 @@ env: on: push: - branches: - - 'docker-build-test' + tags: + - '*' jobs: build: @@ -52,5 +52,5 @@ jobs: --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ - --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:test" \ + --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.RELEASE_TAG }}" \ --output "type=registry" ./