Introducing Timestamp-task 1.0 from samples (#149)

This will be the replacement for the timestamp-task from Spring-Cloud-Task-Starters

Co-authored-by: bono007 <chris.bono@gmail.com>
This commit is contained in:
Glenn Renfro
2022-01-13 17:44:00 -05:00
committed by GitHub
parent 7c11592f74
commit 5db91aae36
16 changed files with 1099 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
= Timestamp Task
This is a Spring Cloud Task application that logs a timestamp.
== Requirements
* Java 8 or Above
== Classes
* TaskApplication - the Spring Boot Main Application
== Build
=== Build and test
[source,shell,indent=2]
----
./mvnw clean install
----
=== Build Docker container
[source,shell,indent=2]
----
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=spring/timestamp-task:latest
----
== Run
=== Command line
[source,shell,indent=2]
----
java -jar target/timestamp-task-1.0.0.jar
----
=== Docker
[source,shell,indent=2]
----
docker run spring/timestamp-task:latest
----
=== Properties
* *timestamp.format* - The timestamp format, "yyyy-MM-dd HH:mm:ss.SSS" by default.