Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created April 11, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfarcic/a5e199ccc82dfc659770d381fdb0183c to your computer and use it in GitHub Desktop.
Save vfarcic/a5e199ccc82dfc659770d381fdb0183c to your computer and use it in GitHub Desktop.
PROJECT=[...]

jx create cluster gke \
    -n jx-rocks \
    -p $PROJECT \
    -z us-east1-b \
    -m n1-standard-2 \
    --min-num-nodes 3 \
    --max-num-nodes 5 \
    --default-admin-password=admin \
    --default-environment-prefix tekton \
    --git-provider-kind github \
    --namespace cd \
    --no-tiller \
    --prow \
    --tekton \
    -b

git clone https://github.com/vfarcic/go-demo-6.git

cd go-demo-6

ls -1
Dockerfile
Jenkinsfile
Makefile
OWNERS
OWNERS_ALIASES
README.md
charts
functional_test.go
go.mod
go.sum
main.go
main_test.go
production_test.go
skaffold.yaml
vendor
watch.sh
jx import -b
No username defined for the current Git server!
performing pack detection in folder /Users/vfarcic/code/go-demo-6
--> Draft detected Go (37.647139%)
selected pack: /Users/vfarcic/.jx/draft/packs/github.com/jenkins-x-buildpacks/jenkins-x-kubernetes/packs/go
existing Dockerfile, Jenkinsfile and charts folder found so skipping 'draft create' step
replacing placeholders in directory /Users/vfarcic/code/go-demo-6
app name: go-demo-6, git server: github.com, org: vfarcic, Docker registry org: devops24-book
skipping directory "/Users/vfarcic/code/go-demo-6/.git"
skipping ignored file "/Users/vfarcic/code/go-demo-6/charts/go-demo-6/charts/mongodb-5.3.0.tgz"
Creating GitHub webhook for vfarcic/go-demo-6 for url http://hook.cd.35.196.146.147.nip.io/hook

Watch pipeline activity via:    jx get activity -f go-demo-6 -w
Browse the pipeline log via:    jx get build logs vfarcic/go-demo-6/master
Open the Jenkins console via    jx console
You can list the pipelines via: jx get pipelines
When the pipeline is complete:  jx get applications

For more help on available commands see: https://jenkins-x.io/developing/browsing/

Note that your first pipeline may take a few minutes to start while the necessary images get downloaded!
jx get activities -f go-demo-6
STEP                                            STARTED AGO DURATION STATUS
vfarcic/go-demo-6/master #1                           3m55s     3m6s Succeeded Version: 1.0.5
  from build pack                                     3m55s     3m6s Succeeded
    Credential Initializer 8kg7k                      3m55s       0s Succeeded
    Git Source Vfarcic Go Demo 6 Master 965hk         3m54s       0s Succeeded https://github.com/vfarcic/go-demo-6
    Place Tools                                       3m51s       0s Succeeded
    Setup Jx Git Credentials                          2m47s       1s Succeeded
    Build Make Build                                  2m45s      16s Succeeded
    Build Container Build                             2m25s       4s Succeeded
    Build Post Build                                  2m20s       1s Succeeded
    Promote Changelog                                 2m17s       5s Succeeded
    Promote Helm Release                              2m11s       8s Succeeded
    Promote Jx Promote                                 2m2s    1m10s Succeeded
    Source Mkdir Vfarcic Go Demo 6 Master V8pbc         51s       0s Succeeded
    Source Copy Vfarcic Go Demo 6 Master 6vc8n          50s       1s Succeeded
  Promote: staging                                    1m58s     1m6s Succeeded
    PullRequest                                       1m58s     1m6s Succeeded  PullRequest: https://github.com/vfarcic/environment-tekton-staging/pull/1 Merge SHA: 09a69cf81ee24cf15e39fcc51df51eea11488db4
    Update                                              52s       0s Succeeded
ls -1
Dockerfile
Jenkinsfile
Makefile
OWNERS
OWNERS_ALIASES
README.md
charts
functional_test.go
go.mod
go.sum
main.go
main_test.go
production_test.go
skaffold.yaml
vendor
watch.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment