Local Deploy without registry?

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:

    image: node:6.10.0-slim
    pull: true
      - 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.

Thanks ! :slight_smile:


I am also new but this looks like it answers your question : http://paislee.io/how-to-build-and-deploy-docker-images-with-drone/

1 Like

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.

    image: docker
      - docker build --rm -t octocat/hello-world .
      - docker run --rm octocat/hello-world --test
      - docker rmi octocat/hello-world
      - /var/run/docker.sock:/var/run/docker.sock

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.

1 Like