Compare commits

...

7 Commits

Author SHA1 Message Date
f8ce15efbd Update freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run
freqtrade install-ui
2025-01-23 19:06:23 +01:00
855bc68d27 add config file 2025-01-17 14:20:44 +01:00
8931984de5 fix 2025-01-17 13:51:37 +01:00
4feb1126d1 fix 2025-01-17 13:11:41 +01:00
22a70359a1 fix typo 2025-01-17 12:22:20 +01:00
fccfd6732b Merge branch 'main' of https://mezgit.duckdns.org/mezned/HAddons 2025-01-17 11:13:14 +01:00
3b7b619dab fix typo 2025-01-17 11:13:09 +01:00
2 changed files with 13 additions and 11 deletions

View File

@ -49,7 +49,9 @@ RUN apk add --no-cache \
zstd-dev \
curl-dev \
boost-dev \
re2-dev
re2-dev \
llvm-dev \
libffi-dev
# Clone the Apache Arrow source code
RUN git clone https://github.com/apache/arrow.git /arrow
@ -78,9 +80,6 @@ RUN mkdir -p build && cd build && \
# Cleanup Arrow source to reduce image size
RUN rm -rf /arrow
# Upgrade pip to the latest version
RUN pip install --upgrade pip setuptools wheel setuptools_scm cython
# Set the working directory
WORKDIR /freqtrade
@ -96,15 +95,13 @@ WORKDIR /freqtrade
RUN python3 -m venv .venv
RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc
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
# install freqtrade
RUN python3 -m pip install -e .
# Activate the virtual environment (implicitly handled in entrypoint or CMD)
RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc
RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
# Labels

View File

@ -53,8 +53,13 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')"
bashio::log.info "starting the bot ..."
source /freqtrade/.venv/bin/freqtrade
source /freqtrade/.venv/bin/activate
pip install --user --no-cache-dir --no-build-isolation -r /share/fqm_bot_nfix5/tests/requirements.txt
pip install --upgrade pip setuptools wheel setuptools_scm cython
pip install --no-cache-dir -r /share/fqm_bot_nfix5/tests/requirements.txt
exec /freqtrade/.venv/bin/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
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