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

Rename tc-platform to tc-website and move httpd into its own image. #14

Merged
merged 4 commits into from
Apr 17, 2017

Conversation

deedee
Copy link

@deedee deedee commented Apr 13, 2017

No description provided.

- "8009:8009"
extra_hosts:
- "env.topcoder.com:172.16.100.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

May I ask why you have an IP address in the docker-compose?
Unless this is set by the docker daemon and is guaranteed to never change, it will not make the Dockerfile portable. If that is the case then it should be:

  • configured in env.sh and;
  • mentioned explicitly in the README.md.

Copy link
Author

Choose a reason for hiding this comment

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

We're using env.topcoder.com point to multiple container(cache and informix), the only way get on with this is point env.topcoder.com to host ip. It will be used by docker-compose to configure its network, see network section on docker-compose.yml.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK. One of the reviewers mentioned that they had issues with deployment on a different OS.
Were you able to test on more than one OS out of Linux, Windows and macOS?

Thanks.

Copy link
Author

Choose a reason for hiding this comment

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

Schpotsky has confirmed it works on mac. see his comment on here https://software.topcoder.com/review/actions/ViewReview?rid=388296
here is the screenshoot
https://drive.google.com/open?id=0B1ZT_oEfOX1wSzh2ZGRERV9WODQ

I don't what other reviewer face on. He face same trouble on previous challenge either.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have a MacBook I can use to test but that should not hold me back from approving the pull request once I am able to test the changes requested on Windows and/or Linux.

Thanks.


## Deployment
Update the configuration values in env.sh file from the submission:
* TC_PLATFORM_SRC_ROOT - the root directory of the tc-platform codebase, point to the tc-platform directory above
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

TC_PLATFORM_SRC_ROOT contains not only tc-website. I think it's better use TC_PLATFORM_HOME

Copy link
Collaborator

Choose a reason for hiding this comment

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

For consistency, TC_WEBSITE_HOME is better since:

  • the external-artifacts, glue and shared repos use the tc-website-* prefix.
  • the Dockerfiles have been renamed to now use tc-website instead of tc-platform.

Besides, tc-platform is obscure since there is no Topcoder system that uses such a name ;-).
Many members know which systems direct-app and online-review refers to.

git clone https://github.com/appirio-tech/temp-maven-repo
```

## Applying Patch
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • The Applying Patch section is specifically for reviewers of the challenge and should not be in the README.md.
  • The challenge explicitly requested for markdown formatted verification using screen shots instead you provided a PDF. PDF is a binary format and obviously doesn't play nice with git so please restore the former text in the Verification section below.


## Checkout tc-website and all other repo
```
mkdir -p $HOME/tc-platform
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please refactor this line mkdir -p $HOME/tc-platform to this:

TC_WEBSITE_HOME=/home/tc/tc-platform
mkdir -p $TC_WEBSITE_HOME

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/resources/ApplicationServer.properties /root/tc-platform/tc-website/resources
cp -f /root/files/resources/cache.properties /root/tc-platform/tc-website/resources
cp -f /root/files/resources/LDAP.properties /root/tc-platform/tc-website/resources
cp -f /root/files/distui/jboss-web.xml /root/tc-platform/tc-website/resources/distui
Copy link
Collaborator

Choose a reason for hiding this comment

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

@deedee,

I don't see a corresponding update in the list of files updated in the pull request for tc-website ?
Shouldn't jboss-web.xml be updated?

Thanks.

Copy link
Author

Choose a reason for hiding this comment

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

jboss-web.xml will be copied to jboss directory after deploying success. See last line of build.sh

So no need to change on tc-website

Copy link
Collaborator

@sah2ed sah2ed Apr 13, 2017

Choose a reason for hiding this comment

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

Oh, no wonder I didn't see it. The previous approach of overwriting the file before executing the build is better.
The ant build targets should be the last build-related command in the Dockerfile since it is also used to verify continuous deployment of the tc-website on CircleCI.

Copy link
Author

Choose a reason for hiding this comment

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

So you want to merge it to 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.

Overwriting it with /root/files/distui/jboss-web.xml like was done before is fine. No need to merge it with tc-website.

@@ -1,4 +1,4 @@
FROM tc-website:base
FROM appiriodevops/tc-website:base
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI, I've corrected the name of the base docker image.

@skyhit
Copy link
Collaborator

skyhit commented Apr 14, 2017

@sah2ed @ajefts I was thinking if we can abandon to use this local.tc.cloud.topcoder.com, and use local.topcoder.com or topcoder-local.com instead.

@sah2ed sah2ed changed the title renaming tc-platform to tc-website and moving httpd Rename tc-platform to tc-website and move httpd into its own image. Apr 17, 2017
@sah2ed
Copy link
Collaborator

sah2ed commented Apr 17, 2017

@skyhit I have no preference especially since the docker images are meant to replace the Amazon VMs which have been using the *.cloud.topcoder.com format for several years now.

@sah2ed sah2ed merged commit 2bd80cb into topcoder-archive:svn2git Apr 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants