Closed ahammond closed 6 years ago
Hi.
--relative
flag didn't help, because it didn't use mkdir -p
, so we should do mkdir -p
in the grammarly rsync image.
@ybogdanov or @diunko should decide to update Grammarly's rsync image to support that.
Now you can use busybox image (+1MB to size compared with scratch) and mkdir.
FROM ubuntu:16.04
EXPORT /usr/lib/x86_64-linux-gnu/ usr_lib_x86_64-linux-gnu/
FROM busybox
RUN mkdir -p /usr/lib/x86_64-linux-gnu
IMPORT usr_lib_x86_64-linux-gnu /usr/lib/x86_64-linux-gnu
BTW, just for prove my PoW I do test with rsync -R
INFO[0000] | Running in 893a72857af6: /opt/rsync/bin/rsync -a -R --delete-during /usr/lib/x86_64-linux-gnu/ /.rocker_exports/usr/lib/x86_64-linux-gnu
rsync: mkdir "/.rocker_exports/usr/lib/x86_64-linux-gnu" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(656) [Receiver=3.1.1]
But we should use rsync -R
in IMPORT /
section
Thanks for reporting. Unfortunately, we are discontinuing this project. See the notice here: https://github.com/grammarly/rocker/blob/master/README.md
Closing this issue as we are not able to address it. Sorry.
I want to build a scratch container using something like this:
However it fails with
This makes sense since the
/.rocker_exports/usr/lib/x86_64-linux-gnu
directory doesn't yet exist. There are a number of solutions to this outlined nicely at http://stackoverflow.com/a/22908437/538507I think the Right Way to solve this is using
rsync --relative
. For example,EXPORT /usr/lib/x86_64-linux-gnu
would parse into something likeWhich would create the directory structure under .rocker_exports.