-
Notifications
You must be signed in to change notification settings - Fork 59
Configure
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 a cloudcoder
directory, and cloudcoder/webapp
and cloudcoder/builder1
inside of it.
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.
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.
You run the configure command using cloudcoderApp.jar, but this command configures both cloudcoderApp.jar and cloudcoderBuilder.jar. This may not be intuitive.
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.
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, and ensure they match the values in your cloudcoder.properties files.
java -jar cloudcoderApp.jar listconfig
For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org