Skip to content

Commit dd81a23

Browse files
authored
Update docker-compile.sh
1 parent 307fda4 commit dd81a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/scripts/docker-compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ if [ ${CURRENT_ARCHITECTURE} == "aarch64" ]; then
200200
USER_ARCHITECTURE="arm/v6"
201201
fi
202202
fi
203-
if [ $ARCHITECTURE != $USER_ARCHITECTURE ]; then
203+
if [ $CURRENT_ARCHITECTURE != $USER_ARCHITECTURE ]; then
204204
log "Identified user space current architecture: $USER_ARCHITECTURE"
205205
CURRENT_ARCHITECTURE=$USER_ARCHITECTURE
206206
fi
@@ -211,7 +211,7 @@ fi
211211
log "Identified kernel current architecture: $CURRENT_ARCHITECTURE"
212212
if [ $ARCHITECTURE != $CURRENT_ARCHITECTURE ]; then
213213
echo "---> Build is not for the same architecturem, enable emulation for ${PLATFORM_ARCHITECTURE}"
214-
ENTRYPOINT_OPTION=
214+
ENTRYPOINT_OPTION="--entrypoint /usr/bin/qemu-static"
215215

216216
if [ $CURRENT_ARCHITECTURE != "amd64" ]; then
217217
echo "---> Emulation builds can only be executed on linux/amd64, linux/x86_64 platforms, current architecture is ${CURRENT_ARCHITECTURE}"

0 commit comments

Comments
 (0)