Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ RUN echo "export TERM=xterm-256color" >> ~/.bashrc
RUN echo "color ir_blue" >> ~/.vimrc.after

ADD run_tests.sh /opt/
ADD run_mem_tests.sh /opt/

ENTRYPOINT ["/opt/run_tests.sh"]

ENTRYPOINT ["/opt/run_mem_tests.sh"]
43 changes: 43 additions & 0 deletions docker/run_mem_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
echo Using Git Repo: ${GIT_REPO:="https://github.com/SpectraLogic/ds3_c_sdk.git"}
echo Using Git Branch: ${GIT_BRANCH:="master"}

echo DS3_ENDPOINT ${DS3_ENDPOINT}
echo DS3_SECRET_KEY ${DS3_SECRET_KEY}
echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY}

echo "cd /opt"
cd /opt

if [ ${GIT_BRANCH} != "master" ]; then
echo git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
else
echo git clone ${GIT_REPO}
git clone ${GIT_REPO}
fi

echo "cd ds3_c_sdk"
cd ds3_c_sdk

echo "cmake ."
cmake .

echo "make"
make

echo "make install"
make install
ldconfig

echo "cd test"
cd test

echo "cmake ."
cmake .

echo "make"
make
echo "make mem"
make mem