chrisgahlert / gradle-dcompose-sample Goto Github PK
View Code? Open in Web Editor NEWSample project showing the usage of the gradle-dcompose-plugin
Home Page: https://github.com/chrisgahlert/gradle-dcompose-plugin
Sample project showing the usage of the gradle-dcompose-plugin
Home Page: https://github.com/chrisgahlert/gradle-dcompose-plugin
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
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.