Skip to content

Commit aa1f253

Browse files
author
Andras Fekete
committed
Force a rebuild using the latest sources
1 parent a75c2be commit aa1f253

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Docker/yocto/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ WORKDIR /opt/poky
1919
ARG YOCTO_VERSION=kirkstone
2020
RUN git checkout -t origin/${YOCTO_VERSION} -b ${YOCTO_VERSION} && git pull
2121

22-
RUN git clone --single-branch --branch=master https://github.com/wolfssl/meta-wolfssl.git && \
22+
# This arg is to be able to force a rebuild starting from this line
23+
ARG DUMMY=date
24+
RUN DUMMY=${DUMMY} git clone --single-branch --branch=master https://github.com/wolfssl/meta-wolfssl.git && \
2325
/bin/bash -c "source oe-init-build-env" && \
2426
echo 'IMAGE_INSTALL:append = " wolfssl wolfclu wolfssh wolfmqtt wolftpm wolfclu "' >> /opt/poky/build/conf/local.conf && \
2527
sed -i '/\/opt\/poky\/meta-poky \\/a \\t/opt/poky/meta-wolfssl \\' /opt/poky/build/conf/bblayers.conf

Docker/yocto/buildAndPush.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NUM_FAILURES=0
1313
CUR_DATE=$(date -u +%F)
1414
for ver in kirkstone dunfell; do
1515
echo "Building wolfssl/yocto:${ver}-${CUR_DATE} as ${DOCKER_BUILD_OPTIONS}"
16-
docker build -t wolfssl/yocto:${ver}-${CUR_DATE} --build-arg YOCTO_VERSION=${ver} -f Dockerfile "${WOLFSSL_DIR}/Docker/yocto" && \
16+
docker build -t wolfssl/yocto:${ver}-${CUR_DATE} --build-arg YOCTO_VERSION=${ver} --build-arg BUILD_DATE=${CUR_DATE} -f Dockerfile "${WOLFSSL_DIR}/Docker/yocto" && \
1717
docker tag wolfssl/yocto:${ver}-${CUR_DATE} wolfssl/yocto:${ver}-latest
1818
if [ $? -eq 0 ]; then
1919
echo "Pushing containers to DockerHub"

0 commit comments

Comments
 (0)