Docker image for building spring-boot projects
455
Dockerfilejdk8-onbuilld, latest, (jdk8-onbuilld/Dockerfile)8-alpine-onbuilld, (8-alpine-onbuilld/Dockerfile)Base image for apps Spring Boot.
This image uses instruction ONBUILD
Spring Boot makes it easy to create Spring-powered, production-grade applications and services with absolute minimum fuss. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits they need. You can use Spring Boot to create stand-alone Java applications that can be started using java -jar or more traditional WAR deployments. Reference guide here
FROM carlosamartins/spring-boot
ENV FILE target/app.jar
ENV ENTRYPOINT src/entrypoint.sh
#!/bin/bash
function export_var() {
eval VAL=\$$2
if [ ! -z $VAL ]; then
if [ ! -z $3 ]; then
VAL=$3
fi
export $1=$VAL
echo "config per link: $1=$VAL"
fi
}
export_var URL_WEBSERVICE CONTAINER1_PORT_8080_TCP_ADDR "http://$URL_WEBSERVICE CONTAINER1_PORT_8080_TCP_ADDR:8080/servicows"
export_var URL_ANOTHER_SERVICE CONTAINER2_PORT_8080_TCP_ADDR "http://$CONTAINER2_PORT_8080_TCP_ADDR:8080/services/Servico?wsdl"
exec $@
docker build -t docker-web.softplan.com.br/unj/app-name /path/Dockerfile
docker run -it --env-file path/config.properties docker-web.softplan.com.br/unj/app-name
TZ=America/Sao_Paulo
JAVA_OPTS=-Xrs -Duser.language=pt -Duser.country=BR -Duser.timezone=America/Sao_Paulo -Dfile.encoding=UTF-8
logging.path=/app/log
logging.level.root=WARN
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-wait=10000
spring.datasource.max-active=50
spring.datasource.test-on-borrow=true
Content type
Image
Digest
Size
481.7 MB
Last updated
over 10 years ago
docker pull carlosamartins/spring-boot