2
0

Dockerfile 588 B

123456789101112
  1. # This Dockerfile is used in conjunction with the docker-OpenWrt.yml GitHub Action.
  2. ARG DOCKER_BASE_CONTAINER=openwrt/rootfs:x86-64-snapshot
  3. FROM $DOCKER_BASE_CONTAINER
  4. RUN mkdir -p /var/lock # Fix for parent container
  5. COPY libwolfssl.so /tmp/libwolfssl.so
  6. RUN export LIBWOLFSSL=$(ls /usr/lib/libwolfssl.so.* -1); \
  7. rm ${LIBWOLFSSL} && ln -s /tmp/libwolfssl.so ${LIBWOLFSSL}
  8. # for debugging purposes to make sure the correct library is tested
  9. RUN ls -Ll /usr/lib/libwolfssl* && ldd /lib/libustream-ssl.so | grep wolfssl
  10. COPY runTests.sh /tmp/.
  11. RUN /tmp/runTests.sh