Git Product home page Git Product logo

hello-world-spring-boot's Introduction

Hello World com Spring Boot

Esse projeto tem como objetivo rodar uma aplicação Spring Boot que retorna "Hello World!!!", utilizando o Gradle para fazer o build e o Docker-Compose para subir a aplicação.

Dependências

  • JDK 1.8 ou mais recente

  • Gradle 4+

  • Docker

  • Kubernetes (Opcional)

Como executar

  • Clone esse repositório

  • Altere o valor das variáveis em build.gradle:

    • docker_user_name: Seu nome de usuário no Docker (Default: bryanbcruz)
  • Execute ./gradlew build

  • Executando a aplicação:

    • (Opção 1) Utilizando apenas o Docker:

      • Execute docker run -p 8080:8080 $docker_user_name/hello-world-spring-boot
    • (Opção 2) Utilizando o Docker Compose:

      • Execute docker-compose up
    • (Opção 3) Utilizando Kubernetes:

      • Execute kubectl create -f k8s/manifests/hello-world-deployment.yaml

      • Execute kubectl create -f k8s/manifests/hello-world-service.yaml

  • Acesse localhost na porta 8080 se utilizou a opção 1 ou 2, ou acesse o IP da sua máquina que está executando o Kubernetes na porta 30080 se utilizou a opção 3.

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.