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

https://github.com/codibly/docker-java


https://github.com/codibly/docker-java

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Images for Java development

### Supported tags and respective ```Dockerfile``` links

##### Java
* ```jdk-8``` Oracle Java 8 on Ubuntu base image
* ```jdk-11``` Oracle Java 11 on Ubuntu base image

##### Java with Gradle
* ```gradle-4.8``` Above + Gradle 4.8

##### Java with Maven
* ```maven-3.5``` Above + Maven 3.5

### How to create a new image
1. Create a new directory for the image for example `gradle/5.0`
2. Create a new `Dockerfile` in the new directory
3. Build a new image
```bash
$ cd gradle/5.0
$ docker build -f Dockerfile -t codibly/gradle:5.0-jdk-8 .
```
4. Login into the docker hub `docker login`
5. Push new image
```bash
$ docker push codibly/gradle:5.0-jdk-8 .
```
6. Done!