Interesting – I’m using balena --version
11.21.0
, but my bundling time goes from 15 to 3 minutes when I delete some gitignored directories (npm_modules
and catkin build
products).
I added the following project-root-level .dockerignore
and still experienced 15-minute bundling times:
**/.git
**/node_modules
**/npm-debug
**/catkin_ws/build
**/catkin_ws/devel
**/catkin_ws/logs
/data
When I delete these directories manually (save .git
) I see 3 minute bundling times. My docker-compose.yaml
, at the same level as .dockerignore
, looks like:
version: '2'
volumes:
resin-data: {}
services:
devices:
build:
context: ./
dockerfile: ./App1/Dockerfile
privileged: true
restart: always
network_mode: host
volumes:
- resin-data:/data:rw
labels:
io.resin.features.kernel-modules: '1'
io.resin.features.supervisor-api: '1'
io.resin.features.resin-api: '1'
io.resin.features.dbus: '1'
robot:
build:
context: ./
dockerfile: ./App2/Dockerfile
privileged: true
restart: always
network_mode: host
depends_on:
- App1
volumes:
- resin-data:/data:rw
labels:
io.resin.features.supervisor-api: '1'
io.resin.features.resin-api: '1'
io.resin.features.dbus: '1'
So I expect .dockerignore
to be in the same build context for both services. Notice anything strange?