Deployments with rsync?

deployment

#1

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

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

My deploy.sh script uses rsync, and the build fails with

./scripts/deploy.sh: 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.


#2

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

#3

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