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 pr/Antreasgr/4838
- Loading branch information
Showing
95 changed files
with
2,805 additions
and
1,359 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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
FROM freqtradeorg/freqtrade:develop | ||
|
||
USER root | ||
# Install dependencies | ||
COPY requirements-dev.txt /freqtrade/ | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install git mercurial sudo vim \ | ||
&& apt-get -y install git mercurial sudo vim build-essential \ | ||
&& 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 \ | ||
&& mv /root/.local /home/ftuser/.local/ \ | ||
&& chown ftuser:ftuser -R /home/ftuser/.local/ \ | ||
&& chown ftuser: -R /home/ftuser/ | ||
|
||
USER ftuser | ||
|
||
RUN pip install --user autopep8 -r docs/requirements-docs.txt -r requirements-dev.txt --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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
* encoding=UTF-8 | ||
*.py eol=lf | ||
*.sh eol=lf | ||
*.ps1 eol=crlf |
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,6 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Discord Server | ||
url: https://discord.gg/MA9v74M | ||
about: Ask a question or get community support from our Discord server |
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 |
---|---|---|
|
@@ -301,7 +301,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Cleanup previous runs on this branch | ||
uses: rokroskar/[email protected].2 | ||
uses: rokroskar/[email protected].3 | ||
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/stable' && github.repository == 'freqtrade/freqtrade'" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
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,4 +1,4 @@ | ||
FROM python:3.9.4-slim-buster as base | ||
FROM python:3.9.5-slim-buster as base | ||
|
||
# Setup env | ||
ENV LANG C.UTF-8 | ||
|
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,58 @@ | ||
FROM --platform=linux/arm64/v8 python:3.9.4-slim-buster as base | ||
|
||
# Setup env | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONFAULTHANDLER 1 | ||
ENV PATH=/home/ftuser/.local/bin:$PATH | ||
ENV FT_APP_ENV="docker" | ||
|
||
# Prepare environment | ||
RUN mkdir /freqtrade \ | ||
&& apt-get update \ | ||
&& apt-get -y install libatlas3-base curl sqlite3 libhdf5-serial-dev sudo \ | ||
&& apt-get clean \ | ||
&& useradd -u 1000 -G sudo -U -m ftuser \ | ||
&& chown ftuser:ftuser /freqtrade \ | ||
# Allow sudoers | ||
&& echo "ftuser ALL=(ALL) NOPASSWD: /bin/chown" >> /etc/sudoers | ||
|
||
WORKDIR /freqtrade | ||
|
||
# Install dependencies | ||
FROM base as python-deps | ||
RUN apt-get update \ | ||
&& apt-get -y install curl build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \ | ||
&& apt-get clean \ | ||
&& pip install --upgrade pip | ||
|
||
# Install TA-lib | ||
COPY build_helpers/* /tmp/ | ||
RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib* | ||
ENV LD_LIBRARY_PATH /usr/local/lib | ||
|
||
# Install dependencies | ||
COPY --chown=ftuser:ftuser requirements.txt requirements-hyperopt.txt /freqtrade/ | ||
USER ftuser | ||
RUN pip install --user --no-cache-dir numpy \ | ||
&& pip install --user --no-cache-dir -r requirements-hyperopt.txt | ||
|
||
# Copy dependencies to runtime-image | ||
FROM base as runtime-image | ||
COPY --from=python-deps /usr/local/lib /usr/local/lib | ||
ENV LD_LIBRARY_PATH /usr/local/lib | ||
|
||
COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local | ||
|
||
USER ftuser | ||
# Install and execute | ||
COPY --chown=ftuser:ftuser . /freqtrade/ | ||
|
||
RUN pip install -e . --user --no-cache-dir \ | ||
&& mkdir /freqtrade/user_data/ \ | ||
&& freqtrade install-ui | ||
|
||
ENTRYPOINT ["freqtrade"] | ||
# Default to trade mode | ||
CMD [ "trade" ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.