Skip to content

Commit

Permalink
[#144] Updates to script comments, added LD_LIBRARY_PATH to container…
Browse files Browse the repository at this point in the history
…, and created docker_debug.sh;
  • Loading branch information
jlucas9 committed Sep 15, 2023
1 parent 55c5087 commit df2159c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 6 deletions.
2 changes: 2 additions & 0 deletions support/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ RUN mkdir /tmp/wolfssl/build \
&& cmake -DCMAKE_C_FLAGS="-DWOLFSSL_AESGCM_STREAM" .. \
&& make install \
&& rm -rf /tmp/wolfssl

ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
2 changes: 1 addition & 1 deletion support/scripts/build_kmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Convenience script for CryptoLib development
# Will build in current directory
#
# ./build_internal.sh
# ./build_kmc.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down
2 changes: 1 addition & 1 deletion support/scripts/build_minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Convenience script for CryptoLib development
# Will build in current directory
#
# ./build_internal.sh
# ./build_minimal.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down
2 changes: 1 addition & 1 deletion support/scripts/build_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Convenience script for CryptoLib development
# Will build in current directory
#
# ./build_internal.sh
# ./build_support.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down
2 changes: 1 addition & 1 deletion support/scripts/build_wolf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Convenience script for CryptoLib development
# Will build in current directory
#
# ./build_internal.sh
# ./build_wolf.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down
2 changes: 1 addition & 1 deletion support/scripts/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Convenience script for CryptoLib development
#
# ./internal_docker_build.sh
# ./docker_build.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down
13 changes: 13 additions & 0 deletions support/scripts/docker_debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -i
#
# Convenience script for CryptoLib development
#
# ./internal_docker_build.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/env.sh

echo "Start docker container to debug in..."
$DFLAGS -v $BASE_DIR:$BASE_DIR -w $BASE_DIR ivvitc/cryptolib bash
echo ""
2 changes: 1 addition & 1 deletion support/scripts/wolf_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Convenience script for CryptoLib development
#
# ./internal_docker_build.sh
# ./wolf_docker_build.sh
#

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down

0 comments on commit df2159c

Please sign in to comment.