diff --git a/package.json b/package.json index 5a99c86e8..95f0d58c8 100644 --- a/package.json +++ b/package.json @@ -1,59 +1,60 @@ { "private": true, "license": "BSD-3-Clause", "workspaces": [ "lib", "web", "native", "keyserver", "landing", "desktop", "keyserver/addons/rust-node-addon", "native/expo-modules/comm-expo-package", "services/electron-update-server", "web/opaque-ke-wasm" ], "scripts": { "clean": "yarn workspace lib clean && yarn workspace web clean && yarn workspace native clean && yarn workspace keyserver clean && yarn workspace landing clean && yarn workspace desktop clean && yarn workspace rust-node-addon clean && yarn workspace electron-update-server clean && rm -rf node_modules/", "cleaninstall": "(killall flow || pkill flow || true) && yarn clean && yarn", "ci-cleaninstall": "yarn cleaninstall --frozen-lockfile --skip-optional --network-timeout 180000", "eslint:all": "eslint --report-unused-disable-directives .", "eslint:fix": "eslint --fix --report-unused-disable-directives .", "clang-format-all": "eval `node scripts/get-clang-paths-cli.js` | xargs clang-format -i", "rust-pre-commit": "./scripts/rust_pre_commit.sh", "terraform-pre-commit": "./scripts/terraform_pre_commit.sh", "prepare": "husky install", "arcpatch": "git pull --all --tags && arc patch", "postinstall": "bash ./postinstall.sh", "flow:all": "yarn workspace lib flow && yarn workspace web flow && yarn workspace landing flow && yarn workspace native flow && yarn workspace keyserver flow && yarn workspace desktop flow && yarn workspace electron-update-server flow", - "jest:all": "yarn workspace lib test && yarn workspace keyserver test && yarn workspace web test && yarn workspace native test" + "jest:all": "yarn workspace lib test && yarn workspace keyserver test && yarn workspace web test && yarn workspace native test", + "docker-build-push:identity": "./scripts/docker-build-push-identity.sh" }, "devDependencies": { "@babel/eslint-parser": "^7.23.3", "@stylistic/eslint-plugin-js": "^1.5.3", "clang-format": "^1.8.0", "core-js": "^3.6.5", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.6.1", "eslint-plugin-monorepo": "^0.3.2", "eslint-plugin-prettier": "^5.1.2", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-native": "^4.1.0", "eslint-plugin-unicorn": "^51.0.1", "find-up": "^5.0.0", "flow-mono-cli": "^1.5.0", "gaxios": "^4.3.2", "husky": "^7.0.0", "lint-staged": "^12.1.4", "patch-package": "^6.4.7", "postinstall-postinstall": "^2.0.0", "prettier": "^3.1.1" }, "resolutions": { "react-native-flipper": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz" } } diff --git a/scripts/docker-build-push-identity.sh b/scripts/docker-build-push-identity.sh new file mode 100755 index 000000000..572aaa216 --- /dev/null +++ b/scripts/docker-build-push-identity.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +TAG=$1 + +docker build --platform linux/amd64 -f services/identity/Dockerfile -t commapp/identity-server:"$TAG" . && docker push commapp/identity-server:"$TAG" diff --git a/services/terraform/remote/service_identity.tf b/services/terraform/remote/service_identity.tf index e2950746a..df0c588c0 100644 --- a/services/terraform/remote/service_identity.tf +++ b/services/terraform/remote/service_identity.tf @@ -1,300 +1,300 @@ locals { - identity_service_image_tag = local.is_staging ? "farcaster" : "0.12" + identity_service_image_tag = local.is_staging ? "0.13-staging" : "0.13" identity_service_server_image = "commapp/identity-server:${local.identity_service_image_tag}" identity_service_container_name = "identity-server" # Port that the container is listening on identity_service_container_grpc_port = 50054 identity_sc_port_name = "identity-service-ecs-grpc" identity_sc_dns_name = "identity-service" # Port that Websocket server listens on identity_service_container_ws_port = 51004 identity_sc_ws_port_name = "identity-service-ecs-ws" # URL accessible by other services in the same Service Connect namespace # This renders to e.g. 'http://identity-service:50054' identity_local_url = "http://${local.identity_sc_dns_name}:${local.identity_service_container_grpc_port}" # Port that is exposed to the public SSL endpoint (appended to domain name) identity_service_grpc_public_port = 50054 identity_service_domain_name = "identity.${local.root_domain}" opaque_server_setup_secret_name = "identity/ServerSetup" staging_allow_origin_list = <