Compare commits

...

14 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
67ee3b1fdf Update freqtrade-NFIx5/config.yaml 2025-01-17 09:42:28 +01:00
6353046ddd update 2025-01-17 00:13:08 +01:00
8ebeffb14c test 2025-01-16 23:50:44 +01:00
8ac37a6307 fix some repos 2025-01-16 23:36:40 +01:00
f2ffd59b53 update 2025-01-16 22:22:26 +01:00
392bb4e338 Merge branch 'main' of https://mezgit.duckdns.org/mezned/HAddons 2025-01-16 22:21:51 +01:00
f3d8c9d307 update 2025-01-16 22:20:55 +01:00
3 changed files with 23 additions and 25 deletions

View File

@ -48,7 +48,10 @@ RUN apk add --no-cache \
lz4-dev \
zstd-dev \
curl-dev \
boost-dev
boost-dev \
re2-dev \
llvm-dev \
libffi-dev
# Clone the Apache Arrow source code
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
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 /freq
WORKDIR /freqtrade
# Clone the Freqtrade repository
RUN git clone https://github.com/freqtrade/freqtrade.git /freq
# Optionally, switch to the stable branch for novice users
ARG FREQTRADE_BRANCH=stable
RUN git checkout ${FREQTRADE_BRANCH}
RUN git clone -b stable --single-branch https://github.com/freqtrade/freqtrade.git /freqtrade
# Install Ta-lib
RUN chmod +x ./build_helpers/install_ta-lib.sh
WORKDIR /freq/build_helpers
WORKDIR /freqtrade/build_helpers
RUN ./install_ta-lib.sh
WORKDIR /freq
WORKDIR /freqtrade
RUN python3 -m venv .venv
RUN echo "source /freq/.venv/bin/activate" >> ~/.bashrc
RUN source /freq/.venv/bin/activate
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 /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/*
# Labels

View File

@ -17,10 +17,6 @@ host_network: true
host_pid: true
map:
- 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:
8989/tcp: 8989
options:
@ -59,6 +55,7 @@ schema:
api_server_password: str
api_server_jwt_secret_key: str
api_server_ws_token: str
timezone: str
dry_run: str
strategy: str
log_level: list(trace|debug|info|notice|warning|error|fatal)?

View File

@ -53,4 +53,13 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')"
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