Building VPN docker images (researcher component) fails due to very large context
(In Trump's voice) My Fed-BioMed folder is quite large. It is the largest Fed-BioMed folder there is. It is over 50G large.
When I execute ${FEDBIOMED_DIR}/scripts/fedbiomed_vpn build researcher
, I get the following error:
=> [internal] load build context 258.3s
=> => transferring context: 1.28GB 258.3s
=> CACHED [ 2/19] RUN apt-get update && apt-get install -y apt-utils wget socat git 0.0s
failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
Indeed, I see that we are passing the whole Fed-BioMed folder as build context for the researcher component.
I can workaround this issue with the following .dockerignore
file located in the Fed-BioMed folder
(base) ➜ src cat ~/dev/fedbiomed/.dockerignore
var/*
etc/*
.git
notebooks/data/*
gui
data/*
envs/development/*
But maybe it would be nice to have more specific context specs in the docker-compose.yml
for the researcher.