Skip to content

Instantly share code, notes, and snippets.

@arno01
Last active October 12, 2023 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arno01/c8ccbc45c38457b39df2c4d3ffeec86d to your computer and use it in GitHub Desktop.
Save arno01/c8ccbc45c38457b39df2c4d3ffeec86d to your computer and use it in GitHub Desktop.
# 1. Set your public ssh key via SSH_PUBKEY variable
# 2. Deploy it
# 3. SSH into it (via the mapped node port)
# 4. Run Hummingbot: conda activate hummingbot && /home/hummingbot/bin/hummingbot_quickstart.py 2>> /home/hummingbot/logs/errors.log
---
version: "2.0"
services:
hummingbot:
image: hummingbot/hummingbot:version-1.20.0
env:
- 'SSH_PUBKEY=ssh-rsa AAAAB3N...'
command:
- "sh"
- "-c"
args:
- 'apt-get update;
apt-get install -y --no-install-recommends -- ssh;
mkdir -p -m0755 /run/sshd;
mkdir -m700 ~/.ssh;
echo "$SSH_PUBKEY" | tee ~/.ssh/authorized_keys;
chmod 0600 ~/.ssh/authorized_keys;
exec /usr/sbin/sshd -D'
expose:
- port: 80
as: 80
to:
- global: true
- port: 22
as: 22
to:
- global: true
profiles:
compute:
hummingbot:
resources:
cpu:
units: 1
memory:
size: 4Gi
storage:
size: 5Gi
placement:
akash:
attributes:
host: akash
pricing:
hummingbot:
denom: uakt
amount: 10000
deployment:
hummingbot:
akash:
profile: hummingbot
count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment