Skip to content
Jaime Spacco edited this page Dec 13, 2012 · 4 revisions

Prev | Next

Download the binaries

Download the pre-compiled webapp and builder binaries

Then download the template cloudcoder.properties file

This should give you 3 files (Note that binaries might have version numbers appended to them, like cloudcoderApp-v0.1.jar):

cloudcoderApp.jar

cloudcoderBuilder.jar

cloudcoder.properties

Create your directory structure

Create a cloudcoder directory, and cloudcoder/webapp and cloudcoder/builder1 inside of it.

Configure the CloudCoder binaries

Put all 3 files you just downloaded into the cloudcoder directory that you just created.

Enter your configuration settings into cloudcoder.properties. Here is much more information about the cloudcoder.properties file to help you do so. The main things are to make sure that you set your database configuration information correctly.

Store your configuration settings into the binaries by running this command:

java -jar cloudcoderApp.jar configure

And follow the instructions. This will copy the configuration properties from your cloudcoder.properties file into the two jarfiles.

Here is a sample transcript of configuring the binaries.

Tip You should reply yes when asked if you want to create a new keystore. The keystore contains keys that are used for secure communication between the builder and the webapp.

Tip You run the configure command using cloudcoderApp.jar, but this command configures both cloudcoderApp.jar and cloudcoderBuilder.jar. This may not be intuitive.

Create the cloudcoder database tables (requires a running MySQL server)

Run this command:

java -jar cloudcoderApp.jar createdb

Here is a sample transcript of creating the database.

This command creates the cloudcoder database tables, as well as your initial cloudcoder user account. Note that the database should not already exist, but the mysql account should have sufficient permissions to create it. You will be prompted for the cloudcoder username and password you would like to use; you will use this username/password to log into the cloudcoder server and it does not need to match the mysql username or any other username.

Tip Be sure to use the default value for the exercise repository (https://cloudcoder.org/repo) or you will not be able to download or upload shared exercises. This value is stored in the database, not in the cloudcoder.properties file.

List your configuration properties

List your configuration properties, and ensure they match the values in your cloudcoder.properties files.

java -jar cloudcoderApp.jar listconfig

Install

Downloads

Screenshots

For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org

Clone this wiki locally