Просмотр исходного кода

Merge branch 'staging' of https://github.com/porter-dev/porter into staging

sunguroku 5 лет назад
Родитель
Сommit
439f7650e5
6 измененных файлов с 119 добавлено и 20 удалено
  1. 28 0
      .darwin.goreleaser.yml
  2. 2 1
      .gitignore
  3. 7 12
      .goreleaser.yml
  4. 21 0
      LICENSE
  5. 46 7
      README.md
  6. 15 0
      scripts/release.sh

+ 28 - 0
.darwin.goreleaser.yml

@@ -0,0 +1,28 @@
+before:
+  hooks:
+    - go mod download
+builds:
+  - id: "porter-cli"
+    binary: porter
+    env:
+      - CGO_ENABLED=1
+    dir: cli
+    main: ./main.go
+    goos:
+      - darwin
+    goarch:
+      - amd64
+    flags:
+      - -tags=cli
+    hooks:
+      post: gon gon.hcl
+archives:
+  - format: binary
+    replacements:
+      darwin: Darwin
+release:
+  disable: true
+checksum:
+  disable: true
+changelog:
+  skip: true

+ 2 - 1
.gitignore

@@ -3,4 +3,5 @@
 app
 *.db
 test.yaml
-dist
+dist
+gon.hcl

+ 7 - 12
.goreleaser.yml

@@ -16,19 +16,14 @@ builds:
     flags:
       - -tags=cli
 archives:
-  - replacements:
-      darwin: Darwin
+  - format: zip
+    replacements:
       linux: Linux
       windows: Windows
-      386: i386
       amd64: x86_64
-checksum:
-  name_template: 'checksums.txt'
-snapshot:
-  name_template: "{{ .Tag }}-next"
+release:
+  disable: true
+# checksum:
+#   disable: true
 changelog:
-  sort: asc
-  filters:
-    exclude:
-      - '^docs:'
-      - '^test:'
+  skip: true

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Porter Technologies 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.

+ 46 - 7
README.md

@@ -1,29 +1,68 @@
 # Porter
-
 Porter is a **dashboard for Helm** with support for the following features:
 - Visualization of all Helm releases with filtering by namespace
 - In-depth view of releases, including revision histories and component graphs
 - Rollback/update of existing releases, including editing of `values.yaml`
 
+![Graph View](https://user-images.githubusercontent.com/65516095/96605367-221abe00-12c4-11eb-8915-25e70fe7929a.png)
 **What's next for Porter?** View our [roadmap](https://github.com/porter-dev/porter/projects/1), or read our [mission statement](#mission-statement). 
 
 ## Quick Start
 
-To view the dashboard locally, download our CLI and grab the latest release via:
+To view the dashboard locally, follow the instructions to install the latest CLI release for [Mac](#mac-installation), [Linux](#linux-installation), or [Windows](#windows-installation). Then, run:
+
+```sh
+porter start
+```
+
+When prompted, enter the admin email/password you would like to use. After the server has started, go to `localhost:8080/login` and **log in with the credentials you just set**. 
+
+### Mac Installation
+
+Run the following command to grab the latest binary:
+
+```sh
+{
+name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Darwin_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
+name=$(basename $name)
+curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
+unzip -a $name
+rm $name
+}
+```
+
+Then move the file into your bin:
 
 ```sh
-curl "https://api.github.com/repos/porter-dev/porter/releases/latest"
 chmod +x ./porter
 sudo mv ./porter /usr/local/bin/porter
 ```
 
-Then run the dashboard (Docker engine must be running on the host machine):
+### Linux Installation
+
+Run the following command to grab the latest binary:
 
 ```sh
-porter start
+{
+name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Linux_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
+name=$(basename $name)
+curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
+unzip -a $name
+rm $name
+}
+```
+
+Then move the file into your bin:
+
+```sh
+chmod +x ./porter
+sudo mv ./porter /usr/local/bin/porter
 ```
 
-When prompted, enter the admin email/password you would like to use. After the server has started, go to `localhost:8080` and **log in with the credentials you just set**. 
+### Windows Installation
+
+Go [here](https://github.com/porter-dev/porter/releases/latest/download/porter_0.1.0-beta.1_Windows_x86_64.zip
+) to download the Windows executable and add the binary to your `PATH`. 
 
 ## Differences from Kubeapps
 
@@ -44,4 +83,4 @@ More specifically, we have the following long-term goals:
 - **Improve the development experience for packaging and releasing Kubernetes applications**
 - **Increase interoperability of Kubernetes tooling without compromising usability**
 
-Why did we begin with Helm? Helm is the most popular auxiliary Kubernetes tool, and can function in nearly all parts of deployment lifecycle. We think of the various features of Helm in the following manner, adapted from [Brian Grant's Helm Summit talk](https://www.youtube.com/watch?v=F-TlC8nIz8s) (slides [here](https://docs.google.com/presentation/d/10dp4hKciccincnH6pAFf7t31s82iNvtt_mwhlUbeCDw/edit#slide=id.g32690131a8_0_5)): package management, dependency management, application metadata, parameterization, templating, deployment/config revision management, lifecycle management hooks, and application probes. Along with these fundamental features, an expanding number of [command plugins](https://helm.sh/docs/community/related/#helm-plugins) for more specific use-cases have started to become popular in the Helm ecosystem. If we can build a better workflow for both application developers and application operators by improving the user experience for most of these Helm features, we can generalize and expand this workflow to support alternative tooling that exists in the [Kubernetes application management ecosystem](https://docs.google.com/spreadsheets/d/1FCgqz1Ci7_VCz_wdh8vBitZ3giBtac_H8SBw4uxnrsE/edit#gid=0). 
+Why did we begin with Helm? Helm is the most popular auxiliary Kubernetes tool, and can function in nearly all parts of deployment lifecycle. We think of the various features of Helm in the following manner, adapted from [Brian Grant's Helm Summit talk](https://www.youtube.com/watch?v=F-TlC8nIz8s) (slides [here](https://docs.google.com/presentation/d/10dp4hKciccincnH6pAFf7t31s82iNvtt_mwhlUbeCDw/edit#slide=id.g32690131a8_0_5)): package management, dependency management, application metadata, parameterization, templating, deployment/config revision management, lifecycle management hooks, and application probes. Along with these fundamental features, an expanding number of [command plugins](https://helm.sh/docs/community/related/#helm-plugins) for more specific use-cases have started to become popular in the Helm ecosystem. If we can build a better workflow for both application developers and application operators by improving the user experience for most of these Helm features, we can generalize and expand this workflow to support alternative tooling that exists in the [Kubernetes application management ecosystem](https://docs.google.com/spreadsheets/d/1FCgqz1Ci7_VCz_wdh8vBitZ3giBtac_H8SBw4uxnrsE/edit#gid=0). 

+ 15 - 0
scripts/release.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Step 0 -- ensure that:
+# (1) GITHUB_TOKEN exists as an env variable
+# (2) Apple ID password exists in keychain
+
+# Step 1 -- build for linux/windows inside a docker container
+docker run --rm --privileged \
+-v $PWD:/go/src/github.com/porter-dev/porter \
+-v /var/run/docker.sock:/var/run/docker.sock \
+-w /go/src/github.com/porter-dev/porter \
+mailchain/goreleaser-xcgo "--rm-dist --skip-validate"
+
+# Step 2 -- build for MacOS using notarization tool
+goreleaser --rm-dist --config .darwin.goreleaser.yml --skip-validate