diff --git a/devspaces/README.md b/devspaces/README.md index 4f9df87..9c99d46 100644 --- a/devspaces/README.md +++ b/devspaces/README.md @@ -3,4 +3,58 @@ Run podman build --tag YOURIMAGENAMEANDTAG -f Containerfile -to modify your existing EE to work in CodeReady workspaces. Then push the image to your container registry. Utilize the devfile.yaml and adjust for your registry and image \ No newline at end of file +to modify your existing EE to work in CodeReady workspaces. Then push the image to your container registry. Utilize the devfile.yaml and adjust for your registry and image + +# Set up Git Config: + +1) Login to OpenShift + +2) Go to Workloads, ConfigMaps + +3) Click Create ConfigMap + +4) Paste and update the below yaml +``` +kind: ConfigMap +apiVersion: v1 +metadata: + name: workspace-userdata-gitconfig-configmap + namespace: + labels: + controller.devfile.io/mount-to-devworkspace: 'true' + controller.devfile.io/watch-configmap: 'true' + annotations: + controller.devfile.io/mount-as: subpath + controller.devfile.io/mount-path: /etc/ +data: + gitconfig: "[user] \n name = \n email = " +``` +Visit https:///api/kubernetes/namespace to get your OpenShift Dev Spaces user namespace as name and update your git_user_name and git_user_email + +5) Click Create + +### Note if a workspace-userdata-gitconfig-configmap already exists, just update your existing config map per the YAML above + +# Pull from password protected Registry + +1) Login to OpenShift Dev Space + +2) Click username in top right and select User Preferences + +3) Under Container Registries select Add Container Registry + +4) Enter registry (without https) and username / password + +5) Click Add + +# Pull from password protected repository + +1) Login to OpenShift Dev Space + +2) Click username in top right and select User Preferences + +3) Under Personal Access Tokens select Add Token + +4) Provide a token name, select the provider, update the provider endpoint, and enter in your token + +5) Click Add \ No newline at end of file