Spaces:
No application file
No application file
Commit
路
0c36ee9
1
Parent(s):
23d79c7
O Readme para o passo a passo da nossa App
Browse files
README.md
CHANGED
@@ -11,6 +11,7 @@ pinned: false
|
|
11 |
|
12 |
#### <font color="yellow">Data Scientist.: Dr. Eddy Giusepe Chirinos Isidro</font>
|
13 |
|
|
|
14 |
|
15 |
# <font color="pink">Usando Dockerfile</font>
|
16 |
|
@@ -54,7 +55,7 @@ A seguir vamos a realizar o `Deploy` da nossa Aplica莽茫o na `Google Cloud Platf
|
|
54 |
```
|
55 |
$ docker build -t app_fastapi:1.0 .
|
56 |
```
|
57 |
-

|
58 |
|
59 |
* Seguidamente adicionamos uma `tag` e passamos o caminho que tem a seguinte estrutura: `nome_da_regi茫o/id_projeto/nome_do_reposit贸rio/nome_qualquer_para_sua_imagem`. Eu chamarei a minha imagem (o final do caminho) com o mesmo nome que testei localmente (`app_fastapi:1.0`). Na linha de comando ficaria, assim:
|
60 |
|
@@ -62,29 +63,29 @@ $ docker build -t app_fastapi:1.0 .
|
|
62 |
$ docker tag 11b1ad51c754 us-central1-docker.pkg.dev/first-eddy-deploy-ner/eddy-deploy-weather-1/app_fastapi:1.0
|
63 |
```
|
64 |
Repara que a `tag` 茅 o ID da imagem criada anteriormente.
|
65 |
-

|
66 |
|
67 |
N茫o esque莽a criar, antes, o seu `reposit贸rio` para assim pegar depois o path dele:
|
68 |
-

|
69 |
|
70 |
-

|
71 |
|
72 |
* Logo, realizamos o `push` da Imagem para o nosso reposit贸rio:
|
73 |
```
|
74 |
$ docker push us-central1-docker.pkg.dev/first-eddy-deploy-ner/eddy-deploy-weather-1/app_fastapi:1.0
|
75 |
```
|
76 |
|
77 |
-

|
78 |
|
79 |
Voc锚 pode verificar que a sua imagem foi enviada a seu `reposit贸rio` no `Artifact Registry`:
|
80 |
|
81 |
-

|
82 |
|
83 |
-

|
84 |
|
85 |
<font color="orange">Entrando no `Artifact Registry`, podemos realizar o `Deploy` da nossa App. Fazemos click e selecionamos `Implementar em Cloud Run`, assim:</font>
|
86 |
|
87 |
-

|
88 |
|
89 |
|
90 |
|
|
|
11 |
|
12 |
#### <font color="yellow">Data Scientist.: Dr. Eddy Giusepe Chirinos Isidro</font>
|
13 |
|
14 |
+

|
15 |
|
16 |
# <font color="pink">Usando Dockerfile</font>
|
17 |
|
|
|
55 |
```
|
56 |
$ docker build -t app_fastapi:1.0 .
|
57 |
```
|
58 |
+

|
59 |
|
60 |
* Seguidamente adicionamos uma `tag` e passamos o caminho que tem a seguinte estrutura: `nome_da_regi茫o/id_projeto/nome_do_reposit贸rio/nome_qualquer_para_sua_imagem`. Eu chamarei a minha imagem (o final do caminho) com o mesmo nome que testei localmente (`app_fastapi:1.0`). Na linha de comando ficaria, assim:
|
61 |
|
|
|
63 |
$ docker tag 11b1ad51c754 us-central1-docker.pkg.dev/first-eddy-deploy-ner/eddy-deploy-weather-1/app_fastapi:1.0
|
64 |
```
|
65 |
Repara que a `tag` 茅 o ID da imagem criada anteriormente.
|
66 |
+

|
67 |
|
68 |
N茫o esque莽a criar, antes, o seu `reposit贸rio` para assim pegar depois o path dele:
|
69 |
+

|
70 |
|
71 |
+

|
72 |
|
73 |
* Logo, realizamos o `push` da Imagem para o nosso reposit贸rio:
|
74 |
```
|
75 |
$ docker push us-central1-docker.pkg.dev/first-eddy-deploy-ner/eddy-deploy-weather-1/app_fastapi:1.0
|
76 |
```
|
77 |
|
78 |
+

|
79 |
|
80 |
Voc锚 pode verificar que a sua imagem foi enviada a seu `reposit贸rio` no `Artifact Registry`:
|
81 |
|
82 |
+

|
83 |
|
84 |
+

|
85 |
|
86 |
<font color="orange">Entrando no `Artifact Registry`, podemos realizar o `Deploy` da nossa App. Fazemos click e selecionamos `Implementar em Cloud Run`, assim:</font>
|
87 |
|
88 |
+

|
89 |
|
90 |
|
91 |
|