Skip to content

Commit

Permalink
update README.md add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodo Schulz committed Jul 14, 2016
1 parent 187d03a commit 06fe13c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 62 deletions.
35 changes: 35 additions & 0 deletions Makefile
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}
59 changes: 33 additions & 26 deletions README.md
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
7 changes: 0 additions & 7 deletions build.sh

This file was deleted.

7 changes: 0 additions & 7 deletions config.rc

This file was deleted.

22 changes: 0 additions & 22 deletions run.sh

This file was deleted.

0 comments on commit 06fe13c

Please sign in to comment.