16
Bootcamp - 2-6 SET 2019 1 Criando um pipeline no Portal I Cristiano Singulani, Lucas Dal Piaz Nunes Setup e conceitos básicos

Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

  • Upload
    others

  • View
    41

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

Bootcamp - 2-6 SET 2019 1

Criando um pipeline no Portal I

Cristiano Singulani, Lucas Dal Piaz Nunes

Setup e conceitos básicos

Page 2: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

2

Outline

Bootcamp - 2-6 SET 2019

● Instâncias do portal● Setup inicial● Estudo do pipeline example_objectscount● Versionamento de código: testing e production

Page 3: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

3

Instâncias do portal (Ambientes)

Bootcamp - 2-6 SET 2019

● testing - ambiente usado para dataset menores pois os recursos computacionais são reduzidos ○ Compartilha a infraestrutura com o portal dos

desenvolvedores○ Cluster com 4 nós de processamento

● production - ambiente usado para fazer ciência○ loginicx - 20 nós de processamento○ rocks - 42 nós de processamento

Page 4: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

4

Setup inicial

Bootcamp - 2-6 SET 2019

● Tutorial disponível em:○ https://devel2.linea.gov.br/~lucas.nunes/site/

Pré-requisitos:● acesso ao servidor de desenvolvimento● conhecimento básico de linux● git● python

Cola

Scrip para fazer automaticamente/home/aguena/bin_share/set_up_portal

Page 5: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

5

Repositório de códigos

Bootcamp - 2-6 SET 2019

● $PORTAL_ROOT/des/pipelines/● $PORTAL_ROOT/des/components/

Page 6: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

6

Repositório de códigos

Bootcamp - 2-6 SET 2019

● $PORTAL_ROOT/pypeline/● $PORTAL_ROOT/scienceportal/

Page 7: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

7

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Motivação

Page 8: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

8

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Pipeline.xml○ Fluxo de execução dos componentes○ Dependência entre componentes

Page 9: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

9

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Comunicação entre componentes

Page 10: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

10

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Declaração input/output de pipelines

Page 11: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

11

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Product Log

Page 12: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

12

Estudo do pipeline example_objectscount

Bootcamp - 2-6 SET 2019

● Depuração de código○ /mnt/scratch/users/<user>/master_des/<process_i

d>○ 1 pasta por job *_sandbox○ python -c "import

components.<component_name> as a; a.run()"

Page 13: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

13

Versionamento de código

Bootcamp - 2-6 SET 2019

● fluxo de desenvolvimento local○ git pull○ git checkout -b new_branch○ git commit -a -m "new feature"○ git checkout master○ git merge new_branch

● levar mudanças para repositŕorio central○ git add ChangeLog VERSION○ git commit -m "explanation"○ git tag `cat VERSION`○ git push --tag

Page 14: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

14

Versionamento de código

Bootcamp - 2-6 SET 2019

● testing - script to update○ sudo -H -u testing -i /home/testing/update_portal.sh

● production - fast deploy

Page 15: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

Questões

Bootcamp - 2-6 SET 2019 15

Page 16: Criando um pipeline no Portal I€¦ · fluxo de desenvolvimento local git pull git checkout -b new_branch git commit -a -m "new feature" git checkout master git merge new_branch

Obrigado

Bootcamp - 2-6 SET 2019 16