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

Build script cleanup and CircleCI integration. #6

Merged
merged 2 commits into from
Apr 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .deploy/circleci/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All files and directories under this directory will be copy to tc-website root on circleci env before build
10 changes: 5 additions & 5 deletions build_distui.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project name="topcoder" default="main" basedir=".">
<property environment="env"/>
<property name="Name" value="TopCoder"/>
<property name="build" value="build"/>
<property name="war.dir" value="${build}/wars"/>
Expand All @@ -23,11 +24,10 @@
<property name="common.jar" value="${bin}/tcwebcommon.jar"/>
<property name="tccache.jar" value="${jars.dir}/tcs/tc_cache/1.0.0/tc_cache.jar"/>
<property name="web" value="src/main/com/topcoder/web"/>
<property name="jboss_home" value="/home/distui/jboss-4.2.0.GA"/>
<property name="jboss_deploy" value="${jboss_home}/server/distui/deploy"/>
<property name="jboss_lib" value="${jboss_home}/server/distui/lib"/>
<property name="jboss_conf" value="${jboss_home}/server/distui/conf"/>
<property environment="env"/>
<property name="jboss_home" value="${env.JBOSS_HOME}"/>
<property name="jboss_deploy" value="${jboss_home}/server/all/deploy"/>
<property name="jboss_lib" value="${jboss_home}/server/all/lib"/>
<property name="jboss_conf" value="${jboss_home}/server/all/conf"/>

<property name="deprecation" value="true"/>
<property name="debug" value="true"/>
Expand Down
2 changes: 1 addition & 1 deletion build_tc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@
<fileset dir="${jars.dir}/tcs/json_object/1.0">
<include name="json_object.jar"/>
</fileset>
<fileset dir="${jars.dir}/tcs">
<fileset dir="${jars.dir}/tcs/ldap_sdk_interface/1.0.2">
<include name="ldap_sdk_interface.jar"/>
</fileset>
<fileset dir="${jars.dir}">
Expand Down
14 changes: 14 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
machine:
services:
- docker

checkout:
pre:
- git clone https://github.com/topcoder-platform/tc-website-glue glue
- git clone https://github.com/topcoder-platform/tc-website-shared shared
- git clone https://github.com/topcoder-platform/tc-website-external-artifacts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't
git clone https://github.com/topcoder-platform/tc-website-external-artifacts be:
git clone https://github.com/topcoder-platform/tc-website-external-artifacts external-artifacts ?



test:
override:
- cp -Rf .deploy/circleci/* . && docker run -v ${HOME}:/root/tc-platform appiriodevops/tc-website:build
40 changes: 20 additions & 20 deletions resources/cache.properties
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
cache.primary = localhost:8501
#cache.primary = localhost:8501
#cache.secondary = 63.118.154.182:8502

# allow at most 25000 items in the cache
cache.size = 25000
#cache.size = 25000
# sync every 10 seconds
cache.synctime = 10000
#cache.synctime = 10000

# check every minute
cache.expirecheck = 60000
#cache.expirecheck = 60000
# expire after 10 hours
cache.expiretime = 3600000
#cache.expiretime = 3600000

### Use the following configurations to use JBoss Cache as cache ###

host_url = env.topcoder.com:2199
jndi_name = TCCache
cache_admin_jndi_name = TCCacheAdmin
cache_client_class=com.topcoder.web.common.cache.JbossCacheClient
#host_url = env.topcoder.com:2199
#jndi_name = TCCache
#cache_admin_jndi_name = TCCacheAdmin
#cache_client_class=com.topcoder.web.common.cache.JbossCacheClient

### Use the following configurations to use REDIS as cache ###
#cache_client_class=com.topcoder.web.common.cache.RedisCacheClient
#tc_subject_cache_address_class=com.topcoder.web.common.cache.address.TCSubjectAddress
#request_cache_address_class=com.topcoder.web.common.cache.address.RequestAddress
#
cache_client_class=com.topcoder.web.common.cache.RedisCacheClient
tc_subject_cache_address_class=com.topcoder.web.common.cache.address.TCSubjectAddress
request_cache_address_class=com.topcoder.web.common.cache.address.RequestAddress
#
#format: redis://username:password@my.host:6389
#redis.uri=redis://cache.topcoder.com:6379
#redis.maxTotalConnections=50
#redis.maxIdleConnections=30
#redis.minIdleConnections=1
redis.uri=redis://env.topcoder.com:6379
#
#
redis.maxTotalConnections=50
redis.maxIdleConnections=30
redis.minIdleConnections=1