Public | Automated Build

Last pushed: a year ago
Short Description
Gradle images based on Alpine Linux.
Full Description

Supported tags and respective Dockerfile links:
・latest (versions/3/Dockerfile)
・3 (versions/3/Dockerfile)
・2 (versions/2/Dockerfile)

Usage

docker-compose up -d

  • docker-compose.yml
version: "2"

services:
  ap:
    image: pottava/gradle:3
    command: gradle run
    ports:
      - "80:5050"
    volumes:
      - "./app:/app"
      - "./caches:/root/.gradle/caches"
    container_name: "ap"

 

docker-compose -f gradle.yml run --rm ec
docker-compose -f gradle.yml run --rm ec-fix
docker-compose -f gradle.yml run --rm clean

  • gradle.yml
ec:
  image: pottava/gradle:3
  command: gradle eclipse
  dns:
    - 8.8.8.8
  volumes:
    - "./app:/app"
  volumes_from:
    - caches

ec-fix:
  image: busybox
  command: sed -i -e "s/\/root\/\.gradle\/caches/\.\.\/caches/g" /app/.classpath
  volumes:
    - "./app:/app"

clean:
  image: pottava/gradle:3
  command: gradle clean
  volumes:
    - "./app:/app"

caches:
  image: pottava/gradle:3
  volumes:
    - "./caches:/root/.gradle/caches"
Docker Pull Command
Owner
pottava
Source Repository

Comments (0)