Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM python:3.9
RUN apt-get -y update
RUN apt-get -y install git
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "MARO Dev Container",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"postCreateCommand": "bash scripts/install_maro.sh && pip install -r ./requirements.dev.txt"
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ of user-defined functions for message auto-handling, cluster provision, and job
$Env:PYTHONPATH=PATH-TO-MARO
```

## Use MARO in [VSCode DevContainer](https://code.visualstudio.com/docs/devcontainers/containers)

- Prerequisites
- Install Docker on your local machine.
- Make sure your Docker daemon is running.
- Open MARO folder with VSCode.
- Open command palette by pressing `Ctrl/Cmd` + `Shift` + `P`.
- Type `Dev Containers: Rebuild and Reopen in Container` in the command palette and then prese `Enter` to start building dev container.
- The building process might takes a few minutes. After it is done, you are all set!


## Quick Example

```python
Expand Down
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Flask_SocketIO>=5.2.0
flloat==0.3.0
geopy>=2.0.0
holidays>=0.10.3
ipython
Jinja2>=2.11.3
kubernetes>=21.7.0
markupsafe==2.0.1
Expand Down