这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fengtality
Copy link
Contributor

modify the Hummingbot + Gateway example to fit with hummingbot/gateway#126

@nikspz
Copy link
Contributor

nikspz commented Jun 9, 2023

For the mention: other installation operations added in this PR:

2. Set permissions and other initialization operations

Run this command from your root folder to grant read/write permission to the hummingbot_files and gateway_files sub-folders:

sudo chmod -R a+rw ./hummingbot_files ./gateway_files

Then

Populate Hummingbot scripts folder with example scripts from the Hummingbot image:

docker cp hummingbot:/home/hummingbot/scripts ./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

@nikspz
Copy link
Contributor

nikspz commented Jun 9, 2023

Test performed:

  • cloned fix branch, and cloned and set up Docker client + docker gateway, manually create docker images then

    • docker compose up -d
    • sudo chmod -R a+rw ./hummingbot_files ./gateway_files
    docker cp hummingbot:/home/hummingbot/scripts ./hummingbot_files/scripts
    
    docker cp gateway:/home/gateway/src/templates/lists ./gateway_files/conf/lists
    
    • docker attach hummingbot
    • gateway generate-certs
    • docker compose down
    • uncomment and fill passwords
    • docker compose up -d
    • docker attach hummingbot
    • docker attach gateway
  • Review Client started and gateway is ONLINE

  • connected uniswap arbitrum one successfully

  • Created/started amm_arb successfully and review profitability showing for amm_arb

  • started script from copied folder
    image

Pending test:
add a new token in folder and review

@fengtality
Copy link
Contributor Author

I revised the compose files and READMEs in the following examples to use test images scripts-copy and move-list for Hummingbot and Gateway.

@nikspz please re-test the Simple Hummingbot Compose and the Hummingbot Gateway Compose installations.

Copy link
Contributor

@david-hummingbot david-hummingbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple Hummingbot Compose

  • docker compose up -d
  • sudo chmod -R a+rw ./hummingbot_files
  • docker cp hummingbot:/home/hummingbot/scripts-copy/. ./hummingbot_files/scripts/
  • verified scripts files are present in the /scripts folder
  • docker attach hummingbot
  • run start --script and made sure scripts are showing - ok
  • run script - ok

Hummingbot Gateway Compose

  • docker compose up -d

  • sudo chmod -R a+rw ./hummingbot_files ./gateway_files

  • docker cp hummingbot:/home/hummingbot/scripts-copy/. ./hummingbot_files/scripts/

  • docker cp gateway:/home/gateway/src/templates/lists/. ./gateway_files/conf/lists/

  • checked if scripts are copied over to the /scripts folder - ok

  • verified /lists folder contains the tokenlists

  • docker attach hummingbot

  • gateway generate-certs

  • docker compose down

  • modify yaml files and fill in passwords

  • docker compose up -d

  • docker attach hummingbot

  • client showing gateway online

  • gateway connect uniswap - ok

  • gateway config ethereum - folder lists showing correctly

  • balance command works

@fengtality fengtality merged commit 5be062b into main Jun 13, 2023
@fengtality fengtality deleted the fix/add-copy-scripts branch June 13, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants