Giter Club home page Giter Club logo

schola's Introduction

Professional Cloud DevOps Engineer

Material de apoio para o estudo da certificação DevOps do GCP

MindMap para a Prova

https://mm.tt/app/map/3259533077?t=mMHqVEIPSV

Idéia da aplicação

https://drive.google.com/file/d/1Fb5u4zNI5Ts04iMzpX759BPXD51rlO0N/view?usp=sharing

Inicialização e Configurações

Instalação do SDK do Google Cloud

https://cloud.google.com/sdk/docs/install

Inicialização do SDK

gcloud init

Configuração do projeto

gcloud config list gcloud config set project <PROJECT_ID> gcloud config set compute/region us-central1

Criando a primeira Function

Criando o repo

gcloud source repos create schola gcloud source repos clone schola

Deploy da Function

chmod +x deploy.sh ./deploy.sh

#!/bin/bash

export PROJECT_ID=$(gcloud config list --format 'value(core.project)')
export REPOSITORY_ID=schola

export URL=https://source.developers.google.com/projects/$PROJECT_ID/repos/$REPOSITORY_ID

gcloud functions deploy helloGET \
--source $URL \
--trigger-http \
--runtime=nodejs18;

Testando a Function

gcloud functions call helloGET

Excluindo a function

gcloud functions list gcloud functions delete helloGET --region us-central1

Criando Build automatizado

Criacao do trigger

gcloud builds triggers create cloud-source-repositories
--name=trigger-schola
--repo=schola
--region=us-central1
--build-config=cloudbuild.yaml
--branch-pattern=master

Excluindo o trigger

gcloud builds triggers list --region=us-central1 gcloud builds triggers delete trigger-schola --region=us-central1

schola's People

Contributors

cmilfont avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.