This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #597 from tango-controls/add-debian-buster
Add debian buster (for 9.3-backports branch)
- Loading branch information
Showing
17 changed files
with
130 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM debian:buster | ||
|
||
ARG APP_UID=2000 | ||
|
||
ARG APP_GID=2000 | ||
|
||
MAINTAINER TANGO Controls team <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y apt-utils | ||
|
||
RUN apt-get install -y build-essential cmake | ||
|
||
RUN apt-get install -y curl lsb-release | ||
|
||
RUN apt-get install -y omniidl libomniorb4-dev libcos4-dev libomnithread4-dev libzmq3-dev | ||
|
||
RUN apt-get install -y python2 | ||
|
||
RUN groupadd -g "$APP_GID" tango | ||
|
||
RUN useradd -u "$APP_UID" -g "$APP_GID" -ms /bin/bash tango | ||
|
||
ENV PKG_CONFIG_PATH=/home/tango/lib/pkgconfig | ||
|
||
USER tango | ||
|
||
WORKDIR /home/tango |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "############################" | ||
echo "CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE" | ||
echo "OS_TYPE=$OS_TYPE" | ||
echo "TANGO_HOST=$TANGO_HOST" | ||
echo "COVERALLS=$COVERALLS" | ||
echo "############################" | ||
|
||
docker exec cpp_tango mkdir -p /home/tango/src/build | ||
|
||
# set defaults | ||
MAKEFLAGS=${MAKEFLAGS:- -j 2} | ||
COVERALLS=${COVERALLS:-OFF} | ||
USE_PCH=${USE_PCH:-OFF} | ||
COVERALLS_MODULE_PATH=/home/tango/coveralls-cmake/cmake | ||
|
||
docker exec cpp_tango cmake \ | ||
-H/home/tango/src \ | ||
-B/home/tango/src/build \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DCPPZMQ_BASE=/home/tango \ | ||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \ | ||
-DCOVERALLS=${COVERALLS} \ | ||
-DCOVERALLS_MODULE_PATH=${COVERALLS_MODULE_PATH} | ||
|
||
if [[ "$COVERALLS" == "ON" ]] | ||
then | ||
docker exec cpp_tango \ | ||
/home/tango/build-wrapper-linux-x86/build-wrapper-linux-x86-64 \ | ||
--out-dir /home/tango/src/bw-output \ | ||
make -C /home/tango/src/build | ||
else | ||
docker exec cpp_tango make -C /home/tango/src/build | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <zmq.hpp> | ||
|
||
int main(int, char**) | ||
{ | ||
zmq::context_t c; | ||
zmq::socket_t s(c, ZMQ_REQ); | ||
s.disconnect("some endpoint"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ PID=$(<@PROJECT_BINARY_DIR@/cpp_test_ds/DevTest_@[email protected]) | |
kill $PID | ||
|
||
PID=$(<@PROJECT_BINARY_DIR@/cpp_test_ds/fwd_ds/FwdTest_@[email protected]) | ||
kill $PID | ||
kill $PID | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ echo "`ldd @PROJECT_BINARY_DIR@/cpp_test_ds/fwd_ds/FwdTest`" | |
@PROJECT_BINARY_DIR@/cpp_test_ds/fwd_ds/FwdTest @INST_NAME@ -v5 1>@PROJECT_BINARY_DIR@/cpp_test_ds/fwd_ds/FwdTest_@[email protected] 2>&1 & | ||
echo $! > @PROJECT_BINARY_DIR@/cpp_test_ds/fwd_ds/FwdTest_@[email protected] | ||
|
||
sleep 3 | ||
sleep 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters