Image Builder service for console.redhat.com
Find a file
Sanne Raymaekers f4c6fe908a README.md: Fix dated information
The process got a bit more complex with the mandatory client ssl
auth for composer.
2021-01-15 17:40:57 +01:00
.github/workflows github: Move action to workflows folder 2020-10-27 17:36:36 +01:00
.travis Rename master to main 2020-11-18 14:47:33 +01:00
config test: add initial jest tests 2020-10-22 10:23:08 +02:00
profiles Rename to image-builder-frontend 2020-09-14 12:16:35 +02:00
src CreateImageWizard: Only ask for aws account id in upload step 2020-12-18 11:46:01 +01:00
tools tools: Make make-bots executable 2020-10-27 18:09:24 +01:00
.babelrc copy from RedHatInsights/insights-frontend-starter-app template 2020-04-15 12:46:02 +02:00
.eslintrc.yml tests: Spy on history.push instead of trying to assert page change 2020-11-30 13:32:40 +02:00
.gitignore npm: Use npm-update to keep all packages updated 2020-11-02 19:40:48 +01:00
.stylelintrc.json copy from RedHatInsights/insights-frontend-starter-app template 2020-04-15 12:46:02 +02:00
.travis.yml Revert "Update travis config file to rebase on master before test running" 2020-11-11 13:04:23 +02:00
LICENSE osbuild-installer-frontend 2020-03-27 10:14:04 +01:00
package.json package.json: Update frontend-components-config 2020-12-16 14:12:28 +01:00
README.md README.md: Fix dated information 2021-01-15 17:40:57 +01:00

image-builder-frontend

Development

You can skip step 3 and 4 if you don't need the full stack locally. However while it's possible to click around the page and use mock data, it won't be able to build images.

  1. Clone the following repositories:

  2. Setting up the proxy

    Choose a runner (podman or docker), and point the SPANDX_CONFIG variable to profile/local-frontend-and-api-with-identity.js included in image-builder-frontend.

        sudo insights-proxy/scripts/patch-etc-hosts.sh
        export RUNNER="podman"
        export SPANDX_CONFIG=$PATH_TO/image-builder-frontend/profiles/local-frontend-and-api-with-identity.js
        sudo -E insights-proxy/scripts/run.sh
    
  3. Setting up osbuild-composer(-api)

    The easiest way to do this is to call schutzbots/provision-composer.sh from the osbuild/image-builder project. This will install composer, generate the needed certs, and put the configuration in place.

  4. Starting up image-builder

    Point the URL to wherever composer is hosted, the client certificates and CA should be reused or copied over from the composer host, they're located in /etc/osbuild-composer.

    In the image-builder checkout directory

        make build
        OSBUILD_URL="https://$composer-url:$composer-port/api/composer/v1" \
        OSBUILD_CERT_PATH=/path/to/client-crt.pem \
        OSBUILD_KEY_PATH=/path/to/client-key.pem \
        OSBUILD_CA_PATH=/path/to/ca-crt.pem \
        ./image-builder
    
  5. Starting up image-builder-frontend

    In the image-builder-frontend checkout directory

        npm install
        npm start
    

The UI should be running on https://prod.foo.redhat.com:1337/apps/image-builder/landing, the api (image-builder) on https://prod.foo.redhat.com:1337/api/image-builder/v1/openapi.json