mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Some updates for README
This commit is contained in:
parent
d435a2417f
commit
dd2fcaa28d
39
README.md
39
README.md
@ -7,30 +7,41 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
In order to run jobs, Opaque needs access to a Docker swarm manager. Currently it's not possible to specify a dedicated Docker host, instead Opaque expects the executing system to to be a swarm manager.
|
1. Create Docker swarm
|
||||||
|
|
||||||
1. Get the source code and navigate into the code directory
|
The generated computational workload is handled by a [Docker](https://docs.docker.com/) swarm. A swarm is a group of machines that are running Docker and joined into a cluster. It consists out of two different kinds of members, managers and workers. Currently it is not possible to specify a dedicated Docker host, instead Opaque expects the executing system to be a swarm manager of a swarm with at least one dedicated worker machine. The [swarm setup](https://docs.docker.com/engine/swarm/swarm-tutorial/) process is described best in the Docker documentation.
|
||||||
|
|
||||||
|
|
||||||
|
2. Create shared network storage
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2. Get the source code and navigate into the code directory
|
||||||
```
|
```
|
||||||
git clone https://gitlab.ub.uni-bielefeld.de/sfb1288inf/opaque.git
|
git clone https://gitlab.ub.uni-bielefeld.de/sfb1288inf/opaque.git
|
||||||
cd opaque
|
cd opaque
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Create Docker swarm
|
2.1 Create a configuration file
|
||||||
|
|
||||||
2.1. Local
|
|
||||||
```
|
```
|
||||||
# Set the variable values in setup_local_swarm.sh (nano setup_local_swarm.sh)
|
touch .env
|
||||||
./setup_local_swarm.sh
|
# Account information of a mail account for sending emails to opaque users.
|
||||||
|
echo "MAIL_USERNAME=opaque@example.com" >> .env
|
||||||
|
echo "MAIL_PASSWORD=password" >> .env
|
||||||
|
echo "MAIL_SERVER=smtp.example.com" >> .env
|
||||||
|
echo "MAIL_PORT=587" >> .env
|
||||||
|
echo "MAIL_USE_TLS=true" >> .env
|
||||||
|
# A user registering with this email address will automatically promoted as an admin.
|
||||||
|
echo "OPAQUE_ADMIN=admin.opaque@example.com" >> .env
|
||||||
|
# Absolut path to an existing directory to save all opaque files.
|
||||||
|
echo "OPAQUE_STORAGE=/opaque/storage" >> .env
|
||||||
```
|
```
|
||||||
|
|
||||||
2.2. Distributed
|
2.2
|
||||||
|
|
||||||
2.2.1. Initialize swarm on manager machine
|
Create Python virtual environment, activate it and install the required python packages.
|
||||||
```
|
|
||||||
docker swarm init
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Create Python virtual environment, activate it and install the required python packages.
|
|
||||||
```
|
```
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
Loading…
Reference in New Issue
Block a user