In Illustrator, a simple **Pattern Brush** will work...

[![enter image description here][1]][1]

If you want a bit of spacing between the iterations....

[![enter image description here][2]][2]


  [1]: https://i.sstatic.net/mqQA6.png
  [2]: https://i.sstatic.net/DHGqD.png