To set up OpenStack, please follow the steps outlined below. This documentation assumes that you have access to an OpenStack dashboard or want to register using deNBI.
- If you wish to use deNBI, please request an invite link.
- Once you receive the invite link, follow the instructions provided.
- You will be redirected to the deNBI site.
- On the deNBI site, you can also find a link to the OpenStack dashboard. Which is the starting point for the setup-chapter.
-
There is a helpful tutorial available that provides a step-by-step explanation of how to create all the necessary components to get your server up and running. The tutorial concludes with SSH access to the server.
When creating the security groups, ensure that you initially set the remote IP Address to
0.0.0.0
to ensure that everything works. The security group settings can be easily adjusted later on. -
Once done with installation you can use
ssh ubuntu@floating-ip
(e.g.ssh [email protected]
) to connect to the server.
Please follow this tutorial and use the manual approach.
This deployment will pull the repository, rebuild and restart the server every night. It is a very simple setup, that might not fit your needs! Please think about your deployment strategy first, before applying this blindly.
-
Create a token for GitHub to have clone and pull access to the private repository.
-
create a workspace with
mkdir workspace
and clone the repository into the workspace. -
install the environment needed to run the server. This could be java/miniconda/neo4j/... and can be done using the Requirements.mk file
-
create a script that does the following steps (an example can be found in the Makefile)
- stop the server
- pull git changes
- install all dependencies
- build the project
- restart the server
-
run the script via a cronjob
- create a cronjob by modifying the file of
crontab -e
(first read the boxes!) - to specify the time use this website
- all other necessary commands are in the articles below
- create a cronjob by modifying the file of
If you can't wait for the cronjob to run, you might want to follow these steps to restart the server:
- ssh into the server
conda activate pgdb
cd workspace/protein-graph-database
git pull
make deployment
- make sure to disconnect the process from the shell
- strg + z
- bg
- disown
All logs of cronjobs are saved in /var/mail/{user}
. To see them run for example: cat /var/mail/ubuntu
.