sudo yum install -y git python3 python3-pip python3-virtualenv python3-libselinux python3-libsemanage python3-policycoreutils
brew install git python gnu-tar
pip3 install virtualenv
# This step might be virtualenv-3 for you.
virtualenv ~/python
source ~/python/bin/activate
echo "source ~/python/bin/activate" | tee -a ~/.bash_profile
pip install setuptools_rust wheel
pip install --upgrade pip
pip install ansible selinux setools
sudo yum install -y maven
brew install maven
sudo pip3 install psycopg2-binary
sudo install -d -o $USER -g $USER /usr/local/src/serratus-api
git clone git@github.com:serratus-api/serratus-api.git /usr/local/src/serratus-api
ansible-galaxy install -r /usr/local/src/serratus-api/ansible/roles/requirements.yml
cd /usr/local/src/serratus-api && ansible-playbook install.yml -K
- In Eclipse, go to Help -> Eclipse Marketplace...
- Install "Maven Integration for Eclipse"
- In Eclipse, go to File -> Import...
- Select Maven -> Existing Maven Projects
- Click [ Next > ]
- Browse to the directory: /usr/local/src/serratus-api
- Click [ Finish ]
- In Eclipse, go to File -> Debug Configurations...
- Right click on Java Application -> New Configuration
- Name: serratus-api QuarkusApp
- Project: serratus-api
- Main class: io.serratus.api.enus.vertx.QuarkusApp
Setup the following VM arguments to disable caching for easier web development:
-DfileResolverCachingEnabled=false -Dvertx.disableFileCaching=true
Setup the following variables to setup the Vert.x verticle.
- CLUSTER_PORT: 10991
- CONFIG_PATH: /usr/local/src/serratus-api/config/serratus-api.yml
- SITE_INSTANCES: 5
- VERTXWEB_ENVIRONMENT: dev
- WORKER_POOL_SIZE: 2
- ZOOKEEPER_HOST_NAME: localhost
- ZOOKEEPER_PORT: 2181
Click [ Apply ] and [ Debug ] to debug the application.