Commit fbd15de1 authored by Cristian Aguirre's avatar Cristian Aguirre

Merge branch 'developer-ca' into 'developer'

Update 07-08-23. Update README.md

See merge request !8
parents 0b05fe09 b1423b97
...@@ -488,3 +488,33 @@ Deberá mostrarse algo similar a esto: ...@@ -488,3 +488,33 @@ Deberá mostrarse algo similar a esto:
![image](readme-images/componentes-ready1.png) ![image](readme-images/componentes-ready1.png)
## Cargar una imagen contenerizada a Container Registry de GCP
1.- En nuestro terminal validar y/o setear el nombre del proyecto en el cual desplegamos nuestro
clúster sobre GKE (**Esto es importante dado que el clúster creado buscará las imágenes que solo están
en el mismo proyecto que él**). Seteamos el proyecto con el comando (**Si pide loguearnos, lo realizamos
con nuestras credenciales de Google**):
```shell
gcloud config set project <project-ID>
```
2.- Una vez que tenemos identificado que imagen vamos a subir al registry, creamos un tag que hace
referencia a la imagen que se subirá:
```shell
docker tag <imagen-local> gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
```
3.- Luego del tag, se procede a realizar el push al registry. Si en caso nos sale un error,
se ejecuta el comando _configure-docker_ y nuevamente el push:
```shell
docker push gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
# En caso de error se ejecuta:
gcloud auth configure-docker
# Y nuevamente el push
docker push gcr.io/<nombre-proyecto>/<nombre-repositorio>:<tag-imagen>
```
\ No newline at end of file
...@@ -31,13 +31,13 @@ app: ...@@ -31,13 +31,13 @@ app:
cloud_provider: aws cloud_provider: aws
scripts: scripts:
s3_params: s3_params:
bucket: pruebairflow bucket: prueba1234568
prefix: bcom_scripts prefix: bcom_scripts
connection_id: prueba_af connection_id: conn_script
control: control:
s3_params: s3_params:
connection_id: prueba_af connection_id: conn_script
bucket: pruebairflow bucket: prueba1234568
prefix: bcom_control prefix: bcom_control
filename: control_<period>.json filename: control_<period>.json
timezone: 'GMT-5' timezone: 'GMT-5'
...@@ -48,15 +48,15 @@ app: ...@@ -48,15 +48,15 @@ app:
delimiter: '|' delimiter: '|'
tmp_path: /tmp tmp_path: /tmp
s3_params: s3_params:
bucket: pruebairflow bucket: prueba1234568
prefix: bcom_results prefix: bcom_results
connection_id: prueba_af connection_id: conn_script
report: report:
s3_params: s3_params:
bucket: pruebairflow bucket: prueba1234568
prefix: bcom_report prefix: bcom_report
connection_id: prueba_af connection_id: conn_script
filename: report_<datetime>.xlsx filename: report_<datetime>.xlsx
datetime_pattern: '%Y-%m-%d %H:%M:%S' datetime_pattern: '%Y-%m-%d %H:%M:%S'
procedure: procedure:
filepath: "procedure_prueba.json" filepath: "/opt/airflow/dags/procedure_definition.json"
\ No newline at end of file \ No newline at end of file
...@@ -79,8 +79,8 @@ data: ...@@ -79,8 +79,8 @@ data:
AIRFLOW__LOGGING__LOGGING_LEVEL: INFO AIRFLOW__LOGGING__LOGGING_LEVEL: INFO
AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE: America/Lima AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE: America/Lima
AIRFLOW__CORE__DEFAULT_TIMEZONE: America/Lima AIRFLOW__CORE__DEFAULT_TIMEZONE: America/Lima
AIRFLOW__KUBERNETES__WORKER_CONTAINER_REPOSITORY: cristianfernando/airflow_custom AIRFLOW__KUBERNETES__WORKER_CONTAINER_REPOSITORY: gcr.io/byteboth/bcom-airflow
AIRFLOW__KUBERNETES__WORKER_CONTAINER_TAG: "0.0.6" AIRFLOW__KUBERNETES__WORKER_CONTAINER_TAG: "0.0.1"
AIRFLOW__KUBERNETES__LOGS_VOLUME_CLAIM: airflow-logs-pvc AIRFLOW__KUBERNETES__LOGS_VOLUME_CLAIM: airflow-logs-pvc
AIRFLOW__KUBERNETES__ENV_FROM_CONFIGMAP_REF: airflow-envvars-configmap AIRFLOW__KUBERNETES__ENV_FROM_CONFIGMAP_REF: airflow-envvars-configmap
AIRFLOW__KUBERNETES_EXECUTOR__POD_TEMPLATE_FILE: /opt/airflow/templates/pod_template.yaml AIRFLOW__KUBERNETES_EXECUTOR__POD_TEMPLATE_FILE: /opt/airflow/templates/pod_template.yaml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment