Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Enhance automation in script to automate appsody kubectl apply(s) and edits #61

Open
stephenkinder opened this issue Sep 14, 2019 · 1 comment

Comments

@stephenkinder
Copy link
Member

@davco01a commented on Thu Aug 01 2019

Enhance the script to do the following after the initial istio and kabanero pod setup:

  1. git clone https://github.com/appsody/tekton-example as part of this one script too
  2. cd tekton-example
  3. oc project kabanero
  4. kubectl apply -f appsody-service-account.yaml
  5. kubectl apply -f appsody-cluster-role-binding.yaml
  6. automate editing and apply of docker secrets, also have script prompt for docker credentials:
apiVersion: v1
kind: Secret
metadata:
  name: my-docker-secret
  annotations:
    tekton.dev/docker-0: https://index.docker.io/v1/ 
type: kubernetes.io/basic-auth
stringData:
  username: <your docker userid>
  password: <your docker password>
kubectl apply -f my-docker-secret.yaml
  1. kubectl edit serviceaccount appsody-sa
    add:
secrets:
- name: my-docker-secret
  1. kubectl apply -f appsody-build-task.yaml
  2. kubectl apply -f appsody-build-pipeline.yaml
  3. Write to appsody-pipeline-resources.yaml (prompt for docker id and github id):
params:
  - name: url
    value: index.docker.io/your-userid/my-appsody-image
    type: image
spec:
  params:
  - name: revision
    value: master
  - name: url
    value: https://github.com/your-userid/appsody-test-project
kubectl apply -f appsody-pipeline-resources.yaml
  1. kubectl apply -f appsody-pipeline-run.yaml

@bschrammIBM commented on Thu Aug 22 2019

This should be assigned to engineer, although the script is located in the /docs directory. https://github.com/kabanero-io/docs/tree/master/ref/scripts/install-kabanero-foundation.sh.


@davco01a commented on Tue Sep 03 2019

John Duimovich:fishing_pole_and_fish: 4 days ago
@dacohen There are a bunch of scripts in https://github.ibm.com/John-Duimovich/kabanero-demo.git which do the automated creation of an appsody app, create IBM git repos, add secrets that may help you here. See appsody-ibm-script as the start it calls a whack of utils utils for each step. I also have a simpler 'tekton only" demo which is derived from these but also ported to install on local windows docker. There is a run-webhook script which can run a pipeline for your app --- if we can hooked it to kabanero collections so you know which one to run, it would be pretty sweet.

@stephenkinder
Copy link
Member Author

I closed and move this to the foundation repository because this is really a script update. Currently, Kabanero scripts are managed in this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant