-
Notifications
You must be signed in to change notification settings - Fork 16
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 #388 from aiarena/staging
Release v1.6.7
- Loading branch information
Showing
7 changed files
with
109 additions
and
2 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
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,14 @@ | ||
FROM python:3.7-slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y gcc libmariadb-dev | ||
|
||
COPY . /app | ||
|
||
WORKDIR /app/pip | ||
RUN pip install --upgrade pip | ||
RUN python pip-install.py | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements.DEVELOPMENT.txt | ||
|
||
WORKDIR /app |
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 @@ | ||
# PERSISTENCE LOCAL SETUP | ||
MYSQL_DATABASE=aiarena | ||
MYSQL_USER=aiarena | ||
MYSQL_PASSWORD=aiarena | ||
MYSQL_HOST=aiarena-mysql | ||
MYSQL_PORT=3306 | ||
MYSQL_ROOT_PASSWORD=root_password |
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,63 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
aiarena-redis: | ||
image: redis:latest | ||
container_name: aiarena-redis | ||
restart: unless-stopped | ||
ports: | ||
- "6379:6379" | ||
networks: | ||
- aiarena-network | ||
volumes: | ||
- aiarena-redis-data:/data | ||
|
||
aiarena-mysql: | ||
image: mysql:5.7 | ||
container_name: aiarena-mysql | ||
restart: unless-stopped | ||
env_file: | ||
- .env | ||
ports: | ||
- "3306:3306" | ||
networks: | ||
- aiarena-network | ||
volumes: | ||
- ./mysql/custom_init.sql:/docker-entrypoint-initdb.d/1.sql | ||
- aiarena-mysql-data:/var/lib/mysql | ||
|
||
aiarena-web: | ||
build: | ||
dockerfile: ./docker/Dockerfile | ||
context: ../../ | ||
container_name: aiarena-web | ||
restart: unless-stopped | ||
env_file: | ||
- .env | ||
ports: | ||
- "8000:8000" | ||
networks: | ||
- aiarena-network | ||
volumes: | ||
- aiarena-web-data:/data | ||
- ../.:/app | ||
depends_on: | ||
- aiarena-redis | ||
- aiarena-mysql | ||
command: > | ||
sh -c "python /app/manage.py collectstatic --noinput && | ||
python /app/manage.py migrate && | ||
python /app/manage.py runserver 0.0.0.0:8000" | ||
volumes: | ||
aiarena-redis-data: | ||
name: aiarena-redis-data | ||
aiarena-mysql-data: | ||
name: aiarena-mysql-data | ||
aiarena-web-data: | ||
name: aiarena-web-data | ||
|
||
networks: | ||
aiarena-network: |
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 @@ | ||
CREATE DATABASE aiarena; | ||
CREATE USER aiarena IDENTIFIED BY 'aiarena'; | ||
GRANT ALL PRIVILEGES ON aiarena.* TO aiarena WITH GRANT OPTION; |