containers / build

another build tool for container images (archived, see https://github.com/rkt/rkt/issues/4024)
Apache License 2.0
342 stars 80 forks source link

copy-to-dir fail with "file exists" not overridable #244

Open BlauerHunger opened 8 years ago

BlauerHunger commented 8 years ago

I'm trying to use acbuild to create an image for an application which uses config files in /etc. But when I try to import all the config from a directory on the local filesystem (let's call it image-data.d) (this directory contains a hierarchy such as /etc/apache2/apache2.conf /etc/apache2/sites-available/000-default.conf) with "acbuild copy-to-dir image-data.d/* /" I get an error "copy-to-dir: mkdir /.acbuild/currentaci/rootfs/etc: file exists" and the files don't get imported. I don't want to specify each file to be imported because the build scripts I use should be as universal as possible.

Is there a way to make acbuild override existing files? (use cp -rf and mkdir -p)