From 5f69357de80275f8d122b962b0a051b3793e9893 Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Sat, 10 Jun 2023 10:48:51 -0700 Subject: [PATCH] use test docker images and revised readme --- hummingbot_gateway_compose/README.md | 4 ++-- hummingbot_gateway_compose/docker-compose.yml | 5 +++-- simple_hummingbot_compose/README.md | 5 +++++ simple_hummingbot_compose/docker-compose.yml | 1 + 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hummingbot_gateway_compose/README.md b/hummingbot_gateway_compose/README.md index 5de6536..3f69a7f 100644 --- a/hummingbot_gateway_compose/README.md +++ b/hummingbot_gateway_compose/README.md @@ -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 diff --git a/hummingbot_gateway_compose/docker-compose.yml b/hummingbot_gateway_compose/docker-compose.yml index 47f1246..394d269 100644 --- a/hummingbot_gateway_compose/docker-compose.yml +++ b/hummingbot_gateway_compose/docker-compose.yml @@ -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" diff --git a/simple_hummingbot_compose/README.md b/simple_hummingbot_compose/README.md index 2487f06..b115a04 100644 --- a/simple_hummingbot_compose/README.md +++ b/simple_hummingbot_compose/README.md @@ -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: diff --git a/simple_hummingbot_compose/docker-compose.yml b/simple_hummingbot_compose/docker-compose.yml index 633aaba..21687df 100644 --- a/simple_hummingbot_compose/docker-compose.yml +++ b/simple_hummingbot_compose/docker-compose.yml @@ -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"