-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy.yml
51 lines (49 loc) · 1.02 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
version: "2.0"
services:
app:
image: ubuntu:latest
env:
- "SSH_PASS="
command:
- "bash"
- "-c"
args:
- 'apt-get update ; apt-get upgrade -y ; apt install -y ssh;
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config ;
(echo $SSH_PASS; echo $SSH_PASS) | passwd root ;
service ssh start;
echo ==== ssh user:"root" === ;
echo === ssh pass:"$SSH_PASS" === ;
sleep infinity'
expose:
- port: 80
as: 80
to:
- global: true
- port: 22
as: 22
to:
- global: true
profiles:
compute:
app:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
size: 1Gi
placement:
akash:
attributes:
pricing:
app:
denom: uakt
amount: 10000
deployment:
app:
akash:
profile: app
count: 1