-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bodo Schulz
committed
Jul 14, 2016
1 parent
187d03a
commit 06fe13c
Showing
5 changed files
with
68 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
TYPE := jolokia | ||
IMAGE_NAME := ${USER}-docker-${TYPE} | ||
|
||
|
||
build: | ||
docker build --rm --tag=$(IMAGE_NAME) . | ||
|
||
run: | ||
docker run \ | ||
--detach \ | ||
--interactive \ | ||
--tty \ | ||
--hostname=${USER}-mysql \ | ||
--name=${USER}-${TYPE} \ | ||
$(IMAGE_NAME) | ||
|
||
shell: | ||
docker run \ | ||
--rm \ | ||
--interactive \ | ||
--tty \ | ||
--hostname=${USER}-mysql \ | ||
--name=${USER}-${TYPE} \ | ||
$(IMAGE_NAME) | ||
|
||
exec: | ||
docker exec \ | ||
--interactive \ | ||
--tty \ | ||
${USER}-${TYPE} \ | ||
/bin/sh | ||
|
||
stop: | ||
docker kill \ | ||
${USER}-${TYPE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,49 @@ | ||
# docker-jolokia | ||
docker-jolokia | ||
============== | ||
|
||
Minimal Image with Apache Tomcat8, openjdk8-jre-base and jolokia. | ||
|
||
## versions | ||
# Status | ||
[![Build Status](https://travis-ci.org/bodsch/docker-jolokia.svg?branch=master)](https://travis-ci.org/bodsch/docker-jolokia) | ||
|
||
- tomcat 8.5.2 | ||
- jolokia 1.3.3 | ||
- openjdk from alpine | ||
# Build | ||
|
||
Your can use the included Makefile. | ||
|
||
To build the Container: | ||
```make build``` | ||
|
||
Starts the Container: | ||
```make run``` | ||
|
||
Starts the Container with Login Shell: | ||
```make shell``` | ||
|
||
## Build | ||
Entering the Container: | ||
```make exec``` | ||
|
||
``` | ||
docker build --tag=docker-jolokia . | ||
``` | ||
or | ||
Stop (but **not kill**): | ||
```make stop``` | ||
|
||
``` | ||
./build.sh | ||
``` | ||
# Docker Hub | ||
|
||
## run | ||
You can find the Container also at [DockerHub](https://hub.docker.com/r/bodsch/docker-jolokia/) | ||
|
||
|
||
# Versions | ||
|
||
- tomcat 8.5.4 | ||
- jolokia 1.3.3 | ||
- openjdk from alpine | ||
|
||
``` | ||
docker run docker-jolokia | ||
``` | ||
or | ||
``` | ||
``` | ||
./run.sh | ||
``` | ||
# Test | ||
## Test | ||
curl http://localhost:8080/jolokia/ | python -mjson.tool | ||
``` | ||
curl http://localhost:8080/jolokia/ | python -mjson.tool | ||
``` | ||
## Ports | ||
# Ports | ||
* 8080 | ||