Giter VIP home page Giter VIP logo

gradle-dcompose-sample's People

Contributors

chrisgahlert avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gradle-dcompose-sample's Issues

How can I stop container graceful ?

First, GREAT WORK ! :D

How can I stop container graceful ?

I stop wrapper with CTRL + C and container is not removed like:
docker-compose rm -fv

How to use dcompose plugin inside a multistage-docker build

Hi,

Awesome job with this! I am trying to use the plugin in a multistage dockerfile.
Something like:

FROM gradle:jdk11 as builder
COPY --chown=gradle:gradle . /home/gradle/src
RUN gradle build

FROM openjdk:11-jre-slim
COPY --from=builder /home/gradle/src/build/libs/app.jar app.jar
.........

The gradle build requires a database, so I'm trying to use the plugin to spawn it inside a container:


dcompose {
    database {
        image = 'myImage'
    }
}

However, the plugin isn't able to create the container, as it doesn't have access to the docker from within the container doing the build.
I have tried to add a volume to the docker.sock but the result remained the same.

* What went wrong:
Execution failed for task ':createDefaultNetwork'.
> Docker command failed: org.newsclub.net.unix.AFUNIXSocketException: No such file or directory (socket: /run/docker.sock)

Do you have any sample or hint on how to achieve this ?
Note I am trying this on windows using docker-for-windows, but I expect the solution to work cross-platform.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.