Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3536222
D3988.id12490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3988.id12490.diff
View Options
diff --git a/services/tunnelbroker/Dockerfile b/services/tunnelbroker/Dockerfile
--- a/services/tunnelbroker/Dockerfile
+++ b/services/tunnelbroker/Dockerfile
@@ -22,9 +22,10 @@
COPY native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto protos/tunnelbroker.proto
COPY services/lib/cmake-components cmake-components
-COPY services/tunnelbroker/docker/ scripts/
+COPY services/lib/docker/ scripts/
+COPY services/tunnelbroker/docker/* docker/
COPY services/tunnelbroker/ .
-RUN scripts/build_server.sh
+RUN scripts/build_service.sh
-CMD if [ "$COMM_TEST_SERVICES" -eq 1 ]; then scripts/run_tests.sh; else scripts/run_server.sh; fi
+CMD if [ "$COMM_TEST_SERVICES" -eq 1 ]; then scripts/run_service.sh; else scripts/run_service.sh; fi
diff --git a/services/tunnelbroker/docker/build_server.sh b/services/tunnelbroker/docker/build_server.sh
deleted file mode 100755
--- a/services/tunnelbroker/docker/build_server.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-set -e
-
-# folly hack - https://github.com/facebook/folly/pull/1231
-sed -i 's/#if __has_include(<demangle.h>)/#if __has_include(<Demangle.h>)/g' /usr/lib/folly/folly/detail/Demangle.h
-
-rm -rf lib
-mkdir lib
-pushd lib
-ln -s /usr/lib/folly
-ln -s /usr/lib/glog
-ln -s /usr/lib/double-conversion
-popd # lib
-
-rm -rf cmake/build
-mkdir -p cmake/build
-
-echo "building the server (MAKEFLAGS=$MAKEFLAGS)..."
-pushd cmake/build
-cmake ../..
-make
-popd # cmake/build
diff --git a/services/tunnelbroker/docker/install_folly.sh b/services/tunnelbroker/docker/install_folly.sh
deleted file mode 100755
--- a/services/tunnelbroker/docker/install_folly.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-set -e
-
-pushd /usr/lib
-
-git clone https://github.com/facebook/folly.git --branch v2020.01.13.00 --single-branch
-git clone https://github.com/google/glog.git --branch v0.4.0 --single-branch
-git clone https://github.com/google/double-conversion.git --branch v3.1.5 --single-branch
-
-popd # /usr/lib
diff --git a/services/tunnelbroker/docker/run_server.sh b/services/tunnelbroker/docker/run_server.sh
deleted file mode 100755
--- a/services/tunnelbroker/docker/run_server.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-set -e
-
-cmake/build/bin/tunnelbroker
diff --git a/services/tunnelbroker/docker/run_tests.sh b/services/tunnelbroker/docker/run_tests.sh
deleted file mode 100755
--- a/services/tunnelbroker/docker/run_tests.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-set -e
-
-pushd cmake/build
-make test ARGS="-V"
-popd # cmake/build
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 5:49 PM (11 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2707830
Default Alt Text
D3988.id12490.diff (2 KB)
Attached To
Mode
D3988: [services] Lib - Tunnelbroker - Use scripts
Attached
Detach File
Event Timeline
Log In to Comment