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

Commit e0806f8

Browse files
committed
remove build.xml, add summary of changes, add redis to docker-compose
1 parent 3361f6d commit e0806f8

File tree

165 files changed

+17
-28905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+17
-28905
lines changed

MAVEN_README.md

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

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ direct-app
22
==========
33

44
## building
5-
To build, download the docker build container that has all of the build dependencies. You can then run the container to build your local source code.
5+
To build, you should have installed jdk7 and maven3
66

7-
1. Clone the github source directory
7+
1. Run `./install-third-dep.sh` to install all dependence
88
2. Rename `token.properties.docker` to `token.properties` in the source directory
9-
3. Rename `topcoder_global.properties.docker` to `topcoder_global.properties`
10-
4. Unzip [jboss-4.2.3.zip](http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjboss%2Ffiles%2FJBoss%2FJBoss-4.2.3.GA%2F) in your root source directory. The build will place jboss deployment files here. It also needs some of its libraries for the build itself.
11-
5. Run the docker container to execute a build. The format of the command is `docker run --rm=true -v <source dir>:/data -t appiriodevops/tc-direct-app-build <ant target(s)>`.
9+
3. Run `mvn clean package -DskipTests=true` to build ear package
1210

13-
For example, `docker run --rm=true -v /Users/james/dev/topcoder/direct-app:/data -t appiriodevops/tc-direct-app-build clean package-direct deploy-prod`
14-
15-
> NOTE: the source directory should be writeable to Docker so use a directory under `/Users/<username>`
11+
> NOTE: the ear file is in the ear-web/target/
1612
1713
## running locally
1814
In this configuration, we'll run the direct app in a docker container locally but it unfortunately requires many dependencies so we'll need to run several containers and connect to the dev database. To run, follow these steps.
@@ -23,7 +19,7 @@ In this configuration, we'll run the direct app in a docker container locally bu
2319
2. Set the following environment variables:
2420
* TC_DEV_NAT_DIR : Local directory containing the pem file for accessing the dev NAT instance (used to create a tunnel to the dev informix instances)
2521
* TC_DIRECT_SRC_HOME : Local directory for the root direct-app directory
26-
3. Run `docker-compose up` from the `docker` subdirectory containing the `docker-compose.yml` file
22+
3. Run `docker-compose up` from the `root dir` containing the `docker-compose.yml` file
2723

2824

2925
This will start the app with an endpoint available on port 443. You can now go to https://docker.topcoder-dev.com/direct/enterpriseDashboard/activeContests.action
@@ -52,4 +48,13 @@ Deploy:
5248
* simply run 'ant deploy' to build all the components and the direct and deploy the direct to jboss
5349

5450

51+
## Summary of the changes for maven
52+
53+
1. Change `src/java/main` to `src/main/java`, `src/java/test` to `src/test/java` for all java modules
54+
2. Add `install-third-dep.sh` to install all dependence
55+
3. Add `pom.xml` to every java module
56+
4. Using `maven build` and `maven-resources-plugin` to build target file
57+
5. Move `root/src` to `root/app/src` to build `direct.war` file
58+
6. Add `ear-web` to build `direct.ear` and other packages that need to move to jboss
59+
7. Add `Dockerfile`, `docker-compose.yml` to root dir
5560

appspec-app.yml

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

appspec-web.yml

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

build-components.xml

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

build-configuration.xml

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

0 commit comments

Comments
 (0)