added cloud init
This commit is contained in:
parent
7a12d96497
commit
f6cc72951e
20
cloud_init
Normal file
20
cloud_init
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#cloud-init
|
||||||
|
packages:
|
||||||
|
- curl
|
||||||
|
- git
|
||||||
|
|
||||||
|
|
||||||
|
runcmd:
|
||||||
|
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||||
|
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
|
- apt-get update -y
|
||||||
|
- apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||||
|
- curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||||
|
- chmod +x /usr/local/bin/docker-compose
|
||||||
|
- systemctl start docker
|
||||||
|
- systemctl enable docker
|
||||||
|
- cd /root/ && docker-compose up -d
|
||||||
|
- chmod a+w /mnt/*
|
||||||
|
- git clone https://git.wmi.amu.edu.pl/s415366/pbr-ayct-core.git
|
||||||
|
- cd pbr-ayct-core
|
||||||
|
- docker-compose up -d
|
@ -7,4 +7,5 @@ services:
|
|||||||
image: ayct_core:latest
|
image: ayct_core:latest
|
||||||
ports:
|
ports:
|
||||||
- "4999:4999"
|
- "4999:4999"
|
||||||
container_name: ayct_core
|
container_name: ayct_core
|
||||||
|
restart: always
|
Loading…
Reference in New Issue
Block a user