mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-23 15:10:08 +00:00
added update instructions to readme
This commit is contained in:
@@ -117,3 +117,35 @@ When you attach to it, the strategy or script should already be running:
|
|||||||
```
|
```
|
||||||
docker attach hummingbot
|
docker attach hummingbot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Updating to the Latest Version of Hummingbot
|
||||||
|
|
||||||
|
Hummingbot and Hummingbot Gateway are updated on a monthly basis, with each new version marked by a code release on Github and DockerHub, accompanied by the publication of comprehensive release notes. To upgrade to the most recent version, you just need to pull the `latest` Docker images.
|
||||||
|
|
||||||
|
Follow the steps below to upgrade your Hummingbot system:
|
||||||
|
|
||||||
|
1. **Ensure no containers are running**
|
||||||
|
|
||||||
|
Before you initiate the update process, it is crucial to verify that no Docker containers are currently running. Use the following command to shut down any active containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Fetch the latest Docker image**
|
||||||
|
|
||||||
|
Once you have confirmed that no containers are running, proceed to pull the latest Docker image. Use the following command to accomplish this:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/hummingbot
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Start the updated containers**
|
||||||
|
|
||||||
|
Having pulled the latest Docker image, you can now start up your containers. They will be running the latest version of Hummingbot. Use the following command to start the containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
With these steps, you will have successfully updated your Hummingbot to the latest version.
|
||||||
@@ -149,17 +149,6 @@ prompt_copy_certs () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_copy_lists () {
|
|
||||||
echo
|
|
||||||
read -p "Do you want to generate default token lists? [Y/N] >>> " PROCEED
|
|
||||||
if [[ "$PROCEED" == "Y" || "$PROCEED" == "y" ]]
|
|
||||||
then
|
|
||||||
mkdir $CONF_FOLDER/lists
|
|
||||||
sudo chmod a+rw $CONF_FOLDER/lists
|
|
||||||
docker cp $INSTANCE_NAME:/home/gateway/src/templates/lists/. $CONF_FOLDER/lists/
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Execute docker commands
|
# Execute docker commands
|
||||||
create_instance () {
|
create_instance () {
|
||||||
echo
|
echo
|
||||||
@@ -191,7 +180,6 @@ prompt_proceed
|
|||||||
if [[ "$PROCEED" == "Y" || "$PROCEED" == "y" ]]
|
if [[ "$PROCEED" == "Y" || "$PROCEED" == "y" ]]
|
||||||
then
|
then
|
||||||
create_instance
|
create_instance
|
||||||
prompt_copy_lists
|
|
||||||
else
|
else
|
||||||
echo "Aborted"
|
echo "Aborted"
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -59,16 +59,7 @@ sudo chmod -R a+rw ./hummingbot_files ./gateway_files
|
|||||||
|
|
||||||
You may run into read-only permission issues if you don't do this.
|
You may run into read-only permission issues if you don't do this.
|
||||||
|
|
||||||
### 3. Add token lists
|
### 3. Add scripts
|
||||||
|
|
||||||
Populate Gateway lists folder from token lists from the Gateway image:
|
|
||||||
```
|
|
||||||
docker cp gateway:/home/gateway/src/templates/lists/. ./gateway_files/conf/lists/
|
|
||||||
```
|
|
||||||
|
|
||||||
This step is needed to being able to interpret token symbols. Otherwise, you'll get "Token not supported" errors when you run Hummingbot. You can also copy individual [token lists](https://github.com/hummingbot/gateway/tree/main/src/templates/lists) into the `hummingbot_files/conf/lists` folder to make them available to your instance.
|
|
||||||
|
|
||||||
### 4. Add scripts
|
|
||||||
|
|
||||||
Populate Hummingbot scripts folder with example scripts from the Hummingbot image:
|
Populate Hummingbot scripts folder with example scripts from the Hummingbot image:
|
||||||
```
|
```
|
||||||
@@ -78,7 +69,7 @@ docker cp hummingbot:/home/hummingbot/scripts-copy/. ./hummingbot_files/scripts/
|
|||||||
This step is needed to being able to run the script examples. You can also copy individual [script examples](https://github.com/hummingbot/hummingbot/tree/master/scripts) into the `hummingbot_files/scripts` folder to make them available to your instance.
|
This step is needed to being able to run the script examples. You can also copy individual [script examples](https://github.com/hummingbot/hummingbot/tree/master/scripts) into the `hummingbot_files/scripts` folder to make them available to your instance.
|
||||||
|
|
||||||
|
|
||||||
### 5. Launch Hummingbot and generate certificates
|
### 4. Launch Hummingbot and generate certificates
|
||||||
|
|
||||||
Now, attach to the `hummingbot` instance:
|
Now, attach to the `hummingbot` instance:
|
||||||
```
|
```
|
||||||
@@ -103,7 +94,7 @@ Hummingbot will use the passphrase to generate the certificates and save them in
|
|||||||
|
|
||||||
Afterwards, run `exit` to exit Hummingbot.
|
Afterwards, run `exit` to exit Hummingbot.
|
||||||
|
|
||||||
### 6. Remove network
|
### 5. Remove network
|
||||||
|
|
||||||
Once you're back in Bash/Terminal, run the following command to remove the Compose project:
|
Once you're back in Bash/Terminal, run the following command to remove the Compose project:
|
||||||
```
|
```
|
||||||
@@ -118,7 +109,7 @@ You should see the following output:
|
|||||||
⠿ Network hummingbot_gateway_compose_default Removed
|
⠿ Network hummingbot_gateway_compose_default Removed
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Modify YAML file
|
### 6. Modify YAML file
|
||||||
|
|
||||||
Now, use an IDE like [VSCode](https://code.visualstudio.com/) to edit the `docker-compose.yml` file.
|
Now, use an IDE like [VSCode](https://code.visualstudio.com/) to edit the `docker-compose.yml` file.
|
||||||
|
|
||||||
@@ -149,7 +140,7 @@ The final `environment` section of the YAML file should look like this:
|
|||||||
|
|
||||||
Afterwards, save the file.
|
Afterwards, save the file.
|
||||||
|
|
||||||
### 8. Recreate network
|
### 7. Recreate network
|
||||||
|
|
||||||
Now, recreate the Compose project:
|
Now, recreate the Compose project:
|
||||||
```
|
```
|
||||||
@@ -178,3 +169,42 @@ For Gateway, check out the following docs:
|
|||||||
|
|
||||||
* [Testing with Postman](https://docs.hummingbot.org/gateway/testing/)
|
* [Testing with Postman](https://docs.hummingbot.org/gateway/testing/)
|
||||||
* [Using Gateway with Hummingbot](https://docs.hummingbot.org/gateway/setup/)
|
* [Using Gateway with Hummingbot](https://docs.hummingbot.org/gateway/setup/)
|
||||||
|
|
||||||
|
## Updating to the Latest Version of Hummingbot
|
||||||
|
|
||||||
|
Hummingbot and Hummingbot Gateway are updated on a monthly basis, with each new version marked by a code release on Github and DockerHub, accompanied by the publication of comprehensive release notes. To upgrade to the most recent version, you just need to pull the `latest` Docker images.
|
||||||
|
|
||||||
|
Follow the steps below to upgrade your Hummingbot system:
|
||||||
|
|
||||||
|
1. **Ensure no containers are running**
|
||||||
|
|
||||||
|
Before you initiate the update process, it is crucial to verify that no Docker containers are currently running. Use the following command to shut down any active containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Fetch the latest Docker Hummingbot image**
|
||||||
|
|
||||||
|
Once you have confirmed that no containers are running, proceed to pull the latest Hummingbot Docker image. Use the following command to accomplish this:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/hummingbot
|
||||||
|
```
|
||||||
|
3. **Fetch the latest Docker Gateway image**
|
||||||
|
|
||||||
|
Next, we'll need to also pull the latest Docker Gateway image
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/gateway
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Start the updated containers**
|
||||||
|
|
||||||
|
Having pulled the latest Docker image, you can now start up your containers. They will be running the latest version of Hummingbot. Use the following command to start the containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
With these steps, you will have successfully updated your Hummingbot + Gateway to the latest version.
|
||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
|
|
||||||
gateway:
|
gateway:
|
||||||
container_name: gateway
|
container_name: gateway
|
||||||
image: hummingbot/gateway:development
|
image: hummingbot/gateway:latest
|
||||||
ports:
|
ports:
|
||||||
- "15888:15888"
|
- "15888:15888"
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
|||||||
@@ -85,3 +85,43 @@ Go to http://localhost:8501 in your browser to see the Dashboard.
|
|||||||
Dashboard is a new experimental visualization layer for Hummingbot instances. For more information, see:
|
Dashboard is a new experimental visualization layer for Hummingbot instances. For more information, see:
|
||||||
* [Deploying Hummingbot + Dashboard on AWS](https://www.youtube.com/watch?v=xp_A8tZKKiA)
|
* [Deploying Hummingbot + Dashboard on AWS](https://www.youtube.com/watch?v=xp_A8tZKKiA)
|
||||||
* [Kicking Off the Hummingbot Dashboard Community Project](https://blog.hummingbot.org/hummingbot-dashboard-community-project/)
|
* [Kicking Off the Hummingbot Dashboard Community Project](https://blog.hummingbot.org/hummingbot-dashboard-community-project/)
|
||||||
|
|
||||||
|
|
||||||
|
## Updating to the Latest Version of Hummingbot + Dashboard
|
||||||
|
|
||||||
|
Hummingbot and Hummingbot Gateway are updated on a monthly basis, with each new version marked by a code release on Github and DockerHub, accompanied by the publication of comprehensive release notes. To upgrade to the most recent version, you just need to pull the `latest` Docker images.
|
||||||
|
|
||||||
|
Follow the steps below to upgrade your Hummingbot system:
|
||||||
|
|
||||||
|
1. **Ensure no containers are running**
|
||||||
|
|
||||||
|
Before you initiate the update process, it is crucial to verify that no Docker containers are currently running. Use the following command to shut down any active containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Fetch the latest Docker Hummingbot image**
|
||||||
|
|
||||||
|
Once you have confirmed that no containers are running, proceed to pull the latest Hummingbot Docker image. Use the following command to accomplish this:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/hummingbot
|
||||||
|
```
|
||||||
|
3. **Fetch the latest Docker Dashboard image**
|
||||||
|
|
||||||
|
Next, we'll need to also pull the latest Docker Dashboard image
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/dashboard
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Start the updated containers**
|
||||||
|
|
||||||
|
Having pulled the latest Docker image, you can now start up your containers. They will be running the latest version of Hummingbot. Use the following command to start the containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
With these steps, you will have successfully updated your Hummingbot + Gateway to the latest version.
|
||||||
@@ -167,3 +167,42 @@ To get started with Hummingbot, check out the following docs:
|
|||||||
* [Basic Features](https://docs.hummingbot.org/operation/)
|
* [Basic Features](https://docs.hummingbot.org/operation/)
|
||||||
* [Quickstart Guide](https://docs.hummingbot.org/quickstart/)
|
* [Quickstart Guide](https://docs.hummingbot.org/quickstart/)
|
||||||
* [Hummingbot FAQ](https://docs.hummingbot.org/faq/)
|
* [Hummingbot FAQ](https://docs.hummingbot.org/faq/)
|
||||||
|
|
||||||
|
## Updating to the Latest Version of Hummingbot + Gateway
|
||||||
|
|
||||||
|
Hummingbot and Hummingbot Gateway are updated on a monthly basis, with each new version marked by a code release on Github and DockerHub, accompanied by the publication of comprehensive release notes. To upgrade to the most recent version, you just need to pull the `latest` Docker images.
|
||||||
|
|
||||||
|
Follow the steps below to upgrade your Hummingbot system:
|
||||||
|
|
||||||
|
1. **Ensure no containers are running**
|
||||||
|
|
||||||
|
Before you initiate the update process, it is crucial to verify that no Docker containers are currently running. Use the following command to shut down any active containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Fetch the latest Docker Hummingbot image**
|
||||||
|
|
||||||
|
Once you have confirmed that no containers are running, proceed to pull the latest Hummingbot Docker image. Use the following command to accomplish this:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/hummingbot
|
||||||
|
```
|
||||||
|
3. **Fetch the latest Docker Gateway image**
|
||||||
|
|
||||||
|
Next, we'll need to also pull the latest Docker Gateway image
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/gateway
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Start the updated containers**
|
||||||
|
|
||||||
|
Having pulled the latest Docker image, you can now start up your containers. They will be running the latest version of Hummingbot. Use the following command to start the containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
With these steps, you will have successfully updated your Hummingbot + Gateway to the latest version.
|
||||||
@@ -71,3 +71,35 @@ To get started with Hummingbot, check out the following docs:
|
|||||||
* [Basic Features](https://docs.hummingbot.org/operation/)
|
* [Basic Features](https://docs.hummingbot.org/operation/)
|
||||||
* [Quickstart Guide](https://docs.hummingbot.org/quickstart/)
|
* [Quickstart Guide](https://docs.hummingbot.org/quickstart/)
|
||||||
* [Hummingbot FAQ](https://docs.hummingbot.org/faq/)
|
* [Hummingbot FAQ](https://docs.hummingbot.org/faq/)
|
||||||
|
|
||||||
|
## Updating to the Latest Version of Hummingbot
|
||||||
|
|
||||||
|
Hummingbot and Hummingbot Gateway are updated on a monthly basis, with each new version marked by a code release on Github and DockerHub, accompanied by the publication of comprehensive release notes. To upgrade to the most recent version, you just need to pull the `latest` Docker images.
|
||||||
|
|
||||||
|
Follow the steps below to upgrade your Hummingbot system:
|
||||||
|
|
||||||
|
1. **Ensure no containers are running**
|
||||||
|
|
||||||
|
Before you initiate the update process, it is crucial to verify that no Docker containers are currently running. Use the following command to shut down any active containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Fetch the latest Docker image**
|
||||||
|
|
||||||
|
Once you have confirmed that no containers are running, proceed to pull the latest Docker image. Use the following command to accomplish this:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull hummingbot/hummingbot
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Start the updated containers**
|
||||||
|
|
||||||
|
Having pulled the latest Docker image, you can now start up your containers. They will be running the latest version of Hummingbot. Use the following command to start the containers:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
With these steps, you will have successfully updated your Hummingbot to the latest version.
|
||||||
Reference in New Issue
Block a user