Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f382956

Browse files
authored
Merge pull request #147 from topcoder-platform/dev
root only file system
2 parents 73d922f + d398820 commit f382956

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

.circleci/config.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
version: 2
22
defaults: &defaults
33
docker:
4-
- image: circleci/python:2.7-stretch-browsers
4+
- image: cimg/python:3.11.0-browsers
55
install_dependency: &install_dependency
66
name: Installation of build and deployment dependencies.
77
command: |
8+
sudo apt update
89
sudo apt install jq
9-
sudo pip install awscli --upgrade
10-
sudo pip install docker-compose
10+
sudo apt install python3-pip
11+
sudo pip3 install awscli --upgrade
12+
sudo pip3 install docker-compose
1113
install_deploysuite: &install_deploysuite
1214
name: Installation of install_deploysuite.
1315
command: |
14-
git clone --branch v1.4.8 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
16+
git clone --branch v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
1517
cp ./../buildscript/master_deploy.sh .
1618
cp ./../buildscript/buildenv.sh .
1719
cp ./../buildscript/awsconfiguration.sh .
@@ -55,6 +57,14 @@ jobs:
5557
APPNAME: "mfe-header"
5658
steps: *builddeploy_steps
5759

60+
"build-qa":
61+
<<: *defaults
62+
environment:
63+
DEPLOY_ENV: "QA"
64+
LOGICAL_ENV: "qa"
65+
APPNAME: "mfe-header"
66+
steps: *builddeploy_steps
67+
5868
"build-prod":
5969
<<: *defaults
6070
environment:
@@ -76,6 +86,14 @@ workflows:
7686
- dev
7787
- feat/regsource
7888

89+
- "build-qa":
90+
context: org-global
91+
filters:
92+
branches:
93+
only:
94+
- qa
95+
96+
7997
# Production builds are exectuted only on tagged commits to the
8098
# master branch.
8199
- "build-prod":

config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = (() => {
44
const env = process.env.APPENV || "dev";
55

66
// for security reason don't let to require any arbitrary file defined in process.env
7-
if (["prod", "dev"].indexOf(env) < 0) {
7+
if (["prod", "dev", "qa"].indexOf(env) < 0) {
88
return require("./dev");
99
}
1010

config/qa.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
URL: {
3+
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder-qa.com", // "http://localhost:5000"
4+
AUTH: "https://accounts-auth0.topcoder-qa.com", // "http://localhost:5000"
5+
TC_NOTIFICATION_URL: "https://api.topcoder-qa.com/v5/notifications",
6+
CONNECT_DOMAIN: "https://connect.topcoder-qa.com",
7+
COMMUNITY_DOMAIN: "https://www.topcoder-qa.com",
8+
PLATFORM_DOMAIN: "https://platform.topcoder-qa.com",
9+
TAAS_APP: "https://platform.topcoder-qa.com/taas/myteams",
10+
PLATFORM_UI: "https://platform-ui.topcoder-qa.com",
11+
},
12+
API: {
13+
V3: "https://api.topcoder-qa.com/v3",
14+
V5: "https://api.topcoder-qa.com/v5",
15+
},
16+
REAUTH_OFFSET: 55, // seconds
17+
PROFILE_CREATION_DATE_THRESHOLD: "2021-10-25", // format: "YYYY-MM-DD"
18+
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"start-local-proxy": "sh start-local-proxy.sh",
77
"dev": "cross-env APPMODE=development webpack-dev-server",
88
"dev-https": "cross-env APPMODE=development webpack-dev-server --https",
9+
"qa": "cross-env APPMODE=development webpack-dev-server",
910
"build": "webpack --mode=${APPMODE:-development} --env.config=${APPENV:-dev}",
1011
"analyze": "webpack --mode=production --env.analyze=true",
1112
"lint": "eslint src --ext js",

0 commit comments

Comments
 (0)