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

Commit 40565cf

Browse files
authored
Merge pull request #1 from appirio-tech/master
Merge latest from upstream.
2 parents 1539bf7 + c93d068 commit 40565cf

23 files changed

+132
-873
lines changed

docker/direct-app/build/token.properties

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
j#######################################################
1+
#######################################################
22
# TopCoder Software Component Development Environment #
33
#######################################################
44

@@ -75,8 +75,10 @@ j#######################################################
7575
####################
7676
# cache.properties #
7777
####################
78-
@host_url@=tc-cache:2199
79-
@cache.primary@=tc-cache:8501
78+
#@host_url@=tc-cache:2199
79+
#@cache.primary@=tc-cache:8501
80+
@cache_client_class@=com.topcoder.web.common.cache.RedisCacheClient
81+
@redis_uri@=redis://tc-cache:6379
8082

8183

8284
###########################

docker/direct-app/docker-compose.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
version: '2'
22
services:
3+
tc-cache:
4+
image: "redis:3.2.5"
5+
ports:
6+
- "6379:6379"
37
tc-informix:
4-
image: "appiriodevops/informix:1b3d4ef"
8+
image: "appiriodevops/tc-database-scripts:latest"
59
hostname: informix.cloud.topcoder.com
10+
container_name: iif_innovator_c
11+
environment:
12+
LICENSE: accept
613
ports:
714
- "2021:2021"
15+
- "2022:2022"
16+
- "27017:27017"
17+
- "27018:27018"
18+
- "27883:27883"
19+
tty: true
20+
docker-elasticsearch-feeder:
21+
image: "appiriodevops/docker-elasticsearch:local"
22+
links:
23+
- "tc-informix"
24+
ports:
25+
- '9200:9200'
26+
- '9300:9300'
827
tc-direct-build:
928
image: "appiriodevops/direct-app:build"
1029
volumes:
@@ -14,6 +33,7 @@ services:
1433
image: "appiriodevops/direct-app:run-volume"
1534
links:
1635
- "tc-informix"
36+
- "tc-cache"
1737
hostname: cockpit.cloud.topcoder.com
1838
volumes:
1939
- "${BUILT_JBOSS_DIR}:/root/jboss-4.2.3.GA"
@@ -25,9 +45,10 @@ services:
2545
- "3973:3973"
2646
- "5446:5446"
2747
tc-direct:
28-
image: "appiriodevops/direct-app:04680b3"
48+
image: "appiriodevops/direct-app:latest"
2949
links:
3050
- "tc-informix"
51+
- "tc-cache"
3152
hostname: cockpit.cloud.topcoder.com
3253
ports:
3354
- "443:443"
@@ -36,3 +57,17 @@ services:
3657
- "1199:1199"
3758
- "3973:3973"
3859
- "5446:5446"
60+
run-auto-pilot:
61+
image: appiriodevops/online-review:autopilot-1.0
62+
container_name: run-auto-pilot
63+
links:
64+
- tc-informix:db
65+
run-online-review:
66+
image: appiriodevops/online-review:jboss-1.1
67+
container_name: run-online-review
68+
environment:
69+
- JAVA_OPTS=-Xms512m -Xmx1024m
70+
links:
71+
- tc-informix:db
72+
ports:
73+
- "80:8080"

docker/informix/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ We have created a informix docker for use locally, see https://hub.docker.com/r/
33

44
So basically, can run it like
55
```
6-
docker run -p 2021:2021 -it appiriodevops/informix:1b3d4ef
6+
docker run -p 2021:2021 -it appiriodevops/informix:6f3884d
77
```
88
then you can connect this informix server by using [ServerStudio](https://www.serverstudio.com/)
99
or other supported SQL client tool
1010

11-
1b3d4ef tag is the latest version by https://github.com/appirio-tech/tc-database-scripts, if there are new changes, please do as following
11+
6f3884d tag is the latest version by https://github.com/appirio-tech/tc-database-scripts, if there are new changes, please do as following
1212

1313
## How to update the informix docker with latest scripts svn
1414
1. run a container for the informix
1515
```
16-
docker run -it appiriodevops/informix:1b3d4ef bash
16+
docker run -it appiriodevops/informix:6f3884d bash
1717
```
1818

1919
2. cd trunk
20-
3. svn update (you need to enter your svn username and password)
21-
make necessory change if you want
20+
3. make necessory change if you want
2221
4. oninit
2322
5. ant reinstall_db
2423
6. onmode -ky
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Guide
2+
3+
Run the commands
4+
```
5+
# download the image
6+
docker pull ibmcom/informix-developer-database:latest
7+
8+
# run the informix image
9+
docker run -it --name iif_developer_edition --privileged -p 9088:9088 -p 9089:9089 -p 27017:27017 -p 27018:27018 -p 27883:27883 -e LICENSE=accept ibmcom/informix-developer-database:latest
10+
```
11+
12+
Copy the following files to the container:
13+
* apache-ant-1.9.8-bin.tar.gz - download it from http://mirrors.cnnic.cn/apache//ant/binaries/apache-ant-1.9.8-bin.tar.gz
14+
* files/ant-libs.tgz - it will extracted to apache-ant
15+
* tc-database-scripts - download it from https://github.com/appirio-tech/tc-database-scripts
16+
* files/build.properties - it will be copied to tc-database-scripts
17+
18+
You can use command like `docker cp {file} iif_developer_edition:/` to copy files to the root of the container, where {file} is the file or directory above.
19+
20+
Now log into the container with command `docker exec -it iif_developer_edition bash`, and execute the following commands in the container:
21+
'''
22+
# install jdk
23+
sudo apt-get update
24+
sudo apt-get install -y openjdk-7-jdk
25+
26+
# extract apache-ant to /opt
27+
tar -xzvf apache-ant-1.9.8-bin.tar.gz -C /opt
28+
29+
# extract the ant-libs to apache-ant's lib directory
30+
tar -xzvf /ant-libs.tgz -C /opt/apache-ant-1.9.8/lib
31+
32+
# create 4G datadbs dbspace
33+
touch /home/informix/data/spaces/datadbs.000
34+
chmod 660 /home/informix/data/spaces/datadbs.000
35+
onspaces -c -d datadbs -p /home/informix/data/spaces/datadbs.000 -o 0 -s 4194304
36+
37+
# copy the build.properties to tc-database-scripts
38+
cp /build.properties /tc-database-scripts
39+
40+
# copy the tc-database-scripts/connfile.sql.example as connfile.sql
41+
cp /tc-database-scripts/connfile.sql.example /tc-database-scripts/connfile.sql
42+
43+
# go to tc-database-scripts directory and setup db
44+
cd /tc-database-scripts
45+
/opt/apache-ant-1.9.8/bin/ant setup_db
46+
'''
1.61 MB
Binary file not shown.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# TopCoder Software Component Development Environment
2+
3+
# Informix environment variables
4+
INFORMIXDIR=/opt/IBM/informix
5+
DBACCESS=/opt/IBM/informix/bin/dbaccess
6+
INFORMIXSERVER=dev
7+
INFORMIXSQLHOSTS=/opt/IBM/informix/etc/sqlhosts.dev
8+
9+
# Properties to automatically start/stop Jboss. Supposed to be used mostly for Continuos Integration server
10+
# update_db=uncomment to reinstall db on each redeploy
11+
jdk_home=<<path to jdk>>
12+
bind_addr=127.0.0.1
13+
jnp_port=1099
14+
jboss_heap_size=512m
15+
sleep_before_stopping=10
16+
17+
# The location of the deployment directory for JBoss server.
18+
JBOSS_HOME=<<path_to_jboss>>
19+
20+
# Database server information
21+
database.server=localhost
22+
database.port=9088
23+
database.username=informix
24+
database.password=in4mix
25+
26+
# Whether to stop running scripts if any script failed.
27+
stoponerror=true
28+
29+
# SVN credentials
30+
svn.username=xxx
31+
svn.password=xxx
32+
33+
# if set, database scripts will be updated before setting up db.
34+
# svn.update=yes
35+
36+
# Important, a security lock to avoid dropping all databases
37+
dropdatabase=yes
38+
39+
# OnlineReview repository location to start/stop tools
40+
or_path=<<or_repository_path>>

docker/ldap/Dockerfile

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

docker/ldap/README.md

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

docker/ldap/openldap-config/TC_PROD_CA.key

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

docker/ldap/openldap-config/TC_PROD_CA.pem

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

docker/ldap/openldap-config/TC_PROD_CA.srl

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker/ldap/openldap-config/TC_PROD_CA_X509.pem

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

docker/ldap/openldap-config/ldap.conf

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

docker/ldap/openldap-config/ldap_server.csr

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

docker/ldap/openldap-config/ldap_servercrt.pem

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

0 commit comments

Comments
 (0)