Code Monkey home page Code Monkey logo

codereadycontainers's Introduction

CodeReadyContainers

This repo can be used to setup a local code ready containers (CRC) installation (openshift 4 equivalent) on Ubuntu/Debian (only tested on Ubuntu 22.04).

Requirements

To install CRC with this repo, you need:

The cluster monitoring is disabled by default, because it increases cpu and memory consumption by ~50% (when the system is under load). To enable it, provide the -e crc_cluster_monitoring=true arg when calling the playbook. CPU/memory settings can be overwritten too by providing -e crc_cluster_cpus=<cpu_count> or -e crc_cluster_memory=<memory_in_gib>.

Install

When you've created a redhat account and downloaded the pullsecret file, run:

  • python3 -m pip install --user -r requirements.txt
  • ansible-playbook install.yaml

NOTE: If passwordless sudo is disabled, force ansible to ask for your sudo password by appending -K or --ask-become-pass to the ansible-playbook install.yaml command.

Known Issues

If the installation fails, it can get stuck and prevent new installations to run succesfully. If you have trouble running the playbook consecutively after an installation failed, or if the crc VM doesn't come up, see crc-org/crc#1027 for more information on how to resolve this.

# TL;DR
crc delete --force
sudo virsh list --all
sudo virsh destroy crc
sudo virsh undefine crc

Deinstall

To deinstall CRC, run ansible-playbook deinstall.yaml. If passwordless sudo is disabled, run ansible-playbook deinstall.yaml -K instead.

Update

If you want to update an existing CRC installation to a new release, set the new version in the vars.yaml file and run ansible-playbook update.yaml. You can find the available versions at https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/.

WARNING: By the time of writing, there is no way to update an existing CRC installation in place, so we have to deinstall/install the current CRC installation. This will delete the CRC instance including all data and deployments in it.

Work with CRC

The CRC installation will be up and running after the installation, but is not added to your systems autostart. You can use the following commands to start/stop/interact with it.

Command Description
crc status Display the status of the current CRC installation
crc start Start a stopped CRC installation
crc stop Stop a started CRC installation
crc console Open thh webconsole in browser

codereadycontainers's People

Contributors

olge404 avatar renovate[bot] avatar

Watchers

 avatar

codereadycontainers's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

pip_requirements
requirements.txt

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.