-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into update_to_python_3
- Loading branch information
Showing
21 changed files
with
121 additions
and
252 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 |
---|---|---|
|
@@ -63,4 +63,5 @@ anytask/media/ | |
.eggs | ||
sqlite3.db | ||
venv | ||
.idea/ | ||
.idea/ | ||
.vscode/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker-compose run mysql-db-sync ./db-sync.sh |
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,11 +1,77 @@ | ||
version: '3' | ||
version: '2' | ||
|
||
services: | ||
web: | ||
image: anytask | ||
environment: | ||
- DJANGO_SETTINGS_MODULE=anytask.settings_docker | ||
app: | ||
env_file: env.app | ||
restart: always | ||
image: ghcr.io/znick/anytask:python3.8 | ||
links: | ||
- "mariadb:mariadb" | ||
- "rb_symlink:rb_symlink" | ||
ports: | ||
- 80:80 | ||
- "8000:8000" | ||
- "3031:3031" | ||
volumes: | ||
- ./data:/app/data | ||
- "/var/lib/anytask/media:/var/lib/anytask/media" | ||
- "/var/log/anytask:/var/log/anytask" | ||
mem_limit: 6GB | ||
ulimits: | ||
nproc: 65535 | ||
nofile: | ||
soft: 40000 | ||
hard: 50000 | ||
ipython: | ||
restart: always | ||
env_file: env.ipython | ||
image: ghcr.io/anytask-org/jupiter_notebook_docker:latest | ||
mem_limit: 600M | ||
ports: | ||
- "5555:5555" | ||
- "8888:8888" | ||
mariadb: | ||
restart: always | ||
env_file: env.mariadb | ||
image: mariadb:10.7.3 | ||
expose: | ||
- "3306" | ||
volumes: | ||
- "/var/lib/anytask/mariadb:/var/lib/mysql" | ||
- "/var/lib/anytask/mariadb_cfg:/etc/mysql/conf.d" | ||
rb: | ||
restart: always | ||
env_file: env.rb | ||
image: ghcr.io/znick/reviewboard:latest | ||
links: | ||
- "mariadb:mariadb" | ||
ports: | ||
- "8181:8000" | ||
volumes: | ||
- "/var/lib/anytask/repos:/var/lib/anytask/repos" | ||
- "/var/lib/anytask/rb:/var/www" | ||
ulimits: | ||
nproc: 65535 | ||
nofile: | ||
soft: 40000 | ||
hard: 50000 | ||
|
||
easyCI2: | ||
restart: always | ||
image: ghcr.io/znick/easyci2:latest | ||
env_file: env.easyCI2 | ||
ports: | ||
- "8001:8000" | ||
- "3032:3031" | ||
|
||
rb_symlink: | ||
restart: always | ||
image: ghcr.io/znick/rb_fake_repo_creator:latest | ||
expose: | ||
- "4444" | ||
volumes: | ||
- "/var/lib/anytask/repos:/var/lib/anytask/repos" | ||
|
||
mysql-db-sync: | ||
image: ghcr.io/znick/mysql-db-sync:latest | ||
env_file: env.mysql-db-sync | ||
links: | ||
- "mariadb:mariadb" |
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,11 @@ | ||
DATABASE_URL="mysql://anytask:anytask@mariadb/anytask" | ||
DJANGO_MANAGEPY_MIGRATE="on" | ||
RB_API_URL="https://anytask.org/rb" | ||
RB_API_PASSWORD="RB_API_PASSWORD" | ||
RB_SYMLINK_SERVICE_URL="http://rb_symlink:4444" | ||
CONTEST_OAUTH="TOKEN" | ||
CONTEST_OAUTH_ID="TOKEN" | ||
CONTEST_OAUTH_PASSWORD="PASSWORD" | ||
PASSPORT_OAUTH_ID="TOKEN" | ||
PASSPORT_OAUTH_PASSWORD="PASSWORD" | ||
IPYTHON_URL="https://ipython.anytask.org/gate/" |
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,5 @@ | ||
GITLAB_REPO_ID="123321" | ||
GITLAB_TRIGGER_TOKEN="TOKEN" | ||
GITLAB_READ_PIPELINES_TOKEN="TOKEN" | ||
GITLAB_WEBHOOKS_TOKEN="TOKEN" | ||
PASSWORDS_JSON='{"https://anytask.org": { "username": "easyci_robot", "password": "PASS"}}' |
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,2 @@ | ||
ALLOW_ORIGIN="*" | ||
SALT="SALT" |
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 @@ | ||
MARIADB_ROOT_PASSWORD="PASS" |
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,10 @@ | ||
SRC_USER="root" | ||
SRC_PASS="PASS" | ||
SRC_HOST="mariadb" | ||
SRC_DB="anytask" | ||
SRC_TABLE="auth_user" | ||
DST_USER="root" | ||
DST_PASS="PASS" | ||
DST_HOST="mariadb" | ||
DST_DB="anytask_rb" | ||
DST_TABLE="auth_user" |
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,7 @@ | ||
DBHOST="mariadb" | ||
DBTYPE="mysql" | ||
DB="anytask_rb" | ||
DBUSER="anytask_rb" | ||
DBPASSWORD="PASS" | ||
LANG="C.UTF-8" | ||
LC_ALL="C.UTF-8" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
#!/bin/bash -x | ||
|
||
date | ||
docker compose pull | ||
docker compose up -d | ||
echo Done! | ||
date |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.