-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from martius-lab/various
Various
- Loading branch information
Showing
6 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
numpy | ||
comprl @ git+https://github.com/martius-lab/teamproject-competition-server.git#egg=comprl&subdirectory=comprl | ||
hockey @ git+https://[email protected]/martius-lab/laser-hockey-env.git@cc48daa135e2cca3e620b90431e57870f61d043c | ||
hockey @ git+https://[email protected]/martius-lab/hockey-env.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# extract databasepath from config.toml | ||
DB_PATH=$(python -c " | ||
import tomllib | ||
with open('config.toml', 'rb') as f: | ||
config = tomllib.load(f) | ||
print(config['CompetitionServer']['database_path']) | ||
") | ||
|
||
if [ -e "${DB_PATH}" ]; then | ||
echo "Database ${DB_PATH} already exists." | ||
exit 1 | ||
fi | ||
|
||
|
||
# create database | ||
python -m comprl.scripts.create_database ./config.toml | ||
|
||
python ../comprl-web-reflex/create_database_tables.py "${DB_PATH}" | ||
|
||
# add bot users | ||
comprl-users add "${DB_PATH}" bot-weak --role bot --password $(uuidgen) | ||
comprl-users add "${DB_PATH}" bot-strong --role bot --password $(uuidgen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
comprl | ||
numpy | ||
hockey @ git+https://[email protected]/martius-lab/laser-hockey-env.git@cc48daa135e2cca3e620b90431e57870f61d043c | ||
hockey @ git+https://[email protected]/martius-lab/hockey-env.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters