Skip to content

Commit

Permalink
added private registry and git instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Dec 6, 2023
1 parent 9b9130e commit e2ebd37
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion devspaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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: <user_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 = <git_user_name> \n email = <git_user_email>"
```
Visit https://<openshift_dev_spaces_fqdn>/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

0 comments on commit e2ebd37

Please sign in to comment.