2018 15" MBP
Docker version 18.03.1-ce, build 9ee9f40
resin cli 7.9.3
raspi 3 b+
Resin OS 2.15.1+rev1
Ignoring doesn’t seem to work at all, in any situation. PLEASE HELP @CameronDiver !
For example I’m working on a node project for raspi3. Both
.dockerignore have a single line for
If I have a
node_modules directory on my dev machine (which I have to use different dev dependencies during development) and I run any of the following:
resin push appName -c
sudo resin local push --source . -f
resin deploy appName --build
node_modules from my dev machine gets copied to my raspi3 (I know this because I’m dependent on some packages that need to be of a certain architecture… onoff etc) and my container fails to run with errors.
HOWEVER. If I
rm -rf node_modules before I run any of the above commands then things seem to work perfectly. Heretofore ignoring files doesn’t work. Not with
gitignore. Not with
dockerignore. And the documentation on resin.io talks about using
dockerignore multiple times (eg https://docs.resin.io/learn/deploy/build-optimization/#use-dockerignore). This should work!
Edit: I also tried doing an update through
git push resin master and that did not heed
dockerignore either. I think this wouldn’t be such a big deal if it wasn’t in the docs (a couple times) that
dockerignore does something. Maybe for now remove it from the docs?