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 25
25
set -e
26
26
set -x
27
27
28
- CONTAINER=shiftcrypto/firmware_v2:41
28
+ CONTAINER_REPO=shiftcrypto/firmware_v2
29
+ CONTAINER_VERSION=$( cat .containerversion)
30
+ CONTAINER=$CONTAINER_REPO :${CONTAINER_VERSION}
29
31
30
32
if [ " $1 " == " pull" ] ; then
31
33
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
39
39
The docker container will not allow you to access the hosts USB devices by default which means that
40
40
it is necessary to flash the device in a terminal not running in docker.
41
41
42
+ > [ !NOTE]
43
+ > Current development container is defined in the file ` .containerversion `
44
+
42
45
### Install development environment on macOS
43
46
44
47
Make 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
129
129
jlink-flash-firmware-semihosting : | build-semihosting
130
130
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build-semihosting/scripts/firmware.jlink
131
131
dockerinit :
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)
133
135
dockerdev :
134
136
./scripts/dockerenv.sh
135
137
dockerrel :
Original file line number Diff line number Diff line change 33
33
fi
34
34
35
35
CONTAINER_IMAGE=shiftcrypto/firmware_v2
36
- CONTAINER_VERSION=${CONTAINER_VERSION:- latest }
36
+ CONTAINER_VERSION=${CONTAINER_VERSION:- $(cat .containerversion) }
37
37
PROJECT_NAME=" $( basename " $( realpath " $DIR /.." ) " ) "
38
38
CONTAINER_NAME=" $PROJECT_NAME -$CONTAINER_NAME_SUFFIX "
39
39
You can’t perform that action at this time.
0 commit comments