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

Commit 4e8cb70

Browse files
authored
Merge pull request #20 from liuliquan/master
TC Website - Marathon Match Update
2 parents cc7f86e + 7dd1e3d commit 4e8cb70

20 files changed

+152
-4507
lines changed

docker/tc-website/README.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ docker build -t appiriodevops/tc-website:httpd httpd
1919

2020
## Prepare tc-website Codebase
2121
Pull following repos into a directory (e.g. tc-platform):
22-
- https://github.com/topcoder-platform/tc-website (with commit hash: f5e9ec2e9e7d99f012e308b530947ab034948ad6 branch: svn2git)
23-
- https://github.com/topcoder-platform/tc-website-external-artifacts (with commit hash: 33100ff8b102ee8a386c4200d571b6c31c33fad1 branch: svn2git)
24-
- https://github.com/topcoder-platform/tc-website-glue (with commit hash: 61849f3601a25efc40390a59eedd8d1dc92eb4ef branch: svn2git)
25-
- https://github.com/topcoder-platform/tc-website-shared (with commit hash: fbbc0e49893bf972e46d7c73192a5592e39dab3b branch: svn2git)
26-
- https://github.com/topcoder-platform/tc-website-static (with commit hash: fc26666a6ee3a323cdd8de9e849a2e576352a656)
27-
- https://github.com/appirio-tech/temp-maven-repo (with commit hash:
28-
ae8fe01f5b2f1aec9baa52dcff6d7bf02c5d93bf)
22+
- https://github.com/topcoder-platform/tc-website
23+
- https://github.com/topcoder-platform/tc-website-external-artifacts
24+
- https://github.com/topcoder-platform/tc-website-glue
25+
- https://github.com/topcoder-platform/tc-website-shared
26+
- https://github.com/topcoder-platform/tc-website-static
27+
- https://github.com/appirio-tech/temp-maven-repo
2928

3029
## Checkout tc-website and all other repo
3130
```
@@ -66,8 +65,21 @@ Add the following entry to your hosts file:
6665

6766
Where `<docker-ip>` is the ip address of your docker box. It should be set to `127.0.0.1` on Linux or `192.168.99.100` on Windows/macOS if you are using Docker Toolbox.
6867

68+
## Test Data
69+
70+
Insert some test data into informix database. Also currently the database misses *user_sso_login* table, it needs be created:
71+
72+
```shell
73+
docker cp test_files/mm_test_data.sql iif_innovator_c:/tmp
74+
docker cp test_files/user_sso_login.sql iif_innovator_c:/tmp
75+
docker exec -it iif_innovator_c bash
76+
dbaccess informixoltp /tmp/mm_test_data.sql
77+
dbaccess common_oltp /tmp/user_sso_login.sql
78+
exit
79+
```
6980

7081
### Authentication
82+
7183
1. Visit https://local.tc.cloud.topcoder.com/tc - accept the self-signed SSL certificate. See http://take.ms/r5A9U
7284
2. Now visit https://local.tc.cloud.topcoder.com/tc?&module=Login - login with `heffan/password`. See http://take.ms/uxt4K
7385
3. You will be redirected to an interstitial page then the main site (https://www.topcoder.com/my-dashboard/). See http://take.ms/O3AaE
@@ -81,6 +93,22 @@ TC WAR:
8193

8294
Note that the links like https://local.tc.cloud.topcoder.com/challenges/design/active won't work.
8395

96+
Marathon Match WAR:
97+
98+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewActiveContests, the page is like: http://take.ms/18mww
99+
100+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewStandings&rd=13673, the page is like: http://take.ms/2TSYJ
101+
102+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewSubmissionHistory&cr=124834&rd=13673&compid=2020, the page is like: http://take.ms/Wp8cC
103+
104+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewExampleHistory&cr=124834&rd=13673&compid=2020, the page is like: http://take.ms/HjZES
105+
106+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewProblemStatement&compid=2020&rd=13673, the page is like: http://take.ms/JKUfg
107+
108+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewReg&rd=13673, the page is like: http://take.ms/2iCRu
109+
110+
- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewRegistrants&rd=13673, the page is like: http://take.ms/F9jit
111+
84112
Query WAR:
85113
* Open https://local.tc.cloud.topcoder.com/query/query, the page is like: http://take.ms/UvcrU
86114

docker/tc-website/build/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ cp -f /root/files/TC.prod.ldap.keystore $JBOSS_HOME/bin
1515
cp -f /root/files/resources/paymentRanges.xml $JBOSS_HOME/server/all/conf
1616

1717
# init code
18+
cp -f /root/files/build_mm.xml /root/tc-platform/tc-website
1819
cp -f /root/files/resources/ApplicationServer.properties /root/tc-platform/tc-website/resources
1920
cp -f /root/files/distui/jboss-web.xml /root/tc-platform/tc-website/resources/distui
2021

2122
# deploy
2223
cd /root/tc-platform/tc-website
24+
ant -f build_mm.xml deploy
2325
ant -f build_tc.xml clean deploy
2426
ant -f build_distui.xml clean deploy

docker/tc-website/build/files/build_distui.xml

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)