Skip to content

Instantly share code, notes, and snippets.

@gosuri
Created March 29, 2024 20:42
Show Gist options
  • Save gosuri/c26a9dd40f54786363a438eefb14159a to your computer and use it in GitHub Desktop.
Save gosuri/c26a9dd40f54786363a438eefb14159a to your computer and use it in GitHub Desktop.
---
version: "2.0"
services:
service-1:
image: winglian/axolotl:main-py3.11-cu121-2.2.1
expose:
- port: 80
as: 80
to:
- global: true
- port: 22
as: 22
to:
- global: true
env:
- 'SSH_PUBKEY=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCsF8vtiDrJdmlOxqRm2afDyNBGo1c+SLo0i6YpVM13W1djI94UQp8Is4G+fknECcfrW4+mL9XPOrKui02XXTWVJD3vMa1i68oKgNDnSgzGrsoyUKwK7cve3R82GP8GB5s2BLSwz5g5F5iqHfGuq1WPGlqNRc3G0e4RVB9Nx2R+gNGIr/0MaYA0MhuuVD8KRCRA6/ZW/os6scdDcTSnKrkU83Oj9zT7fp1RTHmhfGW9faSEuu+HmT8EZoX9o/9Vqh7wJMVet0IwLPdutYmf/g141mpM1pn4vtvxrw3L8CMDEoby8D3i1zGXyRNN+LwOn+SB0/jnh+AxWnb5S7BQ1VlLrNMHSE/olJzo5wI+mGJjxr/gAZ7F1jtoWUxI+INxrSSpATq4LNre14U/6ISlO1Z76+ckwD7PGf9X5Fp+mlsPF8mVYV4dnoVTKFWynutDouunFUZqk+s2jADpxEBx9Cp7pey1uxpa/sJCc3nzhfT5LxkP1CaSjN8tXm9Mdv3QVlE= migel@macbook-pro.lan'
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'
profiles:
compute:
service-1:
resources:
cpu:
units: 12
memory:
size: 128GB
storage:
- size: 1TB
gpu:
units: 8
attributes:
vendor:
nvidia:
- model: h100
placement:
dcloud:
pricing:
service-1:
denom: uakt
amount: 1000
deployment:
service-1:
dcloud:
profile: service-1
count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment