echo server information/server io test ...
- https://hub.docker.com/r/javawiki/server-test-webapp
- docker build -f Dockerfile -t javawiki/server-test-webapp:version .
- docker login
- docker push javawiki/server-test-webapp:version
- docker pull javawiki/server-test-webapp:version
- docker run -it --rm -p 9800:9800 javawiki/server-test-webapp:version
- docker run -it --rm -p 9800:9800 -e APP_VERSION=v1.1.0 -e TZ=Asia/Shanghai -e JAVA_OPTS=-XX:+PrintCommandLineFlags javawiki/server-test-webapp:1.1.0
- curl "http://localhost:9800/server/io/write?path=/root/test.txt&message=hello"
- curl "http://localhost:9800/server/io/read?path=/root/test.txt"
- curl "http://localhost:9800/server/info/properties"
- curl "http://localhost:9800/server/info/env"
- curl "http://localhost:9800/actuator/info"
- curl "http://localhost:9800/server/info/getProperty?key=info.app.version"
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
The following guides illustrate how to use some features concretely: