Skip to content

Commit 23fae63

Browse files
committed
Enable nodemon when using test:env
This avoids the need to rebuild the environment when making code changes and running integration tests Change-type: minor
1 parent 2f3e3d2 commit 23fae63

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ COPY --from=build-base /usr/src/app/node_modules ./node_modules
127127
#dev-cmd-live=LIVEPUSH=1 ./entry.sh
128128

129129
# Copy build files
130+
COPY entry.sh .
130131
COPY build-utils ./build-utils
131132
COPY webpack.config.js tsconfig.json tsconfig.release.json tsconfig.js.json .mochapodrc.yml ./
132133
COPY typings ./typings

docker-compose.dev.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
version: '2.3'
22

33
services:
4+
balena-supervisor-sut:
5+
build:
6+
context: ./
7+
dockerfile: Dockerfile.template
8+
target: test
9+
args:
10+
ARCH: ${ARCH:-amd64}
11+
environment:
12+
LIVEPUSH: '1'
13+
volumes:
14+
- './src:/usr/src/app/src'
415
sut:
516
command: sleep infinity
617
volumes:

0 commit comments

Comments
 (0)