mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 17:12:23 +01:00
* Adding some developer utilities for Docker. * Add support for `make test` * Don't need to run the testsuite specifically * Share .gitconfig and ssh keys with the container Co-authored-by: Andras Fekete <andras@wolfssl.com>
15 lines
693 B
Bash
Executable File
15 lines
693 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Running with \"${*}\"..."
|
|
|
|
# Assume we're in wolfssl/Docker
|
|
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 ${HOME}/.gitconfig:/home/docker/.gitconfig:ro -v ${HOME}/.ssh:/home/docker/.ssh:ro -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure ${*@Q} && make" && \
|
|
docker run -it -v ${HOME}/.gitconfig:/home/docker/.gitconfig:ro -v ${HOME}/.ssh:/home/docker/.ssh:ro -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash
|
|
|
|
exitval=$?
|
|
echo "Exited with error code $exitval"
|
|
exit $exitval
|