Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
import org.apache.activemq.command.ActiveMQTextMessage | |
import org.springframework.context.event.EventListener | |
import org.springframework.http.HttpStatus | |
import org.springframework.http.ResponseEntity | |
import org.springframework.jms.core.JmsTemplate | |
import org.springframework.jms.core.MessageCreator | |
import org.springframework.web.bind.annotation.GetMapping | |
import org.springframework.web.bind.annotation.PostMapping | |
import javax.jms.Queue | |
import javax.jms.TextMessage |
Create a software defined network that we will use to let the containers communicate with eachother
docker network create statnet --attachable
Create a volume container for grafana's configuration + grafana instance
docker run -d -v /var/lib/grafana --name grafana-storage busybox:latest
docker create \