Hi guys, im a noob and the docs dont talk too much about it.
Im not using any registry, and my apps are Dockerized. My basic setup is:
- npm install
- npm run build
After that i want to run my
docker-compose up … is there any specific tool im missing ? or Drone is not designed to do this stuff.
or Drone is not designed to do this stuff.
Drone is designed to execute shell commands and unix processes. So anything you can do in a Linux environment with a bash script (with few exceptions) you can do with drone. It is therefore possible to build and launch images using drone.
For example, below you can see how we might interact with the host machine docker daemon to build an image. You could use a similar approach start containers with docker compose.
- docker build --rm -t octocat/hello-world .
- docker run --rm octocat/hello-world --test
- docker rmi octocat/hello-world
is there any specific tool im missing
There is really no special tooling because things are done through shell commands. We do have a concept of plugins, which are sort of liked re-usable pipeline steps. Under the covers plugins are just wrappers around shell commands.
You can see a list of plugins here, however, I am not aware of any existing plugins that support this particular workflow.