Giter Site home page Giter Site logo

infnet-image-docker-gradle-aws's Introduction

image-docker-gradle-aws

#Build #victorshlima/infnet-gitlab #imagem de base para a execução do pipeline no GITLAB #base image to pipeline GITLAB


docker build -t {image:tag} . docker build -t victation/infnet-gitlab:1.0.x . docker build -t victation/infnet-gitlab . docker container ls -la


docker build -t victation/infnet-gitlab . #Successfully built 857815ea94f5 #Successfully tagged victation/infnet-gitlab:latest #docker tag local-image:tagname new-repo:tagname docker tag victation/infnet-gitlab:latest victation/infnet-gitlab:latest #docker push new-repo:tagname docker push victation/infnet-gitlab:latest


docker build -t victation/infnet-gitlab . ""Successfully built 857815ea94f5 ""Successfully tagged victation/infnet-gitlab:latest "docker tag local-image:tagname new-repo:tagname docker tag victation/infnet-gitlab:latest victation/infnet-gitlab:latest "docker push new-repo:tagname docker push victation/infnet-gitlab:latest


Tag gerando a TAG e fazendo push


docker images docker build -t infnet-gitlab:1.0.3 . docker tag local-image:tagname new-repo:tagname docker tag infnet-gitlab:1.0.3 victorshlima/infnet-gitlab:1.0.3 docker push infnet-gitlab:1.0.3


#send image to docker docker login docker login -u -p

set user... pass

acess docker hub - create a new repository

docker images

REPOSITORY TAG IMAGE ID CREATED SIZE infnet-devops-project infnet-gradle-aws xxx_new_by_image 2 hours ago 1.02GB

docker tag 6236c6a3a5f8 victation/infnet-gitlab:latest description "docker push new-repo:tagname"

docker push victation/infnet-gitlab:1.0.x

  • description "docker push new-repo:1.0.X docker push victation/infnet-gitlab:1.0.x

#gitlab-runner é uma imagem que executa o pipeline no gitlab gitlab/gitlab-runner:latest

is necessary to run gitlab runner in local https://docs.gitlab.com/runner/install/docker.html docker run -d --name gitlab-runner --restart always
-v /srv/gitlab-runner/config:/etc/gitlab-runner
-v /var/run/docker.sock:/var/run/docker.sock
gitlab/gitlab-runner:latest

dentro do container gitlab-runner docker exec -it gitlab-runner /bin/bash

gitlab-runner register

get the url and token https://gitlab.com/victorshlima/infnet-devops-project/-/settings/ci_cd

runner > expand

isn't necessary (BUT it's better)set DESCRIPTION , TAG tag insert a TAG to facilitate the runner identification#

it'hs possible had various runners and use a TAG to especify the corret runnet to use in the pipeline

victation/infnet-gitlab:1.0.X

Enter a executor...

  • docker

victation/infnet-gitlab:1.0.3

wait the runner (green), if not... trey start on gitlab-runner container

gitlab-runner start victation/infnet-gitlab:1.0.3

se vc atualiza a versão da imagem vc vai ter atualziar o docker runner tbm

acessar https://gitlab.com/victorshlima/infnet-devops-project/-/settings/ci_cd

runner > expand

disable shared runner

#S3 send files

aws s3 ls s3://infnet-devops-s3-bucket

#melhorias 1:19 - configurar CACHE para o gradle video...225427

sudo gitlab-runner register --url https://gitlab.com/ --registration-token $REGISTRATION_TOKEN



RUNNER GIT LAB INTALATIONS

Download the binary for your system

sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64

Give it permission to execute

sudo chmod +x /usr/local/bin/gitlab-runner

Create a GitLab Runner user

sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash

Install and run as a service

sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner sudo gitlab-runner start


infnet-image-docker-gradle-aws's People

Contributors

victorshlima avatar

Watchers

James Cloos avatar  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.