Specify Entry point for docker image

Hello,
My simple microservices work with an embedded cassandra server.
But I am looking for an example entry point into the image when I deploy it in kubernetes.
I use spotify plugin and push and pull from docker.io

I use a dockerfile. Where in my dockerfile should I specify the entry point ? How ?

One more question. Are my health checks proper ?

Thanks,
Mohan

{
“apiVersion”: “apps/v1beta1”,
“kind”: “StatefulSet”,
“metadata”: {
“name”: “order”
},
“spec”: {
“serviceName”: “order”,
“replicas”: 1,
“template”: {
“metadata”: {
“labels”: {
“app”: “order”
}
},
“spec”: {
“containers”: [{
“name”: “order”,
“image”: “mohanr/reactivemicroservices:1.0-SNAPSHOT”,
“imagePullPolicy”: “Always”,
“command”: [“echo”, “SUCCESS”],
“resources”: {
“requests”: {
“memory”: “512Mi”
}
},
“ports”: [{
“containerPort”: 9000,
“name”: “http-lagom-api”
},
{
“containerPort”: 2551,
“name”: “akka-remote”
}
],
“env”: [{
“name”: “APPLICATION_SECRET”,
“value”: “ATTENTION_BE_SURE_TO_CHANGE_ME!!!”
},
{
“name”: “KAFKA_SERVICE_NAME”,
“value”: “_server._tcp.kafka-hs.default.svc.cluster.local”
},
{
“name”: “CASSANDRA_SERVICE_NAME”,
“value”: “_native._tcp.cassandra.default.svc.cluster.local”
},
{
“name”: “HELLO_BIND_PORT”,
“value”: “9000”
},
{
“name”: “HELLO_BIND_IP”,
“value”: “0.0.0.0”
},
{
“name”: “AKKA_REMOTING_PORT”,
“value”: “2551”
},
{
“name”: “AKKA_REMOTING_BIND_PORT”,
“value”: “2551”
},
{
“name”: “AKKA_REMOTING_HOST”,
“value”: “$HOSTNAME.hello.default.svc.cluster.local”
},
{
“name”: “AKKA_REMOTING_BIND_HOST”,
“value”: “$HOSTNAME.hello.default.svc.cluster.local”
},
{
“name”: “AKKA_SEED_NODES”,
“value”: “order-0.order.default.svc.cluster.local:2551,order-1.order.default.svc.cluster.local:2551,order-2.order.default.svc.cluster.local:2551”
}
],

                "readinessProbe": [{ 
                    "httpGet": [{ 
                        "path": "/platform-tooling/ready", 
                        "port": "akka-mgmt-http" 
                    }], 
                    "periodSeconds": 10 
                }], 
                "livenessProbe": [{ 
                    "httpGet": [{ 
                        "path": "/platform-tooling/ready", 
                        "port": "akka-mgmt-http" 
                    }], 
                    "periodSeconds": 10, 
                    "initialDelaySeconds": 60 
                }] 

            }], 
            "imagePullSecrets": [{ 
                "name": "myregistrykey" 
            }] 
        } 
    } 
} 

}

I think I need to transalate the section dealting with the entry point ( https://github.com/tcappellari/hello-kubernetes/blob/master/build.sbt ) to dockerfile syntax. Any other examples ?

I found a dockerfile file example in Graceful stop of service with docker stop. I would need some help here.

Mine is simple like this. My jar file is Elasticity-1.0-SNAPSHOT-docker-info.jar which has folders 'docker’and ‘maven’ and manifest file. This must be what the the parent POM which included other modules, generated…

FROM openjdk:8-jdk-alpine
VOLUME /tmp
WORKDIR /
ARG JAR_FILE
ADD ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","app.jar"]

Mohan