This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -v ~/.kube:/home/argocd/.kube --rm argoproj/argocd:latest argocd-util -n argocd export > backup.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|  |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go CI | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeCov | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| cd: | |
| name: CodeCov | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generate a badge | |
| # run your tests... get the $total of covared lines and calculate the COLOR of youe badge | |
| # for example if (( $total < 50 )) ;then COLOR=RED ;done | |
| curl "https://img.shields.io/badge/coavrege-$total%25-$COLOR" > badge.svg | |
| gsutil -h "Cache-Control: no-cache" cp badge.svg gs://$SOME_BACKET/$PROJECT_NAME/codcov.svg | |
| gsutil acl ch -u AllUsers:R gs://$SOME_BACKET/$PROJECT_NAME/codcov.svg | |
| #REPLACE $SOME_BUCKET and $PROJECT_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Document Path: /fruits | |
| Document Length: 73 bytes | |
| Concurrency Level: 100 | |
| Time taken for tests: 34.729 seconds | |
| Complete requests: 9812 | |
| Failed requests: 0 | |
| Total transferred: 1923152 bytes | |
| HTML transferred: 716276 bytes | |
| Requests per second: 282.53 [#/sec] (mean) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //# the service | |
| package main | |
| import ( | |
| "database/sql" | |
| "github.com/gin-gonic/gin" | |
| _ "github.com/go-sql-driver/mysql" | |
| "net/http" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Concurrency Level: 100 | |
| Time taken for tests: 8.219 seconds | |
| Complete requests: 10000 | |
| Failed requests: 0 | |
| Total transferred: 1240000 bytes | |
| HTML transferred: 20000 bytes | |
| Requests per second: 1216.68 [#/sec] (mean) | |
| Time per request: 82.191 [ms] (mean) | |
| Time per request: 0.822 [ms] (mean, across all concurrent requests) | |
| Transfer rate: 147.33 [Kbytes/sec] received |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Concurrency Level: 100 | |
| Time taken for tests: 11.574 seconds | |
| Complete requests: 9364 | |
| Failed requests: 0 | |
| Total transferred: 1835736 bytes | |
| HTML transferred: 683718 bytes | |
| Requests per second: 809.05 [#/sec] (mean) | |
| Time per request: 123.602 [ms] (mean) | |
| Time per request: 1.236 [ms] (mean, across all concurrent requests) | |
| Transfer rate: 154.89 [Kbytes/sec] received |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #from golang service stdout | |
| [GIN] 2020/07/04 - 18:57:04 | 200 | 93.2176ms | 172.17.0.1 | GET "/fruits" | |
| [GIN] 2020/07/04 - 18:57:04 | 200 | 93.6806ms | 172.17.0.1 | GET "/fruits" | |
| [GIN] 2020/07/04 - 18:57:04 | 200 | 96.3471ms | 172.17.0.1 | GET "/fruits" | |
| [GIN] 2020/07/04 - 18:57:09 | 500 | 2m9s | 172.17.0.1 | GET "/fruits" | |
| 2020/07/04 18:55:57 [Recovery] 2020/07/04 - 18:55:57 panic recovered: | |
| runtime error: invalid memory address or nil pointer dereference | |
| /usr/local/go/src/runtime/panic.go:212 (0x44aa19) | |
| panicmem: panic(memoryError) | |
| /usr/local/go/src/runtime/signal_unix.go:695 (0x44a868) |