forked from freqtrade/freqtrade
-
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 branch 'develop' into rename_master_branch
- Loading branch information
Showing
22 changed files
with
206 additions
and
88 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM freqtradeorg/freqtrade:develop | ||
|
||
# Install dependencies | ||
COPY requirements-dev.txt /freqtrade/ | ||
RUN apt-get update \ | ||
&& apt-get -y install git sudo vim \ | ||
&& apt-get clean \ | ||
&& pip install autopep8 -r docs/requirements-docs.txt -r requirements-dev.txt --no-cache-dir \ | ||
&& useradd -u 1000 -U -m ftuser \ | ||
&& mkdir -p /home/ftuser/.vscode-server /home/ftuser/.vscode-server-insiders /home/ftuser/commandhistory \ | ||
&& echo "export PROMPT_COMMAND='history -a'" >> /home/ftuser/.bashrc \ | ||
&& echo "export HISTFILE=~/commandhistory/.bash_history" >> /home/ftuser/.bashrc \ | ||
&& chown ftuser: -R /home/ftuser/ | ||
|
||
USER ftuser | ||
|
||
# Empty the ENTRYPOINT to allow all commands | ||
ENTRYPOINT [] |
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,44 @@ | ||
{ | ||
"name": "freqtrade Develop", | ||
|
||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
|
||
"service": "ft_vscode", | ||
|
||
"workspaceFolder": "/freqtrade/", | ||
|
||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"editor.insertSpaces": true, | ||
"files.trimTrailingWhitespace": true, | ||
"[markdown]": { | ||
"files.trimTrailingWhitespace": false, | ||
}, | ||
"python.pythonPath": "/usr/local/bin/python", | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"davidanson.vscode-markdownlint", | ||
"ms-azuretools.vscode-docker", | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line if you want start specific services in your Docker Compose config. | ||
// "runServices": [], | ||
|
||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
// "shutdownAction": "none", | ||
|
||
// Uncomment the next line to run commands after the container is created - for example installing curl. | ||
// "postCreateCommand": "sudo apt-get update && apt-get install -y git", | ||
|
||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "ftuser" | ||
} |
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 @@ | ||
--- | ||
version: '3' | ||
services: | ||
ft_vscode: | ||
build: | ||
context: .. | ||
dockerfile: ".devcontainer/Dockerfile" | ||
volumes: | ||
# Allow git usage within container | ||
- "/home/${USER}/.ssh:/home/ftuser/.ssh:ro" | ||
- "/home/${USER}/.gitconfig:/home/ftuser/.gitconfig:ro" | ||
- ..:/freqtrade:cached | ||
# Persist bash-history | ||
- freqtrade-vscode-server:/home/ftuser/.vscode-server | ||
- freqtrade-bashhistory:/home/ftuser/commandhistory | ||
# Expose API port | ||
ports: | ||
- "127.0.0.1:8080:8080" | ||
command: /bin/sh -c "while sleep 1000; do :; done" | ||
|
||
|
||
volumes: | ||
freqtrade-vscode-server: | ||
freqtrade-bashhistory: |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ CONTRIBUTING.md | |
MANIFEST.in | ||
README.md | ||
freqtrade.service | ||
user_data |
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 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
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,7 @@ | ||
FROM freqtradeorg/freqtrade:develop_plot | ||
|
||
|
||
RUN pip install jupyterlab --no-cache-dir | ||
|
||
# Empty the ENTRYPOINT to allow all commands | ||
ENTRYPOINT [] |
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 @@ | ||
ARG sourceimage=develop | ||
FROM freqtradeorg/freqtrade:${sourceimage} | ||
|
||
# Install dependencies | ||
COPY requirements-plot.txt /freqtrade/ | ||
|
||
RUN pip install -r requirements-plot.txt --no-cache-dir | ||
|
||
# Empty the ENTRYPOINT to allow all commands | ||
ENTRYPOINT [] |
File renamed without changes.
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,16 @@ | ||
--- | ||
version: '3' | ||
services: | ||
ft_jupyterlab: | ||
build: | ||
context: .. | ||
dockerfile: docker/Dockerfile.jupyter | ||
restart: unless-stopped | ||
container_name: freqtrade | ||
ports: | ||
- "127.0.0.1:8888:8888" | ||
volumes: | ||
- "./user_data:/freqtrade/user_data" | ||
# Default command used when running `docker compose up` | ||
command: > | ||
jupyter lab --port=8888 --ip 0.0.0.0 --allow-root |
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
Oops, something went wrong.