{"id":20000159,"url":"https://github.com/crc-org/snc","last_synced_at":"2025-03-21T19:10:25.755Z","repository":{"id":37829367,"uuid":"174336644","full_name":"crc-org/snc","owner":"crc-org","description":"Single Node Cluster creation scripts for OpenShift 4.x as used by CodeReady Containers","archived":false,"fork":false,"pushed_at":"2024-09-16T05:21:38.000Z","size":631,"stargazers_count":100,"open_issues_count":68,"forks_count":50,"subscribers_count":14,"default_branch":"release-4.16","last_synced_at":"2024-09-16T06:42:49.794Z","etag":null,"topics":["codeready","openshift","openshift-cluster","openshift-deployment","podman","single-node-cluster","snc"],"latest_commit_sha":null,"homepage":"https://crc.dev","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crc-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-notice.yaml","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-07T12:05:09.000Z","updated_at":"2024-09-16T05:21:42.000Z","dependencies_parsed_at":"2024-01-16T17:15:18.701Z","dependency_job_id":"f869d353-c204-4f16-a56b-141f500c2807","html_url":"https://github.com/crc-org/snc","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crc-org%2Fsnc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crc-org%2Fsnc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crc-org%2Fsnc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crc-org%2Fsnc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crc-org","download_url":"https://codeload.github.com/crc-org/snc/tar.gz/refs/heads/release-4.16","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852671,"owners_count":20521154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeready","openshift","openshift-cluster","openshift-deployment","podman","single-node-cluster","snc"],"created_at":"2024-11-13T05:13:56.215Z","updated_at":"2025-03-21T19:10:25.732Z","avatar_url":"https://github.com/crc-org.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single node cluster (snc) scripts for OpenShift 4 \n\n**NOTE:** Please select the respective branch to create a bundle for a specific OpenShift release (ie. to create a 4.15.x OpenShift bundle, choose the release-4.15 branch)\n\n## How to use?\n- Clone this repo `git clone https://github.com/code-ready/snc.git`\n- `cd \u003cdirectory_to_cloned_repo\u003e`\n- `./snc.sh`\n\n## How to create disk image?\n- Once your `snc.sh` script run successfully.\n- `./createdisk.sh crc-tmp-install-data`\n\n## Monitoring\n\nThe installation is a [long process](https://github.com/openshift/installer/blob/master/docs/user/overview.md#cluster-installation-process). It can take up to 45 mins.\nYou can monitor the progress of the installation with `kubectl`.\n\n```\n$ export KUBECONFIG=\u003cdirectory_to_cloned_repo\u003e/crc-tmp-install-data/auth/kubeconfig\n$ kubectl get pods --all-namespaces\n```\n\n## Building SNC for OKD 4\n- Before running `./snc.sh`, you need to create a pull secret file, and set a couple of environment variables to override the default behavior.\n- Select the OKD 4 release that you want to build from: [https://origin-release.apps.ci.l2s4.p1.openshiftapps.com](https://origin-release.apps.ci.l2s4.p1.openshiftapps.com)\n- For example, to build release: 4.5.0-0.okd-2020-08-12-020541\n\n```bash\n# Create a pull secret file\n\ncat \u003c\u003c EOF \u003e /tmp/pull_secret.json\n{\"auths\":{\"fake\":{\"auth\": \"Zm9vOmJhcgo=\"}}}\nEOF\n\n# Set environment for OKD build\nexport OKD_VERSION=4.5.0-0.okd-2020-08-12-020541\nexport OPENSHIFT_PULL_SECRET_PATH=\"/tmp/pull_secret.json\"\n\n# Build the Single Node cluster\n./snc.sh\n```\n\n- When the build is complete, create the disk image as described below.\n\n```\nexport BUNDLED_PULL_SECRET_PATH=\"/tmp/pull_secret.json\"\n./createdisk.sh crc-tmp-install-data\n```\n\n## Creating container image for bundles\n\nAfter running snc.sh/createdisk.sh, the generated bundles can be uploaded to a container registry using this command:\n\n```\n./gen-bundle-image.sh \u003cversion\u003e \u003copenshift/okd/podman\u003e\n```\n\nNote: a GPG key is needed to sign the bundles before they are wrapped in a container image.\n\n## Troubleshooting\n\nOpenShift installer will create 1 VM. It is sometimes useful to ssh inside the VM.\nAdd the following lines in your `~/.ssh/config` file. You can then do `ssh master`.\n\n```\nHost master\n    Hostname 192.168.126.11\n    User core\n    IdentityFile \u003cdirectory_to_cloned_repo\u003e/id_ecdsa_crc\n    StrictHostKeyChecking no\n    UserKnownHostsFile /dev/null\n```\n\n## Environment Variables\n\nThe following environment variables can be used to change the default values of bundle generation.\n\nSNC_GENERATE_MACOS_BUNDLE : if set to 0, bundle generation for MacOS is disabled, any other value will enable it.\nSNC_GENERATE_WINDOWS_BUNDLE : if set to 0, bundle generation for Windows is disabled, any other value will enable it.\nSNC_GENERATE_LINUX_BUNDLE : if set to 0, bundle generation for Linux is disabled, any other value will enable it.\n\nPlease note the SNC project is “as-is” on this Github repository. At this time, it is not an offically supported Red Hat solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrc-org%2Fsnc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrc-org%2Fsnc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrc-org%2Fsnc/lists"}