Skip to content

Commit

Permalink
script to build metrics reporter image
Browse files Browse the repository at this point in the history
  • Loading branch information
iturricf committed Apr 3, 2024
1 parent 03d4fbb commit 6e364b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
9 changes: 8 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -10,7 +11,13 @@
"start": "next start",
"datadog": "ts-node ./scripts/datadog.ts",
"influxdb": "ts-node ./scripts/influxdb.ts",
"prettier": "prettier . --write"
"prettier": "prettier . --write",
"docker:login": "aws ecr get-login-password --region us-east-2 --profile $AWS_PROFILE_PRODUCTION | docker login --username AWS --password-stdin $AWS_ACCOUNT_PRODUCTION.dkr.ecr.us-east-2.amazonaws.com",
"docker:build": "docker build --platform=linux/amd64 --tag $(npm run --silent docker:prod-tag) . --file ./Dockerfile.influxdb",
"docker:prod-tag": "echo $AWS_ACCOUNT_PRODUCTION.dkr.ecr.us-east-2.amazonaws.com/airdrop-metrics-job:$(npm run --silent version)",
"docker:push": "yarn docker:login && docker push $(npm run --silent docker:prod-tag)",
"docker:build-push": "yarn docker:build && yarn docker:push",
"version": "jq --raw-output '.version' package.json"
},
"dependencies": {
"@aptos-labs/wallet-adapter-react": "^1.2.2",
Expand Down

0 comments on commit 6e364b6

Please sign in to comment.