Compare commits
12 Commits
392bb4e338
...
main
Author | SHA1 | Date | |
---|---|---|---|
f8ce15efbd | |||
855bc68d27 | |||
8931984de5 | |||
4feb1126d1 | |||
22a70359a1 | |||
fccfd6732b | |||
3b7b619dab | |||
67ee3b1fdf | |||
6353046ddd | |||
8ebeffb14c | |||
8ac37a6307 | |||
f2ffd59b53 |
@ -48,7 +48,10 @@ RUN apk add --no-cache \
|
|||||||
lz4-dev \
|
lz4-dev \
|
||||||
zstd-dev \
|
zstd-dev \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
boost-dev
|
boost-dev \
|
||||||
|
re2-dev \
|
||||||
|
llvm-dev \
|
||||||
|
libffi-dev
|
||||||
|
|
||||||
# Clone the Apache Arrow source code
|
# Clone the Apache Arrow source code
|
||||||
RUN git clone https://github.com/apache/arrow.git /arrow
|
RUN git clone https://github.com/apache/arrow.git /arrow
|
||||||
@ -77,39 +80,28 @@ RUN mkdir -p build && cd build && \
|
|||||||
# Cleanup Arrow source to reduce image size
|
# Cleanup Arrow source to reduce image size
|
||||||
RUN rm -rf /arrow
|
RUN rm -rf /arrow
|
||||||
|
|
||||||
# Upgrade pip to the latest version
|
|
||||||
RUN pip install --upgrade pip setuptools wheel setuptools_scm cython
|
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /freq
|
WORKDIR /freqtrade
|
||||||
|
|
||||||
# Clone the Freqtrade repository
|
# Clone the Freqtrade repository
|
||||||
RUN git clone https://github.com/freqtrade/freqtrade.git /freq
|
RUN git clone -b stable --single-branch https://github.com/freqtrade/freqtrade.git /freqtrade
|
||||||
# Optionally, switch to the stable branch for novice users
|
|
||||||
ARG FREQTRADE_BRANCH=stable
|
|
||||||
RUN git checkout ${FREQTRADE_BRANCH}
|
|
||||||
|
|
||||||
# Install Ta-lib
|
# Install Ta-lib
|
||||||
RUN chmod +x ./build_helpers/install_ta-lib.sh
|
RUN chmod +x ./build_helpers/install_ta-lib.sh
|
||||||
WORKDIR /freq/build_helpers
|
WORKDIR /freqtrade/build_helpers
|
||||||
RUN ./install_ta-lib.sh
|
RUN ./install_ta-lib.sh
|
||||||
|
|
||||||
WORKDIR /freq
|
WORKDIR /freqtrade
|
||||||
RUN python3 -m venv .venv
|
RUN python3 -m venv .venv
|
||||||
RUN echo "source /freq/.venv/bin/activate" >> ~/.bashrc
|
RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc
|
||||||
RUN source /freq/.venv/bin/activate
|
RUN source /freqtrade/.venv/bin/activate
|
||||||
|
# Upgrade pip to the latest version
|
||||||
|
RUN pip install --upgrade pip setuptools wheel setuptools_scm cython
|
||||||
RUN python3 -m pip install -r requirements.txt
|
RUN python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
# install freqtrade
|
# install freqtrade
|
||||||
RUN python3 -m pip install -e .
|
RUN python3 -m pip install -e .
|
||||||
|
|
||||||
# Activate the virtual environment (implicitly handled in entrypoint or CMD)
|
|
||||||
RUN echo "source /freq/.venv/bin/activate" >> ~/.bashrc
|
|
||||||
|
|
||||||
|
|
||||||
RUN pip install --user --no-cache-dir --no-build-isolation -r /freqtrade/tests/requirements.txt
|
|
||||||
|
|
||||||
RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
|
RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
|
||||||
|
|
||||||
# Labels
|
# Labels
|
||||||
|
@ -17,10 +17,6 @@ host_network: true
|
|||||||
host_pid: true
|
host_pid: true
|
||||||
map:
|
map:
|
||||||
- share:rw
|
- share:rw
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
|
||||||
- /share/fqm_bot_nfix5/user_data:/freqtrade/user_data
|
|
||||||
- /share/fqm_bot_nfix5/user_data/data:/freqtrade/user_data/data
|
|
||||||
- /share/fqm_bot_nfix5/configs:/freqtrade/configs
|
|
||||||
ports:
|
ports:
|
||||||
8989/tcp: 8989
|
8989/tcp: 8989
|
||||||
options:
|
options:
|
||||||
@ -59,6 +55,7 @@ schema:
|
|||||||
api_server_password: str
|
api_server_password: str
|
||||||
api_server_jwt_secret_key: str
|
api_server_jwt_secret_key: str
|
||||||
api_server_ws_token: str
|
api_server_ws_token: str
|
||||||
|
timezone: str
|
||||||
dry_run: str
|
dry_run: str
|
||||||
strategy: str
|
strategy: str
|
||||||
log_level: list(trace|debug|info|notice|warning|error|fatal)?
|
log_level: list(trace|debug|info|notice|warning|error|fatal)?
|
||||||
|
@ -53,4 +53,13 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')"
|
|||||||
|
|
||||||
bashio::log.info "starting the bot ..."
|
bashio::log.info "starting the bot ..."
|
||||||
|
|
||||||
exec /freqtrade/.venv/bin/freqtrade trade --db-url sqlite:////freqtrade/user_data/${FREQTRADE__BOT_NAME:-Example_Test_Account}_${FREQTRADE__EXCHANGE__NAME:-binance}_${FREQTRADE__TRADING_MODE:-spot}-tradesv3.sqlite --log-file /freqtrade/user_data/logs/${FREQTRADE__BOT_NAME:-Example_Test_Account}-${FREQTRADE__EXCHANGE__NAME:-binance}-${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}-${FREQTRADE__TRADING_MODE:-spot}.log
|
source /freqtrade/.venv/bin/activate
|
||||||
|
|
||||||
|
pip install --upgrade pip setuptools wheel setuptools_scm cython
|
||||||
|
pip install --no-cache-dir -r /share/fqm_bot_nfix5/tests/requirements.txt
|
||||||
|
|
||||||
|
source /freqtrade/.venv/bin/activate
|
||||||
|
freqtrade install-ui
|
||||||
|
cd /share/fqm_bot_nfix5
|
||||||
|
|
||||||
|
exec freqtrade trade --db-url sqlite:////share/fqm_bot_nfix5/user_data/${FREQTRADE__BOT_NAME:-Example_Test_Account}_${FREQTRADE__EXCHANGE__NAME:-binance}_${FREQTRADE__TRADING_MODE:-spot}-tradesv3.sqlite --log-file /share/fqm_bot_nfix5/user_data/logs/${FREQTRADE__BOT_NAME:-Example_Test_Account}-${FREQTRADE__EXCHANGE__NAME:-binance}-${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}-${FREQTRADE__TRADING_MODE:-spot}.log --config /share/fqm_bot_nfix5/user_data/config.json
|
Reference in New Issue
Block a user