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

https://github.com/qaware/centos7-jdk8

A CentOS7 docker container with JDK8 installed.
https://github.com/qaware/centos7-jdk8

Last synced: 3 months ago
JSON representation

A CentOS7 docker container with JDK8 installed.

Awesome Lists containing this project

README

          

[ ![Download](https://api.bintray.com/packages/qaware-oss/registry/base%3Acentos7-jdk8/images/download.svg) ](https://bintray.com/qaware-oss/registry/base%3Acentos7-jdk8/_latestVersion)

# CentOS7 with JDK 8

This repository contains the `Dockerfile` for the `centos7-jdk8` image. It is
based on the latest CentOS7 image and installs the Oracle JDK8.

## Build instructions

We use Gradle to build the Docker images. Of course you can also use the Docker
CLI commands to create and upload the image.
```shell
$ ./gradlew buildDockerImage
```

Next we need to squash the image size. For this we will export a container based
on the image and import it as image again using plain Docker commands.
```shell
docker run -d
docker export | docker import - qaware-oss-docker-registry.bintray.io/base/centos7-jdk8:
```

`` - The created image ID name.
`` - The container ID echoed after the Docker run command.
`` - Should be the actual Java version, like 8u77. When not specified
"latest" will be used as the Bintray version name.

## Pushing image to Bintray

Tag the latest image according to the following convention by running the following command:
```shell
docker tag qaware-oss-docker-registry.bintray.io/base/centos7-jdk8
```
`` - The image ID from the latest versioned image previously created.

Use the Docker client push command to upload and publish your images (please use
Docker v1.6 and above):
```shell
docker push qaware-oss-docker-registry.bintray.io/base/centos7-jdk8:
```
`` - Should be the actual Java version, like 8u77. When not specified
"latest" will be used as the Bintray version name.

Alternatively you can also use Gradle to upload the Docker images to Bintray.
```shell
$ ./gradlew pushDockerImage -PbintrayApiKey=<>
```

## Downloading image from Bintray

The images are hosted at the QAware OSS Bintray Docker repository. Use the Docker
client pull command to download an image (please use Docker v1.6 and above):
```shell
docker pull qaware-oss-docker-registry.bintray.io/base/centos7-jdk8:
```
`` - Optional. Should be the actual Java version like 8u77. When not specified
"latest" will be used as the Bintray version name.

## License

This software is provided under the MIT open source license, read the `LICENSE`
file for details.