I am using maven-docker-plugin in my project. This plugin will create docker containers during integration tests. Since drone.io put the build process inside a docker container, whether I can still use maven-docker-plugin during maven build? How to control the docker containers during build time?
Whether drone.io support creating docker during build process
709 Views Asked by Joey Yi Zhao At
1
There are 1 best solutions below
Related Questions in DRONE.IO
- telemetry.actuator_output_status() in MAVSDK-Python is not working
- Image-Processing using Action Camera through Wi-fi in raspberry pi 4
- Tests fail in Drone CI due to Go & Postgres `wall` mismatch in `time.Time` values
- Converting python library UHD to hackrf
- Tello EDU Drone sending no response
- Drone CI multiple triggers
- Selenium + Drone - How to download a file into one of multiple volumes on CI?
- Networking of Ganache-cli with Truffle project in Drone CI with Docker
- docker runner cant clone git repo on kubernetes setup with drone.io
- How can I decode the parameter Line (class <byte>) in Mambo DroneVision?
- Drone CI-Unable to start a new build: json: cannotunmarshal array into Go value of typegitee.content
- Programming issue with HACKRF module
- Can I use the DJI 3M connected to Drtk2 to capture coordinates with 1-3cm accuracy?
- Get image of DJI M3E with python
- R ggplot rendering tiny text when run via Dockerfile
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you want interact directly with the Docker daemon to create and start containers, you need to mount the host machines Docker socket into your build container.
Since you mentioned using the docker-maven-plugin you may want a configuration similar to the following:
Please note that exposing the Docker daemon to your build environment is essentially giving your build root access to your server. This approach is therefore not recommended for public repositories.
Please also note that volumes are restricted security reasons. To use volumes you need to have a Drone administrator mark your repository as trusted, in your repository settings screen.
So it is possible to launch containers from inside the build environment for the purpose of running your tests. The recommended approach, however, is to run your tests directly inside your build environment. This is the use case for which Drone is optimized, and it eliminates the security issues mentioned above.