Skip to content

Commit 24a4298

Browse files
committed
🚀 first commit
0 parents  commit 24a4298

File tree

135 files changed

+11684
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+11684
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/python-3/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
4+
ARG VARIANT="3"
5+
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
6+
7+
RUN apt-get update \
8+
&& apt-get -y install redis
9+
10+
USER vscode
11+
12+
RUN curl -sSL https://install.python-poetry.org | python3 -

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/python-3
3+
{
4+
"name": "Python 3",
5+
"dockerComposeFile": [
6+
"docker-compose.yaml"
7+
],
8+
"workspaceFolder": "/workspaces/project-mognet",
9+
"service": "mognet",
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"python.pythonPath": "/usr/local/bin/python",
13+
"python.linting.enabled": true,
14+
"python.linting.pylintEnabled": true,
15+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
16+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
17+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
18+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
19+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
20+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
21+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
22+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
23+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
24+
},
25+
// Add the IDs of extensions you want installed when the container is created.
26+
"extensions": [
27+
"ms-python.python",
28+
"ms-python.vscode-pylance"
29+
],
30+
"remoteEnv": {
31+
"PYTHONPATH": "."
32+
},
33+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
34+
// "forwardPorts": [],
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
37+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
38+
"remoteUser": "vscode"
39+
}

.devcontainer/docker-compose.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: "2.4"
2+
3+
services:
4+
mognet:
5+
build:
6+
context: ..
7+
dockerfile: .devcontainer/Dockerfile
8+
args:
9+
VARIANT: "3.8"
10+
INSTALL_NODE: "false"
11+
12+
mem_limit: 4g
13+
cpus: 2
14+
working_dir: /workspaces/project-mognet
15+
volumes:
16+
- ..:/workspaces/project-mognet:cached
17+
- vscode_server_data:/home/vscode/.vscode-server
18+
- cache:/home/vscode/.cache
19+
20+
command:
21+
- bash
22+
- -c
23+
- |
24+
set -e
25+
sudo chown -R vscode:vscode /home/vscode/.vscode-server
26+
sudo chown -R vscode:vscode /home/vscode/.cache
27+
exec sleep infinity
28+
29+
redis:
30+
image: redis
31+
mem_limit: 128m
32+
mem_reservation: 32m
33+
cpus: 0.25
34+
volumes:
35+
- results_backend_data:/data
36+
networks:
37+
default:
38+
aliases:
39+
- cps-results-backend
40+
41+
rabbitmq:
42+
image: rabbitmq:management
43+
mem_limit: 512m
44+
mem_reservation: 128m
45+
cpus: 0.5
46+
# Prevent huge memory usage by limiting the number
47+
# of file descriptors
48+
ulimits:
49+
nofile:
50+
soft: 8192
51+
hard: 8192
52+
53+
volumes:
54+
results_backend_data: {}
55+
vscode_server_data: {}
56+
cache: {}

.github/dco.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This enables DCO bot for you, please take a look https://github.com/probot/dco
2+
# for more details.
3+
require:
4+
members: false

0 commit comments

Comments
 (0)