identity-platform-login-ui

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: Apache-2.0

README

Identity Platform Login UI

codecov OpenSSF Scorecard GitHub tag (latest SemVer pre-release) On Main Push Go Reference

This is the UI for the Canonical Identity Platform.

Running the UI

Binary

To create a binary with the UI you need to run:

cd ./ui
npm ci
npm run build
cd ..
go build

This will produce a binary called identity_platform_login_ui which you can run with:

PORT=1234 ./identity_platform_login_ui &

(replace 1234 with an available port of your choice)

Container

To build the UI oci image, you will need rockcraft. To install rockcraft run:

sudo snap install rockcraft --channel=latest/edge --classic

To build the image run:

rockcraft pack

In order to run the produced image with docker run:

# Import the image to Docker
sudo /snap/rockcraft/current/bin/skopeo --insecure-policy copy oci-archive:./identity-platform-login-ui_0.1_amd64.rock docker-daemon:localhost:32000/identity-platform-login-ui:registry
# Run the image
docker run -p 8080:8080 -it --name login-ui --rm localhost:32000/identity-platform-login-ui:registry start login-ui &

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL