Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update master with beta #217

Merged
merged 208 commits into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
007b2d6
Add dockerignore
ZIMkaRU Dec 15, 2021
5d46081
Add Dockerfile to setup grenache grapes
ZIMkaRU Dec 15, 2021
764bea5
Add bash entrypoint to launch grenache grapes
ZIMkaRU Dec 15, 2021
3f4b5bc
Add docker-compose config with grenache grapes
ZIMkaRU Dec 15, 2021
c3d3373
Add Dockerfile to setup main worker
ZIMkaRU Dec 15, 2021
7342652
Add bash entrypoint to launch main worker
ZIMkaRU Dec 17, 2021
e500737
Add .env into gitignore
ZIMkaRU Dec 17, 2021
42267f2
Add init steps to worker docker file
ZIMkaRU Dec 17, 2021
5f44b70
Fix dockerignore
ZIMkaRU Dec 17, 2021
7397c2d
Add worker service config to docker-compose
ZIMkaRU Dec 17, 2021
0bfc785
Fix secret key env var checking
ZIMkaRU Dec 17, 2021
041dc2b
Add bash entrypoint to launch express
ZIMkaRU Dec 17, 2021
8ebc24a
Add dockerfile for express
ZIMkaRU Dec 17, 2021
ac2ca35
Add express service config to docker-compose
ZIMkaRU Dec 17, 2021
aa14462
Fix logfiles paths
ZIMkaRU Jan 4, 2022
7fb396d
Fix network mode for grenache worker
ZIMkaRU Jan 4, 2022
93739b8
Fix worker entrypoint
ZIMkaRU Jan 4, 2022
7d78a14
Add maintenance stub layout
ZIMkaRU Jan 6, 2022
5609878
Add nginx config
ZIMkaRU Jan 6, 2022
b179342
Add ui-build bash script
ZIMkaRU Jan 6, 2022
d758940
Add dockerfile to build ui
ZIMkaRU Jan 6, 2022
0feda85
Add docker-compose services to proxy ui
ZIMkaRU Jan 6, 2022
5ae091b
Add env var file
ZIMkaRU Jan 6, 2022
879a5a8
Set nginx port via env var
ZIMkaRU Jan 7, 2022
0bdaf75
Set front build folder to nginx conf via env var
ZIMkaRU Jan 7, 2022
b4a85e8
Close express port
ZIMkaRU Jan 7, 2022
8591122
Add message when ui is build
ZIMkaRU Jan 7, 2022
da270b3
Add cache-control header for static files
ZIMkaRU Jan 7, 2022
55e601e
Improve nginx configs
ZIMkaRU Jan 7, 2022
708ce4d
Disable nginx log for prod env
ZIMkaRU Jan 10, 2022
2f1d765
Load nginx xslt module
ZIMkaRU Jan 11, 2022
6c54358
Setup nginx xslt stylesheet to get report csv files
ZIMkaRU Jan 11, 2022
5de8112
Add xslt format
ZIMkaRU Jan 11, 2022
0e5f291
Add processing csv to docker-compose conf
ZIMkaRU Jan 11, 2022
6599064
Setup nginx conf to auth to user csv local storage
ZIMkaRU Jan 13, 2022
1353e50
Remove auth token from query param for csv navigator
ZIMkaRU Jan 13, 2022
5b0f4f4
Enable express debug log for dev env
ZIMkaRU Jan 18, 2022
99904ec
Add cli bash script to sync repo submodules
ZIMkaRU Jan 18, 2022
eebd565
Add cli bash script to launch/relaunch docker-compose services
ZIMkaRU Jan 19, 2022
60d9f66
Improve usage help for sync-repo bash script
ZIMkaRU Jan 19, 2022
4022870
Add bash script to setup docker
ZIMkaRU Jan 20, 2022
cbe5b91
Fix get-docker script execution
ZIMkaRU Jan 21, 2022
94f34a5
Add ability to set syncing repo branch via dot env
ZIMkaRU Jan 21, 2022
0b19c3e
Add ability to sync repo from non-root dir
ZIMkaRU Jan 21, 2022
f92ef40
Add ability to setup app from non-root dir
ZIMkaRU Jan 21, 2022
4ae19e7
Remove log-db-csv files on setup step
ZIMkaRU Jan 21, 2022
8e0460f
Add ability to launch app from non-root dir
ZIMkaRU Jan 24, 2022
da27748
Generate secret key on setup step
ZIMkaRU Jan 24, 2022
a4f2da7
Add ability to setup repo branch
ZIMkaRU Jan 24, 2022
74eac91
Add ability to setup nginx port
ZIMkaRU Jan 24, 2022
fb7722a
Add ability to setup nginx host
ZIMkaRU Jan 24, 2022
8b637be
Make .env file from template if not exists
ZIMkaRU Jan 24, 2022
12bdab5
Ask to sync all repo/submodules at end of setup
ZIMkaRU Jan 24, 2022
e1ee9cf
Set configs into .env file
ZIMkaRU Jan 25, 2022
f58c898
Show .env file contents
ZIMkaRU Jan 25, 2022
d996c94
Fix setting nginx port
ZIMkaRU Jan 25, 2022
520bcab
Add ability to answer all questions yes automatically
ZIMkaRU Jan 25, 2022
aac77a2
Make csv and logs folders on setup step
ZIMkaRU Jan 26, 2022
160ed6c
Add ability to show maintenance page when updating app
ZIMkaRU Jan 26, 2022
8524f1a
Optimize launch script
ZIMkaRU Jan 26, 2022
e1b1bb4
Add deploy bash script
ZIMkaRU Jan 26, 2022
878b910
Fix autoindex format title
ZIMkaRU Jan 27, 2022
46b6a19
Remove redundant log
ZIMkaRU Jan 27, 2022
7f33916
Dont log secretKey to docker logs
ZIMkaRU Jan 27, 2022
690830f
Update better-sqlite3 to 7.5.0
ZIMkaRU Jan 28, 2022
ba7d6d0
Add ability to turn off nginx autoindex feature
ZIMkaRU Jan 28, 2022
8743596
Add docker release description to readme
ZIMkaRU Jan 31, 2022
3f04630
Use net error tester from main repo helper
ZIMkaRU Feb 3, 2022
5b4889a
Fix double response by ws when sing-in
ZIMkaRU Feb 10, 2022
1077c49
Add hepler to pick lower objs nums
ZIMkaRU Feb 8, 2022
53fb34b
Fix fees calc for account summary
ZIMkaRU Feb 8, 2022
6275bc9
Add helper to pick all lower objs nums
ZIMkaRU Feb 9, 2022
03db81a
Fix fees calc in obj for account summary
ZIMkaRU Feb 9, 2022
0770ab0
Merge pull request #207 from ZIMkaRU/feature/add-docker-file
prdn Mar 16, 2022
92bb10c
Merge pull request #208 from ZIMkaRU/bugfix/handle-net-disconnection-…
prdn Mar 16, 2022
cb528a6
Merge pull request #209 from ZIMkaRU/bugfix/fix-ws-double-response
prdn Mar 16, 2022
6ecc760
Merge pull request #210 from ZIMkaRU/bugfix/fix-sub-accounts-fees
prdn Mar 16, 2022
c960d04
Update bfx-report-ui sub-module
ZIMkaRU Mar 24, 2022
f949f28
Merge pull request #211 from ZIMkaRU/feature/update-sub-modules
prdn Mar 24, 2022
7897d85
Update ui sub-module
ZIMkaRU Mar 31, 2022
f4e31f7
Merge pull request #212 from ZIMkaRU/feature/update-ui-sub-module
prdn Apr 4, 2022
95ac49f
Update ui sub-module
ZIMkaRU Apr 6, 2022
679243b
Merge pull request #213 from ZIMkaRU/feature/update-ui-sub-module
prdn Apr 6, 2022
e99e720
Add terraform deploy variables
ZIMkaRU Feb 17, 2022
5a8f97e
Add terraform infrastructure confs for aws
ZIMkaRU Feb 17, 2022
c92b5cc
Output aws instance pub ip and dns
ZIMkaRU Feb 18, 2022
7ed92a9
Add instance lifecycle
ZIMkaRU Feb 18, 2022
39acf38
Rework terraform infrastructure
ZIMkaRU Feb 21, 2022
fb930d0
Add terraform states into gitignore
ZIMkaRU Feb 21, 2022
c1f0592
Fix setup bash script
ZIMkaRU Feb 22, 2022
f46f3e3
Add terraform vars to setup app
ZIMkaRU Feb 22, 2022
b430a2c
Make main terraform app setup flow
ZIMkaRU Feb 22, 2022
7f4ef28
Fix deploy script
ZIMkaRU Feb 23, 2022
33cdd91
Fix setting configs when setup
ZIMkaRU Feb 23, 2022
38478fd
Add template script to daploy via terraform
ZIMkaRU Feb 23, 2022
da88809
Fix setting repo branch to sync
ZIMkaRU Feb 23, 2022
dfaef6b
Make network module
ZIMkaRU Feb 28, 2022
a4b899d
Fix setup script
ZIMkaRU Mar 2, 2022
3baee8d
Fix network aws eip
ZIMkaRU Mar 2, 2022
e80e239
Add public dns output
ZIMkaRU Mar 2, 2022
33b7982
Use network module
ZIMkaRU Mar 2, 2022
da77763
Fix main output
ZIMkaRU Mar 2, 2022
4819b06
Fix main terraform vars
ZIMkaRU Mar 2, 2022
922136d
Make aws instance module
ZIMkaRU Mar 9, 2022
6c14667
Add aws instance module vars
ZIMkaRU Mar 9, 2022
32add27
Add aws instance module output
ZIMkaRU Mar 9, 2022
4742c9c
Use ec2 module
ZIMkaRU Mar 9, 2022
45bb3ba
Fix main terraform output
ZIMkaRU Mar 9, 2022
d3aa1af
Fix ec2 module vars
ZIMkaRU Mar 9, 2022
bee96c1
Fix aws vpc cidr_blocks
ZIMkaRU Mar 10, 2022
4015175
Add app update version used to launch deploy script
ZIMkaRU Mar 10, 2022
55ff936
Add bfx-ssh-key to gitignore
ZIMkaRU Mar 10, 2022
5a0eadd
Add terraform providers
ZIMkaRU Mar 10, 2022
fe1b0ab
Add remote-exec provisioner to deploy via ssh
ZIMkaRU Mar 10, 2022
aca9293
Make aws ssh key pair
ZIMkaRU Mar 10, 2022
922b0bb
Add ssh key name variable
ZIMkaRU Mar 10, 2022
5a2d769
Fix syncing repo when setup
ZIMkaRU Mar 11, 2022
92fb086
Fix deploy script execution
ZIMkaRU Mar 11, 2022
6940d5d
Make terraform ssh key gen module
ZIMkaRU Mar 11, 2022
3b5eff8
Add ssh key gen module outputs
ZIMkaRU Mar 11, 2022
406d64b
Add ssh key gen module vars
ZIMkaRU Mar 11, 2022
ea9d8d0
Use ssh key gen module
ZIMkaRU Mar 11, 2022
995af7c
Fix passing ssh priv key to ec2
ZIMkaRU Mar 11, 2022
3e9d604
Reinit terraform providers
ZIMkaRU Mar 11, 2022
d4f36cb
Add terraform state lock file to gitignore
ZIMkaRU Mar 11, 2022
4e911ec
Pass user name and root dir to deplot and setup scripts
ZIMkaRU Mar 14, 2022
fbe8761
Move provide section into separate file
ZIMkaRU Mar 14, 2022
72a6e9a
Add aws ssm secret_key param
ZIMkaRU Mar 14, 2022
8dd8b5d
Remove redundant terraform secret_key var
ZIMkaRU Mar 14, 2022
8d6be4b
Add new terraform providers
ZIMkaRU Mar 14, 2022
d68e887
Add aws volume attachment
ZIMkaRU Mar 16, 2022
3d3f499
Mount volume to db dir on init instance
ZIMkaRU Mar 16, 2022
137e970
Fix mounting volume when setup
ZIMkaRU Mar 17, 2022
5f9b16c
Set environment into env vars
ZIMkaRU Mar 17, 2022
84489eb
Add option to not remove dbs files on setup
ZIMkaRU Mar 17, 2022
ba03f5a
Fix remote-exec provisioner to not exec on setup
ZIMkaRU Mar 17, 2022
438c755
Move db volume device name to variables
ZIMkaRU Mar 17, 2022
cc5c718
Add configurable db volume variables
ZIMkaRU Mar 17, 2022
67546e1
Add ability to specify availability zone for ec2 instance
ZIMkaRU Mar 18, 2022
9a7c753
Add ability to specify availability zone for networking
ZIMkaRU Mar 18, 2022
7bf7a32
Set available zone name for curr region
ZIMkaRU Mar 18, 2022
8d96b01
Provide extra initial terraform conf params
ZIMkaRU Mar 18, 2022
98f93eb
Add ready state file to gitignore
ZIMkaRU Mar 18, 2022
6931f3b
Add module to generate and store secure string in aws ssm
ZIMkaRU Mar 21, 2022
323d1af
Add ssm param secure string outputs
ZIMkaRU Mar 21, 2022
8fc6c24
Add ssm param secure string variables
ZIMkaRU Mar 21, 2022
800c596
Use ssm param secure string module
ZIMkaRU Mar 21, 2022
d830983
Reinit terraform providers
ZIMkaRU Mar 21, 2022
479b182
Add ssh connect script name var
ZIMkaRU Mar 21, 2022
b5d7ca5
Automate ssh connection to worker ec2 instance
ZIMkaRU Mar 21, 2022
849097c
Add ssh entrypoint to gitignore
ZIMkaRU Mar 21, 2022
5e4b900
Implement db volume encryption
ZIMkaRU Mar 21, 2022
d46c0d8
Provide db volume options
ZIMkaRU Mar 21, 2022
099064a
Add module to provide aws kms key for volume encryption
ZIMkaRU Mar 22, 2022
f3967e8
Add aws kms key outputs
ZIMkaRU Mar 22, 2022
dc8db93
Add aws kms key variables
ZIMkaRU Mar 22, 2022
51f20ea
Use aws kms key module
ZIMkaRU Mar 22, 2022
bc45329
Move fetching user arn to main entrypoint
ZIMkaRU Mar 22, 2022
b45f918
Improve deploy process launching via remote-exec provisioner
ZIMkaRU Mar 22, 2022
44c3ec5
Add ability to specify secretKey for deploy bash script
ZIMkaRU Mar 23, 2022
3c49c87
Move all deploy process to remote-exec provisioner
ZIMkaRU Mar 23, 2022
411ea3f
Remove deploy process from cloud-init user_data
ZIMkaRU Mar 23, 2022
54ab0bc
Use timestamp instead of uuid for deploy trigger
ZIMkaRU Mar 23, 2022
dcf0c7a
Specify vpc module version
ZIMkaRU Mar 24, 2022
311e522
Add elastic ip to network for ec2 instance
ZIMkaRU Mar 24, 2022
c9a0624
Add eip association for instance
ZIMkaRU Mar 24, 2022
ddaecf2
Use network module instance eip
ZIMkaRU Mar 24, 2022
3637118
Add ability to specify aws instance type
ZIMkaRU Mar 25, 2022
9603843
Remove redundant update version var
ZIMkaRU Mar 25, 2022
da77e91
Update terraform/aws versions
ZIMkaRU Mar 25, 2022
29bd8b3
Reinit terraform providers
ZIMkaRU Mar 25, 2022
13904f9
Fix terraform vars example
ZIMkaRU Mar 28, 2022
5e8de19
Add backend s3 module to latest terraform version
ZIMkaRU Mar 28, 2022
8e617e6
Add aws replica provider
ZIMkaRU Mar 28, 2022
b5408a0
Add backend s3 variable
ZIMkaRU Mar 28, 2022
82e54d9
Add terraform backend s3 config example
ZIMkaRU Mar 28, 2022
7746a34
Add ability to force destroy backend s3 bucket
ZIMkaRU Mar 28, 2022
ac18641
Add terraform service files to gitignore
ZIMkaRU Mar 28, 2022
a86bcf6
Implement s3 backend module
ZIMkaRU Mar 29, 2022
edece81
Add s3 backend to main entrypoint
ZIMkaRU Mar 29, 2022
8efe1f7
Move aws credentials to separate config file
ZIMkaRU Mar 29, 2022
24df170
Add ability to disable s3 backend
ZIMkaRU Mar 29, 2022
8305547
Add credentials file to aws provider
ZIMkaRU Mar 29, 2022
98ff23c
Improve terraform section in gitignore
ZIMkaRU Mar 29, 2022
ed91ac2
Add s3 backend outputs
ZIMkaRU Mar 29, 2022
30945a4
Add name/workspace common tags to aws resources
ZIMkaRU Mar 30, 2022
1c712ad
Increase ssh server alive interval up to 30 min
ZIMkaRU Mar 30, 2022
98a82d5
Rework terraform infrastructure to simplify apply/destroy process
ZIMkaRU Mar 30, 2022
35b0ecf
Fix grenache worker startup via launch script
ZIMkaRU Mar 31, 2022
27bca05
Add 30sec delay to wait for grenache network
ZIMkaRU Mar 31, 2022
ff9e02e
Fix kms key iam policy to allow updating tags
ZIMkaRU Mar 31, 2022
f3e07f1
Fix public ip setting for ssh connection
ZIMkaRU Mar 31, 2022
b3eab3c
Add healthcheck option to dockerfile for grenache worker
ZIMkaRU Apr 1, 2022
e609d84
Add healthcheck for grenache-grape
ZIMkaRU Apr 4, 2022
44b9865
Add healthcheck for express
ZIMkaRU Apr 4, 2022
c3734ee
Rework healthcheck for worker
ZIMkaRU Apr 4, 2022
b76359e
Add bind host to express entrypoint
ZIMkaRU Apr 4, 2022
2b277c2
Add healthchecks support to docker-compose config
ZIMkaRU Apr 4, 2022
1f7689e
Kill container when unhealthy
ZIMkaRU Apr 4, 2022
986a1c9
Fix launch script for grapes
ZIMkaRU Apr 5, 2022
914940d
Remove sudo commands
ZIMkaRU Apr 5, 2022
14aa22a
Fix remote-exec provisioned for deployment
ZIMkaRU Apr 6, 2022
d88ad8e
Add main description for terraform infrastructure
ZIMkaRU Apr 6, 2022
e8a6277
Merge pull request #214 from ZIMkaRU/feature/add-terraform
prdn Apr 8, 2022
2697070
Update ui sub-module
ZIMkaRU Apr 8, 2022
cfe7a27
Merge pull request #215 from ZIMkaRU/feature/update-ui-sub-module
prdn Apr 8, 2022
3ef5927
Add persist password protection
ZIMkaRU Apr 8, 2022
2e9fb79
Merge pull request #216 from ZIMkaRU/feature/add-persist-password-pro…
prdn Apr 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.vscode
**/node_modules
**/.env
**/.env.example
**/.git
test
bfx-report-ui/build
*Dockerfile*
*docker-compose*
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NODE_ENV=production
UI_ENV=production
NGINX_ENV=production

NGINX_AUTOINDEX=on

REPO_BRANCH=master

NGINX_PORT=80
NGINX_HOST=localhost
SECRET_KEY=secretKey
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,18 @@ workers/loc.api/queue/temp/*.csv
workers/loc.api/queue/temp/*.zip
bfx-report-ui/.env
bfx-report-ui/src
.env
scripts/get-docker.sh
scripts/maintenance/maintenance.on
terraform/.terraform
terraform/*.tfstate
terraform/*.tfstate.backup
terraform/*.plan
terraform/terraform.tfvars
terraform/bfx-ssh-key.pem
terraform/worker-connect.sh
terraform/config/backend.conf
terraform/config/credentials.conf
terraform/backend.tf
terraform/.terraform.tfstate.lock.info
READY
36 changes: 36 additions & 0 deletions Dockerfile.express
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM node:14.16.0-alpine

ENV BIND_HOST "0.0.0.0"

WORKDIR /home/node/bfx-report-express

RUN apk add --no-cache --virtual \
.gyp \
python3 \
make \
g++ \
curl \
git \
openssh \
bash

COPY bfx-report-ui/bfx-report-express/package*.json \
bfx-report-ui/bfx-report-express/.npmrc \
./
RUN npm i --production --no-audit

COPY ./bfx-report-ui/bfx-report-express/config ./config
RUN cp config/default.json.example config/default.json

COPY ./bfx-report-ui/bfx-report-express .
COPY ./scripts/express-entrypoint.sh /usr/local/bin/

HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 \
CMD curl --retry-delay 10 --max-time 3 --retry 3 --retry-max-time 30 \
-f -X POST -H "Content-Type: application/json" \
-d '{ "method": "isSchedulerEnabled" }' \
http://${BIND_HOST}:${API_PORT}/api/json-rpc \
|| kill 1

ENTRYPOINT ["express-entrypoint.sh"]
CMD ["index.js"]
29 changes: 29 additions & 0 deletions Dockerfile.grenache-grape
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:14.16.0-alpine

ENV BIND_HOST "0.0.0.0"

WORKDIR /home/node/grenache-grape

RUN apk add --no-cache --virtual \
.gyp \
python3 \
make \
g++ \
curl \
git \
openssh \
bash

RUN git clone https://github.com/bitfinexcom/grenache-grape.git . \
&& npm i --production --no-audit

COPY ./scripts/grenache-grape-entrypoint.sh /usr/local/bin/

HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 \
CMD curl --retry-delay 10 --max-time 3 --retry 3 --retry-max-time 30 \
-f -X POST -d '{}' \
http://${BIND_HOST}:${GRAPE_APH} \
|| kill 1

ENTRYPOINT ["grenache-grape-entrypoint.sh"]
CMD ["bin/grape.js"]
21 changes: 21 additions & 0 deletions Dockerfile.ui-builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:14.16.0-alpine

WORKDIR /home/node/bfx-report-ui

RUN apk add --no-cache --virtual \
.gyp \
python3 \
make \
g++ \
git \
openssh \
bash

COPY ./scripts/maintenance/index.html var/www/html/maintenance.html
COPY ./bfx-report-ui/package*.json ./
RUN npm i --no-audit

COPY ./bfx-report-ui .
COPY ./scripts/build-ui.sh /usr/local/bin/

ENTRYPOINT ["build-ui.sh"]
61 changes: 61 additions & 0 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
FROM node:14.16.0-alpine

ARG GRC_VER="0.7.1"

WORKDIR /home/node/grenache-cli

RUN apk update && apk add --no-cache --virtual \
.gyp \
python3 \
make \
jq \
help2man \
gcc \
musl-dev \
autoconf \
automake \
libtool \
pkgconfig \
file \
patch \
bison \
clang \
flex \
curl \
perl \
perl-dev \
wget \
g++ \
git \
openssh \
bash

RUN wget -c https://github.com/bitfinexcom/grenache-cli/releases/download/${GRC_VER}/grenache-cli-${GRC_VER}.tar.xz \
&& tar -xf grenache-cli-${GRC_VER}.tar.xz \
&& cd grenache-cli-${GRC_VER} \
&& ./configure \
&& make \
&& make install \
&& grenache-keygen

WORKDIR /home/node/bfx-reports-framework

COPY package*.json .npmrc ./
RUN npm i --production --no-audit

COPY ./config ./config
RUN cp config/schedule.json.example config/schedule.json \
&& cp config/common.json.example config/common.json \
&& cp config/service.report.json.example config/service.report.json \
&& cp config/facs/grc.config.json.example config/facs/grc.config.json \
&& cp config/facs/grc-slack.config.json.example config/facs/grc-slack.config.json

COPY . .
COPY ./scripts/worker-entrypoint.sh /usr/local/bin/

HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 \
CMD grenache-lookup -g ${GRAPE_HOST} -p ${GRAPE_APH} "rest:report:api" \
|| kill 1

ENTRYPOINT ["worker-entrypoint.sh"]
CMD ["worker.js"]
Loading