Slightly modify docker instructions for arm64
This commit is contained in:
parent
f2add44253
commit
5e66d37d57
@ -67,21 +67,24 @@ Create a new directory and place the [docker-compose file](https://raw.githubuse
|
|||||||
# image: freqtradeorg/freqtrade:develop_pi
|
# image: freqtradeorg/freqtrade:develop_pi
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "ARM 64 Systenms (Jetson Nano, Mac M1, Raspberry Pi 4 8GB)"
|
=== "ARM 64 Systenms (Mac M1, Raspberry Pi 4, Jetson Nano)"
|
||||||
In case of a Mac M1, make sure that your docker installation is running in native mode
|
In case of a Mac M1, make sure that your docker installation is running in native mode
|
||||||
|
Arm64 images are not yet provided via Docker Hub and need to be build locally first.
|
||||||
|
Depending on the device, this may take a few minutes (Apple M1) or multiple hours (Raspberry Pi)
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
mkdir ft_userdata
|
# Clone Freqtrade repository
|
||||||
cd ft_userdata/
|
|
||||||
|
|
||||||
# arm64 images are not yet provided via Docker Hub and need to be build locally first. Depending on the device,
|
|
||||||
# this may take a few minutes (Apple M1) or up to two hours (Raspberry Pi)
|
|
||||||
git clone https://github.com/freqtrade/freqtrade.git
|
git clone https://github.com/freqtrade/freqtrade.git
|
||||||
docker build -f ./freqtrade/docker/Dockerfile.aarch64 -t freqtradeorg/freqtrade:develop_arm64 freqtrade
|
cd freqtrade
|
||||||
|
# Optionally switch to the stable version
|
||||||
|
git checkout stable
|
||||||
|
|
||||||
# Download the docker-compose file from the repository
|
# Modify your docker-compose file to enable building and change the image name
|
||||||
curl https://raw.githubusercontent.com/freqtrade/freqtrade/stable/docker-compose.yml -o docker-compose.yml
|
# (see the Note Box below for necessary changes)
|
||||||
|
|
||||||
|
# Build image
|
||||||
|
docker-compose build
|
||||||
|
|
||||||
# Create user directory structure
|
# Create user directory structure
|
||||||
docker-compose run --rm freqtrade create-userdir --userdir user_data
|
docker-compose run --rm freqtrade create-userdir --userdir user_data
|
||||||
|
|
||||||
@ -92,7 +95,10 @@ Create a new directory and place the [docker-compose file](https://raw.githubuse
|
|||||||
!!! Note "Change your docker Image"
|
!!! Note "Change your docker Image"
|
||||||
You have to change the docker image in the docker-compose file for your arm64 build to work properly.
|
You have to change the docker image in the docker-compose file for your arm64 build to work properly.
|
||||||
``` yml
|
``` yml
|
||||||
image: freqtradeorg/freqtrade:develop_arm64
|
image: freqtradeorg/freqtrade:custom_arm64
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: "./docker/Dockerfile.aarch64"
|
||||||
```
|
```
|
||||||
|
|
||||||
The above snippet creates a new directory called `ft_userdata`, downloads the latest compose file and pulls the freqtrade image.
|
The above snippet creates a new directory called `ft_userdata`, downloads the latest compose file and pulls the freqtrade image.
|
||||||
|
Loading…
Reference in New Issue
Block a user