File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2525set -e
2626set -x
2727
28- CONTAINER=shiftcrypto/firmware_v2:41
28+ CONTAINER_REPO=shiftcrypto/firmware_v2
29+ CONTAINER_VERSION=$( cat .containerversion)
30+ CONTAINER=$CONTAINER_REPO :${CONTAINER_VERSION}
2931
3032if [ " $1 " == " pull" ] ; then
3133 docker pull " $CONTAINER "
Original file line number Diff line number Diff line change 1+ 41
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ make dockerdev
3939The docker container will not allow you to access the hosts USB devices by default which means that
4040it is necessary to flash the device in a terminal not running in docker.
4141
42+ > [ !NOTE]
43+ > Current development container is defined in the file ` .containerversion `
44+
4245### Install development environment on macOS
4346
4447Make sure you have [ Homebrew] ( https://brew.sh ) installed.
Original file line number Diff line number Diff line change @@ -129,7 +129,9 @@ jlink-flash-factory-setup: | build
129129jlink-flash-firmware-semihosting : | build-semihosting
130130 JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build-semihosting/scripts/firmware.jlink
131131dockerinit :
132- ./scripts/container.sh build --pull --platform linux/amd64 --force-rm --no-cache -t shiftcrypto/firmware_v2 .
132+ ./scripts/container.sh build --pull --platform linux/amd64 --force-rm --no-cache -t shiftcrypto/firmware_v2:$(shell cat .containerversion) .
133+ dockerpull :
134+ ./scripts/container.sh pull shiftcrypto/firmware_v2:$(shell cat .containerversion)
133135dockerdev :
134136 ./scripts/dockerenv.sh
135137dockerrel :
Original file line number Diff line number Diff line change 3333fi
3434
3535CONTAINER_IMAGE=shiftcrypto/firmware_v2
36- CONTAINER_VERSION=${CONTAINER_VERSION:- latest }
36+ CONTAINER_VERSION=${CONTAINER_VERSION:- $(cat .containerversion) }
3737PROJECT_NAME=" $( basename " $( realpath " $DIR /.." ) " ) "
3838CONTAINER_NAME=" $PROJECT_NAME -$CONTAINER_NAME_SUFFIX "
3939
You can’t perform that action at this time.
0 commit comments