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

TC WEBSITE - MARATHON MATCH UPDATE #20

Merged
merged 2 commits into from
Jun 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 35 additions & 7 deletions docker/tc-website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ docker build -t appiriodevops/tc-website:httpd httpd

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

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

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.

## Test Data

Insert some test data into informix database. Also currently the database misses *user_sso_login* table, it needs be created:

```shell
docker cp test_files/mm_test_data.sql iif_innovator_c:/tmp
docker cp test_files/user_sso_login.sql iif_innovator_c:/tmp
docker exec -it iif_innovator_c bash
dbaccess informixoltp /tmp/mm_test_data.sql
dbaccess common_oltp /tmp/user_sso_login.sql
exit
```

### Authentication

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

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

Marathon Match WAR:

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewActiveContests, the page is like: http://take.ms/18mww

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewStandings&rd=13673, the page is like: http://take.ms/2TSYJ

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewSubmissionHistory&cr=124834&rd=13673&compid=2020, the page is like: http://take.ms/Wp8cC

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewExampleHistory&cr=124834&rd=13673&compid=2020, the page is like: http://take.ms/HjZES

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewProblemStatement&compid=2020&rd=13673, the page is like: http://take.ms/JKUfg

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewReg&rd=13673, the page is like: http://take.ms/2iCRu

- Open https://local.tc.cloud.topcoder.com/longcontest/?module=ViewRegistrants&rd=13673, the page is like: http://take.ms/F9jit

Query WAR:
* Open https://local.tc.cloud.topcoder.com/query/query, the page is like: http://take.ms/UvcrU

Expand Down
2 changes: 2 additions & 0 deletions docker/tc-website/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ cp -f /root/files/TC.prod.ldap.keystore $JBOSS_HOME/bin
cp -f /root/files/resources/paymentRanges.xml $JBOSS_HOME/server/all/conf

# init code
cp -f /root/files/build_mm.xml /root/tc-platform/tc-website
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liuliquan
Instead of adding a modified copy of build_mm.xml to the docker image, better to submit a pull request against the tc-website repo for that file.

So please remove the cp command and the copy of build_mm.xml included with this pull request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry about that the build_mm.xml is stilled used for VM deployment, changing it in tc-website repo would possibly break the VM deployment.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, VM deployment still uses svn instead of git to set up the environment; besides the changes are to the dev branch which the PM could cherry pick before merging into master.

cp -f /root/files/resources/ApplicationServer.properties /root/tc-platform/tc-website/resources
cp -f /root/files/distui/jboss-web.xml /root/tc-platform/tc-website/resources/distui

# deploy
cd /root/tc-platform/tc-website
ant -f build_mm.xml deploy
ant -f build_tc.xml clean deploy
ant -f build_distui.xml clean deploy
241 changes: 0 additions & 241 deletions docker/tc-website/build/files/build_distui.xml

This file was deleted.

Loading