Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3390841
D9137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D9137.diff
View Options
diff --git a/services/base-image/Dockerfile b/services/base-image/Dockerfile
deleted file mode 100644
--- a/services/base-image/Dockerfile
+++ /dev/null
@@ -1,40 +0,0 @@
-FROM ubuntu:20.04
-
-ENV SHELL=/bin/bash
-
-RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
- cmake \
- git \
- build-essential \
- autoconf \
- libtool \
- pkg-config \
- libboost-all-dev \
- libfmt-dev \
- libgflags-dev \
- libgtest-dev \
- libcurl4-openssl-dev \
- libssl-dev \
- zlib1g-dev \
- curl \
- && rm -rf /var/lib/apt/lists/*
-
-RUN mkdir -p /transferred/scripts
-WORKDIR /transferred/scripts
-
-COPY docker/install_grpc.sh .
-RUN ./install_grpc.sh
-
-COPY docker/install_aws_sdk.sh .
-RUN ./install_aws_sdk.sh
-
-COPY docker/install_glog.sh .
-RUN ./install_glog.sh
-
-COPY docker/install_double.sh .
-RUN ./install_double.sh
-
-COPY docker/install_folly.sh .
-RUN ./install_folly.sh
-
-CMD /bin/bash
diff --git a/services/base-image/docker/install_aws_sdk.sh b/services/base-image/docker/install_aws_sdk.sh
deleted file mode 100755
--- a/services/base-image/docker/install_aws_sdk.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-cd /tmp
-
-git clone https://github.com/aws/aws-sdk-cpp \
- --recurse-submodules \
- -b 1.9.176 \
- --single-branch
-
-mkdir aws-sdk-cpp/build
-pushd aws-sdk-cpp/build
-cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_PREFIX_PATH=/usr/local/aws_sdk \
- -DBUILD_ONLY="core;s3;dynamodb"
-make install -l "$(nproc)" -j "$(nproc)"
-
-popd # aws-sdk-cpp/build
-rm -rf aws-sdk-cpp
diff --git a/services/base-image/docker/install_double.sh b/services/base-image/docker/install_double.sh
deleted file mode 100755
--- a/services/base-image/docker/install_double.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-pushd /usr/lib
-
-git clone https://github.com/google/double-conversion.git \
- --branch v3.1.5 --single-branch
-pushd double-conversion
-cmake . -DBUILD_SHARED_LIBS=ON
-make install -l "$(nproc)" -j "$(nproc)"
-
-popd # double-conversion
-rm -r double-conversion
-
-popd
diff --git a/services/base-image/docker/install_folly.sh b/services/base-image/docker/install_folly.sh
deleted file mode 100755
--- a/services/base-image/docker/install_folly.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-pushd /usr/lib
-
-git clone https://github.com/facebook/folly.git \
- --branch v2020.01.13.00 \
- --single-branch
-
-pushd folly
-cmake .
-make install -l "$(nproc)" -j "$(nproc)"
-popd # folly
-rm -r folly
-
-popd # /usr/lib
diff --git a/services/base-image/docker/install_glog.sh b/services/base-image/docker/install_glog.sh
deleted file mode 100755
--- a/services/base-image/docker/install_glog.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-pushd /usr/lib
-git clone https://github.com/google/glog.git --branch v0.4.0 --single-branch
-
-pushd glog
-cmake . -DBUILD_TESTING=OFF
-make install -j "$(nproc)" -l "$(nproc)"
-popd # glog
-
-rm -rf glog
-
-popd # /usr/lib
diff --git a/services/base-image/docker/install_grpc.sh b/services/base-image/docker/install_grpc.sh
deleted file mode 100755
--- a/services/base-image/docker/install_grpc.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-echo "installing grpc..."
-
-cd /tmp
-
-git clone \
- --recurse-submodules \
- --single-branch \
- -b v1.39.1 \
- https://github.com/grpc/grpc
-
-pushd grpc
-mkdir -p cmake/build
-pushd cmake/build
-cmake \
- -DgRPC_INSTALL=ON \
- -DgRPC_SSL_PROVIDER=package \
- -DgRPC_ZLIB_PROVIDER=package \
- -DgRPC_BUILD_TESTS=OFF \
- -DgRPC_BUILD_CSHARP_EXT=OFF \
- -DgRPC_BUILD_GRPC_CPP_PLUGIN=ON \
- -DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF \
- -DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF \
- -DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \
- -DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \
- -DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF \
- -DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF \
- ../..
-make install -j "$(nproc)" -l "$(nproc)"
-popd # cmake/build
-
-# Explicitly install abseil-cpp because of https://github.com/grpc/grpc/issues/25949
-# This should be removed after upgrading to v1.41
-pushd third_party/abseil-cpp/
-mkdir -p cmake/build
-pushd cmake/build
-cmake \
- -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
- ../..
-make install -j "$(nproc)" -l "$(nproc)"
-popd # cmake/build
-popd # third_party/abseil-cpp/
-
-# Explicitly install a more up-to-date version of `protobuf`, which
-# installs `protobuf-config.cmake`. The `libprotobuf-dev` Ubuntu package
-# only exports the `pkg-config` `protobuf.pc`. This is important because
-# the gRPC CMake configuration will attempt to find the `protobuf` CMake
-# configuration.
-pushd third_party/protobuf/
-mkdir -p _build
-pushd _build
-cmake ../cmake -Dprotobuf_BUILD_SHARED_LIBS=ON -Dprotobuf_ABSL_PROVIDER=package
-make install -j "$(nproc)" -l "$(nproc)"
-popd # _build
-popd # third_party/protobuf/
-
-popd # grpc
-
-rm -rf grpc
diff --git a/services/package.json b/services/package.json
--- a/services/package.json
+++ b/services/package.json
@@ -6,17 +6,12 @@
"scripts": {
"build-all": "docker-compose build",
"run-tunnelbroker-service": "./scripts/run_server_image.sh tunnelbroker",
- "run-tunnelbroker-service-in-sandbox": "COMM_SERVICES_SANDBOX=1 ./scripts/run_server_image.sh tunnelbroker",
"run-backup-service": "./scripts/run_server_image.sh backup",
- "run-backup-service-in-sandbox": "COMM_SERVICES_SANDBOX=1 ./scripts/run_server_image.sh backup",
"run-blob-service": "./scripts/run_server_image.sh blob",
- "run-blob-service-in-sandbox": "COMM_SERVICES_SANDBOX=1 ./scripts/run_server_image.sh blob",
"run-feature-flags-service": "./scripts/run_server_image.sh feature-flags",
- "run-feature-flags-service-in-sandbox": "COMM_SERVICES_SANDBOX=1 ./scripts/run_server_image.sh feature-flags",
"run-all-services": "./scripts/run_all_services.sh",
"run-integration-tests": "./scripts/run_integration_tests.sh",
"run-performance-tests": "./scripts/run_performance_tests.sh",
- "run-all-services-in-sandbox": "COMM_SERVICES_SANDBOX=1 ./scripts/run_all_services.sh",
"init-local-cloud": "./scripts/init_local_cloud.sh",
"delete-local-cloud": "docker-compose down -v",
"reset-local-cloud": "yarn delete-local-cloud && yarn init-local-cloud"
diff --git a/services/scripts/list_services.sh b/services/scripts/list_services.sh
--- a/services/scripts/list_services.sh
+++ b/services/scripts/list_services.sh
@@ -9,7 +9,6 @@
! -name "scripts" \
! -name "node_modules" \
! -name "commtest" \
- ! -name "lib" \
! -name "terraform" \
! -name "comm-services-lib" \
! -name ".*" \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 1:11 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2603109
Default Alt Text
D9137.diff (6 KB)
Attached To
Mode
D9137: [services] Delete base-image and sandbox mode
Attached
Detach File
Event Timeline
Log In to Comment