From 70f9df116e523878ed9f59ac8279ee3ee4095fc1 Mon Sep 17 00:00:00 2001 From: evantahler Date: Fri, 14 Oct 2022 11:54:59 -0700 Subject: [PATCH] Remove unused `airbyte-cli` --- airbyte-cli/.gitignore | 1 - airbyte-cli/Dockerfile | 13 ------------ airbyte-cli/LICENSE | 21 ------------------- airbyte-cli/build.gradle | 3 --- airbyte-cli/gradle.properties | 1 - airbyte-cli/readme.md | 3 --- settings.gradle | 1 - tools/bin/cli.sh | 38 ----------------------------------- 8 files changed, 81 deletions(-) delete mode 100644 airbyte-cli/.gitignore delete mode 100644 airbyte-cli/Dockerfile delete mode 100644 airbyte-cli/LICENSE delete mode 100644 airbyte-cli/build.gradle delete mode 100644 airbyte-cli/gradle.properties delete mode 100644 airbyte-cli/readme.md delete mode 100755 tools/bin/cli.sh diff --git a/airbyte-cli/.gitignore b/airbyte-cli/.gitignore deleted file mode 100644 index 4fefe73122ac..000000000000 --- a/airbyte-cli/.gitignore +++ /dev/null @@ -1 +0,0 @@ -restish.json diff --git a/airbyte-cli/Dockerfile b/airbyte-cli/Dockerfile deleted file mode 100644 index 0fe19f0ebdc0..000000000000 --- a/airbyte-cli/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG ALPINE_IMAGE=alpine:3.13 -FROM ${ALPINE_IMAGE} - -RUN apk --no-cache add curl tar \ - && if [[ `uname -m` == "aarch64" ]] ; then ARCH=arm64 ; else ARCH=`uname -m` ; fi \ - && curl -OL https://github.com/danielgtaylor/restish/releases/download/v0.9.0/restish-0.9.0-linux-${ARCH}.tar.gz \ - && tar -C /usr/local/bin -xzf restish-0.9.0-linux-${ARCH}.tar.gz \ - && rm -rf restish-0.9.0-linux-${ARCH}.tar.gz - -ENTRYPOINT ["restish"] - -LABEL io.airbyte.version=0.1.0 -LABEL io.airbyte.name=airbyte/cli diff --git a/airbyte-cli/LICENSE b/airbyte-cli/LICENSE deleted file mode 100644 index ec45d182fcb9..000000000000 --- a/airbyte-cli/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Airbyte, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/airbyte-cli/build.gradle b/airbyte-cli/build.gradle deleted file mode 100644 index e94fc5bf50c1..000000000000 --- a/airbyte-cli/build.gradle +++ /dev/null @@ -1,3 +0,0 @@ -tasks.named("buildDockerImage") { - dependsOn copyDocker -} diff --git a/airbyte-cli/gradle.properties b/airbyte-cli/gradle.properties deleted file mode 100644 index 8cbcf90d343a..000000000000 --- a/airbyte-cli/gradle.properties +++ /dev/null @@ -1 +0,0 @@ -dockerImageName=cli diff --git a/airbyte-cli/readme.md b/airbyte-cli/readme.md deleted file mode 100644 index c65791d7c440..000000000000 --- a/airbyte-cli/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# airbyte-cli - -Thin CLI over the Airbyte Configuration API to make it easier to interact with the API from the command line. diff --git a/settings.gradle b/settings.gradle index 8653fd11da50..c0233a62ce0f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -88,7 +88,6 @@ include ':airbyte-notification' // transitively used by airbyte-workers. // platform if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "PLATFORM") { include ':airbyte-bootloader' - include ':airbyte-cli' include ':airbyte-config:specs' include ':airbyte-container-orchestrator' include ':airbyte-cron' diff --git a/tools/bin/cli.sh b/tools/bin/cli.sh deleted file mode 100755 index e4c7ccb3cbcd..000000000000 --- a/tools/bin/cli.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -set -e - -LOCAL_RESTISH_PATH="$(pwd)"/airbyte-cli/restish.json -IMAGE_RESTISH_PATH=/root/.restish/apis.json - -DOWNLOADED_CONFIG_PATH=/tmp/downloaded-airbyte-api-config -IMAGE_CONFIG_PATH=/tmp/config.yaml - -if [ ! -f "$LOCAL_RESTISH_PATH" ]; then - API_URL="${API_URL:-http://localhost:8001}" - if ! curl -s "${API_URL}/api/v1/openapi" -o "$DOWNLOADED_CONFIG_PATH"; then - 2>&1 echo "ERROR: failed to download config file from ${API_URL}/api/v1/openapi" - 2>&1 echo " if the API is elsewhere you can specify it using:" - 2>&1 echo " API_URL=XXX $0" - exit 1 - fi - - cat > "$LOCAL_RESTISH_PATH" <