Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/signalfx/maestro-base

Base Docker image for Maestro-enabled components
https://github.com/signalfx/maestro-base

Last synced: 4 days ago
JSON representation

Base Docker image for Maestro-enabled components

Awesome Lists containing this project

README

        

# Base Docker image for Maestro-enabled components

![SignalFx](https://raw.githubusercontent.com/signalfx/maestro-base/master/logo/sfx.png) ![Alpine](https://raw.githubusercontent.com/signalfx/maestro-base/master/logo/alpine.png)

This base image provides a sane foundation for the Docker images of
components orchestrated by
[MaestroNG](https://github.com/signalfuse/maestro-ng). It's based on
[Alpine Linux](http://alpinelinux.org/) and provides a lightweight base
to build applications upon. It contains:

- `git`, `wget`, `tar` to download packages or repositories during
provisioning of sub-images;
- `bash` and `vim`, for a sane troubleshooting environment inside the
container;
- Python 2.7 with `pip`;
- [MaestroNG](https://github.com/signalfuse/maestro-ng), for its guest
utils functions.

See [MaestroNG's
documentation](http://maestro-ng.readthedocs.org/en/master/guest-functions/)
for more information on how to use Maestro and the guest utils
(Python-based helper functions for your container init script).

# Java images

![Java](https://raw.githubusercontent.com/signalfx/maestro-base/master/logo/java.png)

The `:alp-3.8` base image does not include a Java runtime. For this, another
additional images are available: `:alp-3.8-jdk8`
that offers the Oracle Java JDK8.

To use, setup your `Dockerfile` like so:

```Dockerfile
# Let's use Java8
FROM quay.io/signalfuse/maestro-base:alp-3.8-jdk8
...
```

# Building

Instructions on how the Alpine Linux based
`quay.io/signalfuse/maestro-base` images were built:

## Building the base image

```
$ docker build -t quay.io/signalfuse/maestro-base:alp-3.8 .
```

## Building a Java base image

Oracle no longer provides unauthenticated downloads of jdk8 so you first
must download the jdk linux-x64.tar.gz file into the java/ sub directory.
You can find downloads [here](http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html)
```
$ JAVA_VERSION=8 docker build \
-f java/Dockerfile.${JAVA_VERSION} \
-t quay.io/signalfuse/maestro-base:alp-3.8-jdk${JAVA_VERSION} \
java/
```