Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

amitwave/spring-boot-sample

Open more actions menu

Repository files navigation

  • -- run directly from springboot
    mvn package && java -jar target/spring-boot-1.0-SNAPSHOT.jar mvn package && java -jar target/spring-boot-1.0-SNAPSHOT-spring-boot.jar

  • --build docker image with spotify
    mvn install dockerfile:build -Pspotify
    mvn dockerfile:push

  • --run after using spotify profile
    docker run -p 8080:8080 -it wave/spring-boot:1.0-SNAPSHOT

  • -- list images
    docker image ls

  • -- build with docker command
    docker build . -t wave/spring-boot
    docker run -p 8080:8080 -it wave/spring-boot

  • -- build and run with fabric8
    mvn install docker:build -Pfabric8
    docker run -p 8080:8080 -it wave/spring-boot-fabric8

  • -- browser test url
    http://localhost:8080/wave/health-check

  • docker login docker.io

  • docker tag cb428c95f2dd $DOCKER_HUB_USER/rest-example

  • eval $(minikube docker-env)

  • docker tag 0232504d32e5 $DOCKER_HUB_USER/wave/spring-boot-fabric8

  • -- Setup kubernetes - following steps will help doing that

  • -- create services.yml
    kubectl create -f kubernetes/services.yml

  • -- see all services
    kubectl get services --all-namespaces

  • -- create deployment:
    kubectl create -f kubernetes/deployment.yml

  • -- get the port number - the value of NodePort
    kubectl describe service rest-example

  • Get the url of the service
    minikube service rest-example --url

jenkins container: docker run --name jenkins -p 8080:8080 -p 50000:50000
-v /var/run/docker.sock:/var/run/docker.sock
-v $(which docker):/usr/bin/docker
-v /home/jenkins_home:/var/jenkins_home
jenkins/jenkins

run the docker for jenkins docker run --name jenkinswave -p 8085:8080 -p 50000:50000 -v $(which docker):/usr/bin/docker -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkins-wave change the permission inside the docker - chmod 777 /var/run/docker.sock

jenkins console at: http://localhost:8085/ admin/admin

local registry: http://localhost:5000/v2/_catalog

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.