From a02a8a94b36c2ad62edc89c4de02cc85db17edd8 Mon Sep 17 00:00:00 2001 From: Matthew Jaffee Date: Fri, 19 Nov 2021 12:39:37 -0600 Subject: [PATCH] remove unused .cloudbuild directory (was for GCP CI stuff) --- .cloudbuild/Dockerfile | 23 ----- .cloudbuild/NOTICE | 109 -------------------- .cloudbuild/cloudbuild.yml | 202 ------------------------------------- 3 files changed, 334 deletions(-) delete mode 100644 .cloudbuild/Dockerfile delete mode 100644 .cloudbuild/NOTICE delete mode 100644 .cloudbuild/cloudbuild.yml diff --git a/.cloudbuild/Dockerfile b/.cloudbuild/Dockerfile deleted file mode 100644 index fac3bf2fd..000000000 --- a/.cloudbuild/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM alpine:3.14.2 - -LABEL maintainer "dev@molecula.com" -LABEL org.opencontainers.image.authors="dev@molecula.com" - -RUN apk add --no-cache curl jq - -COPY NOTICE /NOTICE -ARG SHORT_SHA - -COPY .cloudbuild/featurebase_linux_amd64 / - -RUN mv /featurebase_linux_amd64 /pilosa -RUN chmod ugo+x /pilosa -EXPOSE 10101 -VOLUME /data - -ENV PILOSA_DATA_DIR /data -ENV PILOSA_BIND 0.0.0.0:10101 -ENV PILOSA_BIND_GRPC 0.0.0.0:20101 - -ENTRYPOINT ["/pilosa"] -CMD ["server"] diff --git a/.cloudbuild/NOTICE b/.cloudbuild/NOTICE deleted file mode 100644 index 5d88ea9c0..000000000 --- a/.cloudbuild/NOTICE +++ /dev/null @@ -1,109 +0,0 @@ -Software license -================ - -Copyright (C) 2017-2021 Molecula Corp. All rights reserved. - -Third-party software licenses -============================= - -The file /pilosa/lru/lru.go contains a redistribution of lru -(github.com/golang/groupcache/lru); the license follows: - - Copyright 2013 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -The file /roaring/btree.go contains a modified redistribution of b -(https://github.com/cznic/b); the license follows: - - Copyright (c) 2014 The b Authors. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer - in the documentation and/or other materials provided with the - distribution. - * Neither the names of the authors nor the names of the - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The file /server/tlsconfig.go contains a modified redistribution of bridge -(https://github.com/robustirc/bridge); the license follows: - - Copyright © 2014-2015 The RobustIRC Authors. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * Neither the name of RobustIRC nor the names of contributors may be used - to endorse or promote products derived from this software without - specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The files /logger/filewriter.go and /logger/filewriter_test.go contain a modified redistribution of reopen (github.com/client9/reopen); the license follows: - - The MIT License (MIT) - - Copyright (c) 2015 Nick Galbreath - - 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/.cloudbuild/cloudbuild.yml b/.cloudbuild/cloudbuild.yml deleted file mode 100644 index 4ec21187a..000000000 --- a/.cloudbuild/cloudbuild.yml +++ /dev/null @@ -1,202 +0,0 @@ -steps: - - name: gcr.io/cloud-builders/yarn - args: - - install - dir: lattice/ - id: Install Lattice - waitFor: - - '-' - - name: gcr.io/cloud-builders/yarn - args: - - build - dir: lattice/ - id: Build Lattice - waitFor: - - Install Lattice - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - tar - - '-c' - - '-z' - - '-v' - - '-f' - - lattice.tar.gz - - lattice/build - id: Package Lattice Build - waitFor: - - Build Lattice - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - mv - - lattice.tar.gz - - /cache/ - waitFor: - - Package Lattice Build - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - go - - test - - '-covermode=atomic' - - '-coverprofile=/cache/coverage.out' - id: Generate code coverage report - waitFor: - - '-' - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - '-c' - - | - go test -json > /cache/test-report.out - id: Generate test report - waitFor: - - '-' - entrypoint: bash - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - go - - tool - - cover - - '-html' - - /cache/coverage.out - - '-o' - - /cache/coverage.html - id: Calculate Coverage - waitFor: - - Generate code coverage report - - name: 'sonarsource/sonar-scanner-cli:4.6' - args: - - '-Dsonar.projectKey=molecula_featurebase' - - '-Dsonar.organization=molecula' - - '-Dsonar.sources=.' - - '-Dsonar.host.url=https://sonarcloud.io' - - '-Dsonar.go.coverage.reportPaths=/cache/coverage.out' - - '-Dsonar.go.tests.reportPaths=/cache/test-report.out' - id: SonarCloud - waitFor: - - Calculate Coverage - secretEnv: - - SONAR_TOKEN - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - args: - - jfrog - - config - - add - - molecula - - '--interactive=false' - - '--artifactory-url=https://molecula.jfrog.io/' - - '--access-token=$$JFROG_API_TOKEN' - secretEnv: - - JFROG_API_TOKEN - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - env: - - GOOS=linux - - GOARCH=amd64 - args: - - go - - build - - '-o' - - /cache/featurebase_linux_amd64 - - ./cmd/featurebase - id: Build for Linux amd64 - waitFor: - - '-' - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - env: - - GOOS=darwin - - GOARCH=amd64 - args: - - go - - build - - '-o' - - /cache/featurebase_darwin_amd64 - - ./cmd/featurebase - id: Build for Darwin amd64 - waitFor: - - '-' - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - env: - - GOOS=linux - - GOARCH=arm64 - args: - - go - - build - - '-o' - - /cache/featurebase_linux_arm64 - - ./cmd/featurebase - id: Build for Linux arm64 - waitFor: - - '-' - - name: 'us.gcr.io/featurebase-pipeline-dev/featurebase:0.3' - env: - - GOOS=darwin - - GOARCH=arm64 - args: - - go - - build - - '-o' - - /cache/featurebase_darwin_arm64 - - ./cmd/featurebase - id: Build for Darwin arm64 - waitFor: - - '-' - - name: gcr.io/cloud-builders/gsutil - args: - - '-c' - - > - gsutil -m cp -r '/cache/*' - "gs://molecula-pipeline/featurebase/dev/$SHORT_SHA/" - id: Upload Binaries by Short SHA - waitFor: - - Package Lattice Build - - Calculate Coverage - - Build for Linux amd64 - - Build for Darwin amd64 - - Build for Linux arm64 - - Build for Darwin arm64 - entrypoint: bash - - name: gcr.io/cloud-builders/gsutil - args: - - '-c' - - > - gsutil -m cp -r '/cache/*' - "gs://molecula-pipeline/featurebase/dev/$BRANCH_NAME/" - id: Upload Binaries by Branch Name - waitFor: - - Package Lattice Build - - Calculate Coverage - - Build for Linux amd64 - - Build for Darwin amd64 - - Build for Linux arm64 - - Build for Darwin arm64 - entrypoint: bash - - name: gcr.io/cloud-builders/docker - args: - - '-c' - - > - cp -v /cache/* .cloudbuild/ && docker build --build-arg - SHORT_SHA=$SHORT_SHA -t - northamerica-northeast1-docker.pkg.dev/featurebase-pipeline-dev/featurebase/main:$SHORT_SHA - -f .cloudbuild/Dockerfile . - id: Build Linux amd Container - entrypoint: bash - - name: gcr.io/cloud-builders/docker - args: - - push - - >- - northamerica-northeast1-docker.pkg.dev/featurebase-pipeline-dev/featurebase/main:$SHORT_SHA - waitFor: - - Build Linux amd Container -timeout: 1200s -logsBucket: 'gs://molecula-pipeline/logs' -options: - volumes: - - name: data - path: /cache - pool: - name: >- - projects/featurebase-pipeline-dev/locations/us-central1/workerPools/test-pool-00 -availableSecrets: - secretManager: - - versionName: projects/903994035405/secrets/jfrog-admin-token/versions/1 - env: JFROG_API_TOKEN - - versionName: projects/903994035405/secrets/sonarcloud-featurebase-token/versions/1 - env: SONAR_TOKEN