mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Script can run from an arbitrary folder
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
echo "Running with \"${@}\"..."
|
echo "Running with \"${@}\"..."
|
||||||
docker build -t wolfssl --build-arg UID=$(id -u) --build-arg GID=$(id -g) . && \
|
|
||||||
docker run -it -v $(pwd)/..:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure $(echo ${@}) && make && ./testsuite/testsuite.test" && \
|
# Assume we're in wolfssl/Docker
|
||||||
docker run -it -v $(pwd)/..:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash
|
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
|
||||||
|
|
||||||
|
docker build -t wolfssl --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${WOLFSSL_DIR}/Docker && \
|
||||||
|
docker run -it -v ${WOLFSSL_DIR}:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure $(echo ${@}) && make && ./testsuite/testsuite.test" && \
|
||||||
|
docker run -it -v ${WOLFSSL_DIR}:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash
|
||||||
echo "Exited with error code $?"
|
echo "Exited with error code $?"
|
||||||
|
Reference in New Issue
Block a user