Cloud interface for Nautilus infrastructure
Before you begin you need to create an Oauth App
on Github (https://github.com/settings/developers) to be able to
log in. Authorization callback URL
needs to point to your app with the following path: /github-callback
. For
your local environment the whole uri will be: http://localhost:1234/github-callback
.
Fill in configuration in src/main/resources/reference.conf
for database and for github (Client ID
and Client Secret
taken from Oauth App
you've created) and run an app:
sbt run
You can provide your own configuration file called your-username-dev.conf
as well. Place it to src/main/resources/
and consider adding it to your local .gitignore file
to keep it away from being committed by accident.
Then you can run Nautilus-Cloud using following command:
sbt run -Dconfig.resource=your-username-dev.conf
#Docker It is possible to run a dockerized version of Nautilus Cloud. Assuming you have configured reference.conf correctly as described above (take note of the doobie.host config), follow these steps:
- Run
sbt assembly
. This will produce an uber jar that can then be picked up by docker. - Run
docker-compose up
. This will start Nautilus Cloud and its associated Postgres DB. - Open
localhost:1234
in your browser. You should be greeted by the basic landing page.
- swagger: http://localhost:1234/docs
- login-panel: http://localhost:1234/site
#Docker-based build
For Docker base build follow these steps:
1. Be in the root directory of the repo.
2. To build Nautilus-Cloud run `./docker/build/build-images.sh`
3. The final container will be named `nautilus-cloud:latest`. The `NC_JAVA_XMS` `NC_JAVA_XMX` env variables can be used to set Java `-Xms` and `-Xmx` parameters. The Nautilus-Cloud config file needs to be mount inside the container in `/nc.conf` location.