Deployments with rsync?



I thought I’d give 2.0 a spin for a new project, my config.yml looks like this:

version: 2
    working_directory: ~/app
      - image: circleci/node:6.10.3
      - checkout
      - run: echo "hello world"
      - deploy:
          name: deploy master
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then

My script uses rsync, and the build fails with

./scripts/ line 36: rsync: command not found
Exited with code 127

I’ve poured over the docs, and I don’t understand why rsync isn’t there or what I’m supposed to do about it. I’ve also poured over the forums and every related reply seems to be “build your own docker image”.

Just gonna say this out right: nope, you will never ever catch me doing that, so if that’s the only answer then it’s back to jenkins.


I will build it for you.

FROM circleci/node:6.10.3

RUN sudo apt install -y rsync

You can now use it under the name rohara/node:6.10.3-rsync

6.10.3-rsync: digest: sha256:0529c0eae4a9c9f1301cc30a673dcfee422f26984de178ee72b95a82be4f51e8 size: 3897

Alternatively, add this to your config before your deploy script:

sudo apt install rsync


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.