Sign inSign up

redss/ecs-java-eureka

By redss

•Updated almost 8 years ago

ECS Aware Alpine Linux Java Image

Image
1

872

redss/ecs-java-eureka repository overview

⁠ECS-JAVA-EUREKA

Base image for ECS Aware Eureka Instances

⁠Usage

The ecs-java-eureka⁠ is a Docker image derived from the excellent and widely suggested frolvlad/alpine-oraclejdk8:slim docker image: it adds python and some modules (nominally, boto, boto3 and requests ) and an entry point script.

The entry point expects the definition of a CMD inside the final (yours) docker definition. Following is an example docker definition:

FROM redss/ecs-java-eureka:0.1-alpha
VOLUME /tmp

MAINTAINER Somebody <somebody@somewhere>

ADD ./application.jar /app/
RUN sh -c 'touch /app/application.jar'

CMD ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/application.jar"]

EXPOSE port#

Python is needed to execute the included script (ecs-get-port-mapping.py) which retrieves the ECS Host exposed ports.

⁠Acknowledgements

The script is a gist from Chris Smith⁠

⁠Contact

Please contact [email protected]⁠ for info about this project.

Tag summary

Content type

Image

Digest

Size

87.2 MB

Last updated

about 9 years ago

docker pull redss/ecs-java-eureka