From 77edf5618d261b4f5686b947e497362fe2cdcb14 Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Sat, 10 Jun 2023 10:52:09 -0700 Subject: [PATCH] use test image for simple compose --- simple_hummingbot_compose/README.md | 10 +++------- simple_hummingbot_compose/docker-compose.yml | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/simple_hummingbot_compose/README.md b/simple_hummingbot_compose/README.md index b115a04..1939cb5 100644 --- a/simple_hummingbot_compose/README.md +++ b/simple_hummingbot_compose/README.md @@ -48,14 +48,10 @@ Run this command from your root folder to grant read/write permission to the `hu sudo chmod -R a+rw ./hummingbot_files ``` -### 3. Populate scripts folder with examples +### 3. Populate scripts folder with example scripts +Run this command to copy the sample scripts into the `scripts` folder. Any new scripts you add here will also be available to your `hummingbot` instance. ``` -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" +docker cp hummingbot:/home/hummingbot/scripts-copy/. ./hummingbot_files/scripts/ ``` ### 4. Launch Hummingbot diff --git a/simple_hummingbot_compose/docker-compose.yml b/simple_hummingbot_compose/docker-compose.yml index 21687df..1c6dec9 100644 --- a/simple_hummingbot_compose/docker-compose.yml +++ b/simple_hummingbot_compose/docker-compose.yml @@ -2,14 +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/scripts:/home/hummingbot/scripts" - "./hummingbot_files/certs:/home/hummingbot/certs" logging: driver: "json-file"