https://github.com/codibly/docker-java
https://github.com/codibly/docker-java
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codibly/docker-java
- Owner: codibly
- Created: 2018-06-26T18:57:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T00:54:12.000Z (about 6 years ago)
- Last Synced: 2025-02-15T15:51:50.317Z (4 months ago)
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!