|
2 | 2 |
|
3 | 3 | This document provides instructions on how to deploy a [MicroShift](https://github.com/openshift/microshift) instance on a CentOS 9 Stream host, from your development computer.
|
4 | 4 |
|
5 |
| -We use Microshift as the target **OpenShift instance** for SF-Operator when deploying, developing locally, or testing in our [CI](https://softwarefactory-project.io/zuul/t/local/buildsets?project=software-factory%2Fsf-operator&skip=0). |
6 |
| - |
7 |
| -The deployment will be performed via Ansible, by using the |
8 |
| -[ansible-microshift-role](https://github.com/openstack-k8s-operators/ansible-microshift-role). |
| 5 | +We use Microshift as the target **OpenShift instance** for SF-Operator when deploying, developing locally, or testing in our [CI](https://microshift.softwarefactory-project.io/zuul/t/sf/builds?project=software-factory%2Fsf-operator&skip=0). |
9 | 6 |
|
| 7 | +The deployment will be performed via sf-operator CLI. |
10 | 8 |
|
11 | 9 | 1. [Requirements](#requirements)
|
12 | 10 | 1. [Install MicroShift](#install-microshift)
|
@@ -69,10 +67,31 @@ sudo dnf install -y ansible-core golang
|
69 | 67 | You have to generate and adapt the configuration file to deploy microshift
|
70 | 68 |
|
71 | 69 | ```sh
|
72 |
| -sf-operator init config > myconfig.yaml |
| 70 | +go run ./main.go init config --dev > myconfig.yaml |
| 71 | +``` |
| 72 | + |
| 73 | +Then edit `myconfig.yaml` as follow: |
| 74 | + |
| 75 | +```yaml |
| 76 | +contexts: |
| 77 | + my-context: |
| 78 | + development: |
| 79 | + microshift: |
| 80 | + disk-file-size: "30G" |
| 81 | + etcd-on-ramdisk: true |
| 82 | + host: "microshift.dev" |
| 83 | + openshift-pull-secret: '<paste-pull-secret-here>' |
| 84 | + user: "cloud-user" |
| 85 | + sf-operator-repository-path: "~/git/softwarefactory-project.io/software-factory/sf-operator" |
| 86 | +default-context: my-context |
73 | 87 | ```
|
74 | 88 |
|
75 |
| -Installing Microshift is straightforward with the [ansible-microshift-role](https://github.com/openstack-k8s-operators/ansible-microshift-role). |
76 |
| -The [sf-operator](./../reference/cli/index.md) CLI provides the [`dev create microshift --config myconfig.yaml` subcommand](./../reference/cli/index.md#create-microshift) that sets up a microshift host from start to finish. Please refer to the documentation of this subcommand to learn how to use it. |
| 89 | +Refer to the [`dev create microshift --config myconfig.yaml` subcommand](./../reference/cli/index.md#create-microshift) for more information about the command. |
| 90 | + |
| 91 | +Finally run the sf-operator CLI as follow: |
| 92 | + |
| 93 | +```sh |
| 94 | +go run ./main.go --config ./myconfig.yaml dev create microshift --skip-local-setup |
| 95 | +``` |
77 | 96 |
|
78 | 97 | Once the deployment has ended successfully, you are now ready to deploy and hack SF-Operator, congratulations!
|
0 commit comments