Giter Club home page Giter Club logo

direct-app's Introduction

direct-app

building

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.

  1. Clone the github source directory

  2. Rename token.properties.docker to token.properties in the source directory

  3. Rename topcoder_global.properties.docker to topcoder_global.properties

  4. Unzip jboss-4.2.3.zip in your root source directory. The build will place jboss deployment files here. It also needs some of its libraries for the build itself.

  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)>.

    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

NOTE: the source directory should be writeable to Docker so use a directory under /Users/<username>

running locally

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.

NOTE: it is assumed you are running with the latest Docker toolbox and Docker compose (1.5+)

  1. Add this entry to your local /etc/hosts file: <docker ip> docker.topcoder-dev.com. This is needed for auth integration that requires the same top level domain. You can get the docker ip with the command docker-machine ip default
  2. Set the following environment variables:
  • 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)
  • TC_DIRECT_SRC_HOME : Local directory for the root direct-app directory
  1. Run docker-compose up from the docker subdirectory containing the docker-compose.yml file

    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

NOTE: the SSL certificate is self-signed as will generate a warning/error when you access the site for the first time. Just accept it and continue.


Test Users

direct_user/topcoder2001 (Use this user to login to Direct and create challenges in the Topcoder DEV environment. You can alsoo use this user to manipulate challenges in Online Review)

old instructions

Setup on Local env - Refer to http://apps.topcoder.com/wiki/display/docs/TC+Direct+Setup+Guide

  • Instead of using SVN, you will use the codes from this git repo

VM Info:

Build/Compile

  • run 'ant deploy'

Deploy:

  • simply run 'ant deploy' to build all the components and the direct and deploy the direct to jboss

direct-app's People

Contributors

hohosky avatar mashannon168 avatar skyhit avatar ajefts avatar deedee avatar tifletcher avatar shivamdixit avatar git4ve avatar isvisv avatar saurabhgupta-appirio avatar notpad avatar anjalijain avatar turtleship avatar kevintaron avatar sudo-tc avatar

Watchers

James Cloos avatar deepanshu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.