Skip to content

Commit

Permalink
refactor: rename dpopp -> passport names and references where pos…
Browse files Browse the repository at this point in the history
…sible

- renames variable names, environment variables names
- updates github repo URL to new repo name "passport"
- updates ECR repository to new "passport" repository

Note: does not rename Pulumi project, since this will require
greater coordination with other devs to make the switch

[passportxyz#288]
  • Loading branch information
shavinac committed Jul 6, 2022
1 parent 9505689 commit 0af3131
Show file tree
Hide file tree
Showing 29 changed files with 64 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/app-cd-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
git fetch
git checkout -b review-app origin/review-app
git reset --hard origin/main
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/dPopp.git
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/passport.git
git push origin review-app -f
2 changes: 1 addition & 1 deletion .github/workflows/app-promote-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
git fetch
git checkout -b production-app origin/production-app
git reset --hard ${{ github.event.inputs.commit }}
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/dPopp.git
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/passport.git
git push origin production-app -f
2 changes: 1 addition & 1 deletion .github/workflows/app-promote-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
git fetch
git checkout -b staging-app origin/staging-app
git reset --hard ${{ github.event.inputs.commit }}
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/dPopp.git
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/passport.git
git push origin staging-app -f
4 changes: 2 additions & 2 deletions .github/workflows/iam-cd-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dpopp
ECR_REPOSITORY: passport
IMAGE_TAG: ${{ steps.vars.outputs.sha_short }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f iam/Dockerfile .
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_REVIEW }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_REVIEW }}
DOCKER_GTC_DPOPP_IMAGE: ${{secrets.ECR_URL_REVIEW}}:${{ needs.build-and-test.outputs.dockerTag }}
DOCKER_GTC_PASSPORT_IAM_IMAGE: ${{secrets.ECR_URL_REVIEW}}:${{ needs.build-and-test.outputs.dockerTag }}
ROUTE_53_ZONE: ${{ secrets.ROUTE53_ZONE_ID_REVIEW }}
DOMAIN: ${{ secrets.DOMAIN }}
IAM_SERVER_SSM_ARN: ${{ secrets.IAM_SERVER_SSM_ARN_REVIEW }}
4 changes: 2 additions & 2 deletions .github/workflows/iam-promote-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dpopp
ECR_REPOSITORY: passport
IMAGE_TAG: ${{ steps.vars.outputs.sha_short }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f iam/Dockerfile .
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_PRODUCTION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_PRODUCTION }}
DOCKER_GTC_DPOPP_IMAGE: ${{secrets.ECR_URL_PRODUCTION}}:${{ needs.build-and-test.outputs.dockerTag }}
DOCKER_GTC_PASSPORT_IAM_IMAGE: ${{secrets.ECR_URL_PRODUCTION}}:${{ needs.build-and-test.outputs.dockerTag }}
ROUTE_53_ZONE: ${{ secrets.ROUTE53_ZONE_ID_PRODUCTION }}
DOMAIN: passport-iam.gitcoin.co
IAM_SERVER_SSM_ARN: ${{ secrets.IAM_SERVER_SSM_ARN_PRODUCTION }}
4 changes: 2 additions & 2 deletions .github/workflows/iam-promote-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dpopp
ECR_REPOSITORY: passport
IMAGE_TAG: ${{ steps.vars.outputs.sha_short }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f iam/Dockerfile .
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }}
DOCKER_GTC_DPOPP_IMAGE: ${{secrets.ECR_URL_STAGING}}:${{ needs.build-and-test.outputs.dockerTag }}
DOCKER_GTC_PASSPORT_IAM_IMAGE: ${{secrets.ECR_URL_STAGING}}:${{ needs.build-and-test.outputs.dockerTag }}
ROUTE_53_ZONE: ${{ secrets.ROUTE53_ZONE_ID_STAGING }}
DOMAIN: ${{ secrets.DOMAIN }}
IAM_SERVER_SSM_ARN: ${{ secrets.IAM_SERVER_SSM_ARN_STAGING }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dPopp aka Gitcoin Passport
# Gitcoin Passport

## What is Passport?

Expand Down Expand Up @@ -32,17 +32,17 @@ When the review finishes, your pull request will be squashed and merged into the

## Bug Bounty

If you think you've found a security vulnerability, we maintain an open bounty on Gitcoin to help reward community members who report these issues. Check it out here: https://github.com/gitcoinco/dpopp/issues/133
If you think you've found a security vulnerability, we maintain an open bounty on Gitcoin to help reward community members who report these issues. Check it out here: https://github.com/gitcoinco/passport/issues/133

## Quick Start

Prerequisites: [Node (v16 LTS)](https://nodejs.org/en/download/) plus [Yarn](https://classic.yarnpkg.com/en/docs/install/) and [Git](https://git-scm.com/downloads)

1. Install dPopp (this will install all packages within the dPopp monorepo):
1. Install Gitcoin Passport (this will install all packages within the passport monorepo):

```sh
git clone https://github.com/gitcoinco/dPopp.git
cd dPopp
git clone https://github.com/gitcoinco/passport.git
cd passport
npm install --global lerna
lerna init
lerna bootstrap
Expand Down Expand Up @@ -73,7 +73,7 @@ yarn start

## app

The web app allowing users to interact with their dPopp. [README](app/README.md)
The web app allowing users to interact with their Gitcoin Passport. [README](app/README.md)

## database-client

Expand Down
20 changes: 10 additions & 10 deletions app/.env-example.env
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# .env
NEXT_PUBLIC_DPOPP_GOOGLE_CLIENT_ID=MY-APP-ID.apps.googleusercontent.com
NEXT_PUBLIC_DPOPP_TWITTER_CLIENT_ID=ABC123456789
NEXT_PUBLIC_DPOPP_TWITTER_CALLBACK=http://localhost:3000/
NEXT_PUBLIC_DPOPP_FACEBOOK_APP_ID=123456789
NEXT_PUBLIC_DPOPP_GITHUB_CLIENT_ID=12345678
NEXT_PUBLIC_DPOPP_GITHUB_CALLBACK=http://localhost:3000/
NEXT_PUBLIC_PASSPORT_GOOGLE_CLIENT_ID=MY-APP-ID.apps.googleusercontent.com
NEXT_PUBLIC_PASSPORT_TWITTER_CLIENT_ID=ABC123456789
NEXT_PUBLIC_PASSPORT_TWITTER_CALLBACK=http://localhost:3000/
NEXT_PUBLIC_PASSPORT_FACEBOOK_APP_ID=123456789
NEXT_PUBLIC_PASSPORT_GITHUB_CLIENT_ID=12345678
NEXT_PUBLIC_PASSPORT_GITHUB_CALLBACK=http://localhost:3000/

NEXT_PUBLIC_DPOPP_IAM_URL=http://localhost:80/api/
NEXT_PUBLIC_DPOPP_IAM_ISSUER_DID=did:key:z6MkghvGHLobLEdj1bgRLhS4LPGJAvbMA1tn2zcRyqmYU5LC
NEXT_PUBLIC_DPOPP_PROCEDURE_URL=http://localhost:80/procedure/
NEXT_PUBLIC_PASSPORT_IAM_URL=http://localhost:80/api/
NEXT_PUBLIC_PASSPORT_IAM_ISSUER_DID=did:key:z6MkghvGHLobLEdj1bgRLhS4LPGJAvbMA1tn2zcRyqmYU5LC
NEXT_PUBLIC_PASSPORT_PROCEDURE_URL=http://localhost:80/procedure/

NEXT_PUBLIC_DPOPP_MAINNET_RPC_URL=YOUR_RPC_URL
NEXT_PUBLIC_PASSPORT_MAINNET_RPC_URL=YOUR_RPC_URL
NEXT_PUBLIC_CERAMIC_CLIENT_URL=https://ceramic-clay.3boxlabs.com

NEXT_PUBLIC_DATADOG_APPLICATION_ID=some-uid-id
Expand Down
2 changes: 1 addition & 1 deletion app/__tests__/components/ProviderCards/EnsCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("when the verify button is clicked", () => {
fireEvent.click(initialVerifyButton!);

expect(fetchVerifiableCredential).toHaveBeenLastCalledWith(
process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "",
process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "",
{
type: "Ens",
version: "0.0.0",
Expand Down
6 changes: 3 additions & 3 deletions app/components/ProviderCards/BrightidCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { useDisclosure, useToast } from "@chakra-ui/react";
import { PROVIDER_ID, Stamp } from "@gitcoin/passport-types";
import { ProviderSpec } from "../../config/providers";

const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";

const providerId: PROVIDER_ID = "Brightid";

Expand Down Expand Up @@ -81,7 +81,7 @@ export default function BrightIdCard(): JSX.Element {
async function handleSponsorship(): Promise<void> {
datadogLogs.logger.info("Sponsoring user on BrightId", { provider: providerId });
setCredentialResponseIsLoading(true);
const res = fetch(`${process.env.NEXT_PUBLIC_DPOPP_PROCEDURE_URL?.replace(/\/*?$/, "")}/brightid/sponsor`, {
const res = fetch(`${process.env.NEXT_PUBLIC_PASSPORT_PROCEDURE_URL?.replace(/\/*?$/, "")}/brightid/sponsor`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down Expand Up @@ -138,7 +138,7 @@ export default function BrightIdCard(): JSX.Element {

async function handleVerifyContextId(): Promise<boolean> {
const res = await fetch(
`${process.env.NEXT_PUBLIC_DPOPP_PROCEDURE_URL?.replace(/\/*?$/, "")}/brightid/verifyContextId`,
`${process.env.NEXT_PUBLIC_PASSPORT_PROCEDURE_URL?.replace(/\/*?$/, "")}/brightid/verifyContextId`,
{
method: "POST",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/ProviderCards/EnsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { useDisclosure, useToast } from "@chakra-ui/react";
import { PROVIDER_ID, Stamp } from "@gitcoin/passport-types";
import { ProviderSpec } from "../../config/providers";

const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";

const providerId: PROVIDER_ID = "Ens";

Expand Down
2 changes: 1 addition & 1 deletion app/components/ProviderCards/FacebookCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface ReactFacebookLoginInfo {
}

// import from .env
const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";

const providerId: PROVIDER_ID = "Facebook";

Expand Down
4 changes: 2 additions & 2 deletions app/components/ProviderCards/GithubCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function GithubCard(): JSX.Element {
const state = "github-" + generateUID(10);
setState(state);

const githubUrl = `https://github.com/login/oauth/authorize?client_id=${process.env.NEXT_PUBLIC_DPOPP_GITHUB_CLIENT_ID}&redirect_uri=${process.env.NEXT_PUBLIC_DPOPP_GITHUB_CALLBACK}&state=${state}`;
const githubUrl = `https://github.com/login/oauth/authorize?client_id=${process.env.NEXT_PUBLIC_PASSPORT_GITHUB_CLIENT_ID}&redirect_uri=${process.env.NEXT_PUBLIC_PASSPORT_GITHUB_CALLBACK}&state=${state}`;
openGithubOAuthUrl(githubUrl);
}

Expand Down Expand Up @@ -86,7 +86,7 @@ export default function GithubCard(): JSX.Element {
// fetch and store credential
setLoading(true);
fetchVerifiableCredential(
process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "",
process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "",
{
type: providerId,
version: "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions app/components/ProviderCards/GoogleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import { PROVIDER_ID } from "@gitcoin/passport-types";
import { ProviderSpec } from "../../config/providers";

// import from .env
const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const googleClientId = process.env.NEXT_PUBLIC_DPOPP_GOOGLE_CLIENT_ID || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";
const googleClientId = process.env.NEXT_PUBLIC_PASSPORT_GOOGLE_CLIENT_ID || "";

const providerId: PROVIDER_ID = "Google";

Expand Down
2 changes: 1 addition & 1 deletion app/components/ProviderCards/PoapCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { DoneToastContent } from "../DoneToastContent";

import { PROVIDER_ID, Stamp } from "@gitcoin/passport-types";

const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";

const providerId: PROVIDER_ID = "POAP";

Expand Down
2 changes: 1 addition & 1 deletion app/components/ProviderCards/PohCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { UserContext } from "../../context/userContext";

import { PROVIDER_ID, Stamp } from "@gitcoin/passport-types";

const iamUrl = process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "";
const iamUrl = process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "";

// --- import components
import { Card } from "../Card";
Expand Down
7 changes: 3 additions & 4 deletions app/components/ProviderCards/TwitterCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useContext, useEffect, useState } from "react";

// --- Datadog
import { datadogLogs } from "@datadog/browser-logs";
import { datadogRum } from "@datadog/browser-rum";

import { debounce } from "ts-debounce";
import { BroadcastChannel } from "broadcast-channel";
Expand Down Expand Up @@ -37,14 +36,14 @@ export default function TwitterCard(): JSX.Element {
async function handleFetchTwitterOAuth(): Promise<void> {
// Fetch data from external API
const res = await fetch(
`${process.env.NEXT_PUBLIC_DPOPP_PROCEDURE_URL?.replace(/\/*?$/, "")}/twitter/generateAuthUrl`,
`${process.env.NEXT_PUBLIC_PASSPORT_PROCEDURE_URL?.replace(/\/*?$/, "")}/twitter/generateAuthUrl`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
callback: process.env.NEXT_PUBLIC_DPOPP_TWITTER_CALLBACK,
callback: process.env.NEXT_PUBLIC_PASSPORT_TWITTER_CALLBACK,
}),
}
);
Expand Down Expand Up @@ -87,7 +86,7 @@ export default function TwitterCard(): JSX.Element {
// fetch and store credential
setLoading(true);
fetchVerifiableCredential(
process.env.NEXT_PUBLIC_DPOPP_IAM_URL || "",
process.env.NEXT_PUBLIC_PASSPORT_IAM_URL || "",
{
type: providerId,
version: "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion app/context/ceramicContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { datadogRum } from "@datadog/browser-rum";
import { UserContext } from "./userContext";

// -- Trusted IAM servers DID
const IAM_ISSUER_DID = process.env.NEXT_PUBLIC_DPOPP_IAM_ISSUER_DID || "";
const IAM_ISSUER_DID = process.env.NEXT_PUBLIC_PASSPORT_IAM_ISSUER_DID || "";

export interface CeramicContextState {
passport: Passport | undefined | false;
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function Home() {
className="flex flex-wrap items-center justify-center p-2 text-base md:ml-auto md:mr-auto"
/>
<a
href="https://github.com/gitcoinco/dPopp"
href="https://github.com/gitcoinco/passport"
target="_blank"
rel="noopener noreferrer"
className="mt-4 inline-flex rounded py-1 px-20 text-base md:mt-0"
Expand Down
2 changes: 1 addition & 1 deletion app/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { CeramicContextProvider } from "../context/ceramicContext";
import { Provider as SelfIdProvider } from "@self.id/framework";
import Head from "next/head";

const FacebookAppId = process.env.NEXT_PUBLIC_DPOPP_FACEBOOK_APP_ID || "";
const FacebookAppId = process.env.NEXT_PUBLIC_PASSPORT_FACEBOOK_APP_ID || "";

function MyApp({ Component, pageProps }: AppProps) {
const facebookSdkScript = (
Expand Down
2 changes: 1 addition & 1 deletion app/utils/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import walletConnectModule from "@web3-onboard/walletconnect";
import walletLinkModule from "@web3-onboard/walletlink";

// RPC urls
const MAINNET_RPC_URL = process.env.NEXT_PUBLIC_DPOPP_MAINNET_RPC_URL as string;
const MAINNET_RPC_URL = process.env.NEXT_PUBLIC_PASSPORT_MAINNET_RPC_URL as string;

// Injected wallet
const injected = injectedModule();
Expand Down
2 changes: 1 addition & 1 deletion database-client/integration-tests/run-ceramic-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# === preliminary installs ===
yarn global add lerna
cd dpopp
cd passport
lerna bootstrap -- --ignore-scripts # skipping pre/postinstall scripts
yarn build:database-client

Expand Down
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ services:
ceramic-integration-test:
image: node:16
volumes:
- ./database-client:/dpopp/database-client
- ./schemas:/dpopp/schemas
- ./types:/dpopp/types
- ./lerna.json:/dpopp/lerna.json
- ./package.json:/dpopp/package.json
- ./tsconfig.json:/dpopp/tsconfig.json
- ./tsconfig.settings.json:/dpopp/tsconfig.settings.json
- ./yarn.lock:/dpopp/yarn.lock
- ./database-client:/passport/database-client
- ./schemas:/passport/schemas
- ./types:/passport/types
- ./lerna.json:/passport/lerna.json
- ./package.json:/passport/package.json
- ./tsconfig.json:/passport/tsconfig.json
- ./tsconfig.settings.json:/passport/tsconfig.settings.json
- ./yarn.lock:/passport/yarn.lock
entrypoint:
["sh", "/dpopp/database-client/integration-tests/run-ceramic-tests.sh"]
["sh", "/passport/database-client/integration-tests/run-ceramic-tests.sh"]
4 changes: 2 additions & 2 deletions iam/__tests__/facebook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Attempt verification", function () {
let validAccessTokenData: FacebookDebugResponse = {
app_id: process.env.FACEBOOK_APP_ID,
type: "USER",
application: "dpopp",
application: "Gitcoin Passport",
data_access_expires_at: tokenExpirationDate,
expires_at: tokenExpirationDate,
is_valid: true,
Expand Down Expand Up @@ -97,7 +97,7 @@ describe("Attempt verification", function () {
});
});

it("returns invalid response when app_id doesn't match dpopp app id", async () => {
it("returns invalid response when app_id doesn't match passport app id", async () => {
(axios.get as jest.Mock).mockResolvedValueOnce({
data: {
data: {
Expand Down
2 changes: 1 addition & 1 deletion infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export DOMAIN=...
# secrets manager resource ARN
export IAM_SERVER_SSM_ARN=...
# iam-server docker image in ECR
export DOCKER_GTC_DPOPP_IMAGE=...
export DOCKER_GTC_PASSPORT_IAM_IMAGE=...
```

## Pulumi deploy
Expand Down
4 changes: 2 additions & 2 deletions infra/production/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let route53Zone = `${process.env["ROUTE_53_ZONE"]}`;
let domain = `${process.env["DOMAIN"]}`;
let IAM_SERVER_SSM_ARN = `${process.env["IAM_SERVER_SSM_ARN"]}`;

export const dockerGtcDpoppImage = `${process.env["DOCKER_GTC_DPOPP_IMAGE"]}`;
export const dockerGtcPassportIamImage = `${process.env["DOCKER_GTC_PASSPORT_IAM_IMAGE"]}`;

//////////////////////////////////////////////////////////////
// Set up VPC
Expand Down Expand Up @@ -151,7 +151,7 @@ const service = new awsx.ecs.FargateService("dpopp-iam", {
executionRole: dpoppEcsRole,
containers: {
iam: {
image: dockerGtcDpoppImage,
image: dockerGtcPassportIamImage,
memory: 1024,
portMappings: [httpsListener],
links: [],
Expand Down
Loading

0 comments on commit 0af3131

Please sign in to comment.