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.
- Host: GitHub
- URL: https://github.com/qaware/centos7-jdk8
- Owner: qaware
- License: mit
- Created: 2016-04-13T23:51:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T21:50:18.000Z (over 9 years ago)
- Last Synced: 2025-03-05T15:02:19.644Z (10 months ago)
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[  ](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.