-
Notifications
You must be signed in to change notification settings - Fork 0
/
guide.txt
58 lines (42 loc) · 1.54 KB
/
guide.txt
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
52
53
54
55
56
57
58
Тест запросов:
fetch('http://localhost:4000/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: `
query Trap {
lyrics {
id
}
}
`,
variables: {
now: new Date().toISOString(),
},
}),
})
.then((res) => res.json())
.then((result) => console.log(result));
# CLOUD.RU & DOCKER
Key ID (логин)
0b818b280fda6b3a315210f1451e41ba
Key Secret (пароль)
4e1ed61a686f267f6cb280ceaa4e841a
sudo mkdir -p /etc/apt/trusted.gpg.d/
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
sudo gpg --export --output /etc/apt/trusted.gpg.d/docker.gpg 7EA0A9C3F273FCD8
sudo mkdir -p /etc/apt/trusted.gpg.d/
sudo apt-key list | grep docker | cut -d'/' -f6- | xargs -I {} sudo gpg --export {} | sudo tee /etc/apt/trusted.gpg.d/docker.gpg
# Подключаемся к серверу
ssh -i ~/.ssh/server_key root_dope@176.123.164.17
# to cloud artefact
docker login -u 0b818b280fda6b3a315210f1451e41ba --p 4e1ed61a686f267f6cb280ceaa4e841a dope-artefact.cr.cloud.ru
docker build --tag dope-artefact.cr.cloud.ru/dope-artefact-client-app /Users/alina/Documents/WebProjects/forDeploy/dope-lyrics/client --platform linux/amd64
docker tag dope-artefact.cr.cloud.ru/dope-artefact-client-app dope-artefact.cr.cloud.ru/dope-artefact-client-app:latest
docker push dope-artefact.cr.cloud.ru/dope-artefact-client-app:latest
# docker build
docker-compose up --build
docker system prune -af
docker images