Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benruns/spring-hello-world
https://github.com/benruns/spring-hello-world
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/benruns/spring-hello-world
- Owner: BenRuns
- Created: 2017-07-20T06:41:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T06:53:13.000Z (over 7 years ago)
- Last Synced: 2024-12-01T13:48:07.424Z (2 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is my hello world to try out using java in web development, docker and kubernetes
## Goals for this Hello World
1. ~~Create a Hello World app with Spring~~
2. ~~Get it running in a docker environment~~
3. Get it running in Kubernetes
4. Deploy on AWS
5. Try some tests
6. Try a new CI providerGetting the Spring App running
Ubuntu -
### Prerequisites
- make sure java is installed
- install maven if needed `sudo apt-get install mvn`Further instruction can be found [here](https://spring.io/guides/gs/spring-boot/)
To run on localhost:8080
`mvn package && java -jar target/gs-spring-boot-0.1.0.jar`# Working with docker
See guide [here](https://spring.io/guides/gs/spring-boot-docker/)
Guide for learning docker [here](http://training.play-with-docker.com/helloworld/)
## Prerequisites and installhttps://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-docker
`sudo mvn install dockerfile:build`
`sudo docker run -p 8080:8080 -t springio/gs-spring-boot`
This is why I'm using sudo - maybe I shouldn't?
https://github.com/spotify/docker-maven-plugin/issues/105