You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Local environment setup for Airavata server and Django portal
- Install the following
- Docker installed with 'docker-compose' utility
- Maven
- Git
- python3
- npm
- Clone the airavata repository using
- Checkout the develop branch
- Add a host entry to /etc/hosts file in local machine
- Navigate the project directory and go to the folder containing docker-compose.yml
- cd airavata/modules/ide-integration/src/main/resources/
- Start the services docker-compose up -d
- Check the status of the services. Make sure all are in status “Up” docker-compose ps
- Start the airavata server
- Build the project using mvn clean install -DskipTests. You can also open the project in intellij and use the intellij maven plugins to build the clean build install the project
- cd airavata/modules/ide-integration/src/main/java/org/apache/airavata/ide/integration
- Open APIServerStarter.java in intellij
- Run the main class and make sure the server is successfully started
- To start the django portal clone the project
- Go to airavata-django-portal directory
- Create a virtual environment
- Activate the environment
- Install all the libraries required by the portal
- pip install -r requirements.txt
- Copy django_airavata/settings_local.py.ide to django_airavata/settings_local.py. Make sure services url are pointing to localhost ports where your airavata services are running
- Run django migrations
- python3 manage.py migrate
- Build the JavaScript sources
- Load the default Wagtail CMS page
- python3 manage.py load_default_gateway
- Start the server
- python3 manage.py runserver
- Django server should be started on port 8000.
- Make sure you are able to login to http://localhost:8000/auth/login using uername : default-admin and password : 123456
Once the development environment is setup you can look into some of the open bugs. Merge requests are always welcomed.
- https://issues.apache.org/jira/browse/AIRAVATA-2873
- https://issues.apache.org/jira/browse/AIRAVATA-2809
- https://issues.apache.org/jira/browse/AIRAVATA-2985
- https://issues.apache.org/jira/browse/AIRAVATA-2887
- https://issues.apache.org/jira/browse/AIRAVATA-3053