use test docker images and revised readme

This commit is contained in:
Michael Feng
2023-06-10 10:48:51 -07:00
parent bc7cd02d83
commit 5f69357de8
4 changed files with 11 additions and 4 deletions

View File

@@ -59,12 +59,12 @@ sudo chmod -R a+rw ./hummingbot_files ./gateway_files
Populate Hummingbot scripts folder with example scripts from the Hummingbot image:
```
docker cp hummingbot:/home/hummingbot/scripts ./hummingbot_files/scripts
docker cp hummingbot:/home/hummingbot/scripts-copy/. ./hummingbot_files/scripts/
```
Populate Gateway lists folder from token lists from the Gateway image:
```
docker cp gateway:/home/gateway/src/templates/lists ./gateway_files/conf/lists
docker cp gateway:/home/gateway/src/templates/lists/. ./gateway_files/conf/lists/
```
### 3. Launch Hummingbot and generate certificates

View File

@@ -2,13 +2,14 @@ version: "3.9"
services:
hummingbot:
container_name: hummingbot
image: hummingbot/hummingbot:latest
image: hummingbot/hummingbot:scripts-copy
volumes:
- "./hummingbot_files/conf:/home/hummingbot/conf"
- "./hummingbot_files/conf/connectors:/home/hummingbot/conf/connectors"
- "./hummingbot_files/conf/strategies:/home/hummingbot/conf/strategies"
- "./hummingbot_files/logs:/home/hummingbot/logs"
- "./hummingbot_files/data:/home/hummingbot/data"
- "./hummingbot_files/scripts:/home/hummingbot/scripts"
- "./hummingbot_files/certs:/home/hummingbot/certs"
# environment:
# - CONFIG_PASSWORD=[password]
@@ -23,7 +24,7 @@ services:
gateway:
container_name: gateway
image: hummingbot/gateway:latest
image: hummingbot/gateway:move-list
ports:
- "15888:15888"
- "8080:8080"

View File

@@ -53,6 +53,11 @@ sudo chmod -R a+rw ./hummingbot_files
docker cp hummingbot:/home/hummingbot/scripts ./hummingbot_files/scripts
```
Now, uncommment out this line in the `docker-compose.yml` file in order to allow the Docker image to access these scripts. This step shouldn't be necessary in the future:
```
- "./hummingbot_files/scripts:/home/hummingbot/scripts"
```
### 4. Launch Hummingbot
Attach to the `hummingbot` instance:

View File

@@ -9,6 +9,7 @@ services:
- "./hummingbot_files/conf/strategies:/home/hummingbot/conf/strategies"
- "./hummingbot_files/logs:/home/hummingbot/logs"
- "./hummingbot_files/data:/home/hummingbot/data"
# - "./hummingbot_files/scripts:/home/hummingbot/scripts"
- "./hummingbot_files/certs:/home/hummingbot/certs"
logging:
driver: "json-file"