Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Hildebrandt <[email protected]>
  • Loading branch information
paulphys committed Oct 30, 2024
1 parent a76bbfd commit d13b900
Show file tree
Hide file tree
Showing 18 changed files with 599 additions and 564 deletions.
10 changes: 5 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
API_URL=https://capi-jsgen.moin.k8s.scs.community
API_URL= # URL of your capi-jsgen instance

AUTH_SECRET=
DEX_URL=https://dex.k8s.scs.community
DEX_CLIENT_ID=
DEX_CLIENT_SECRET=
AUTH_SECRET= # Generate with `openssl rand -base64 32`
AUTH_TRUST_HOST=TRUE
DEX_URL= # URL of your dex instance
DEX_CLIENT_ID= # Client ID of your dex client
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

ENV API_URL https://capi-jsgen.moin.k8s.scs.community

#ENV AUTH_SECRET
#ENV AUTH_TRUST_HOST TRUE
#ENV DEX_URL
#ENV DEX_CLIENT_ID

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Web UI for creating Cluster objects based on SCS Cluster Stacks.

## Workflow

- Read ClusterClass schema definitions from the kube-apiserver of the moin-cluster via the API provided by [capi-jsgen](https://github.com/SovereignCloudStack/capi-jsgen)
- Read ClusterClass schema definitions from the kube-apiserver of your cluster via the API provided by [capi-jsgen](https://github.com/SovereignCloudStack/capi-jsgen)
- Render yaml form with live editor
- On Download: perform form validation, create yaml file and open up download prompt

Expand All @@ -31,6 +31,12 @@ Web UI for creating Cluster objects based on SCS Cluster Stacks.

- [pnpm](https://pnpm.io/installation)

#### Environment variables

- Create a `.env` file similar to `.env.example` in the root of the application and fill in all values.

#### Start the development server

```bash
pnpm i
pnpm dev
Expand Down
6 changes: 6 additions & 0 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Alternatively you can simply follow the setup instructions outlined below to dep

- [pnpm](https://pnpm.io/installation)

#### Environment variables

- Create a `.env` file similar to `.env.example` in the root of the application and fill in all values.

#### Start the development server

```bash
pnpm i
pnpm dev
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.0",
Expand All @@ -33,14 +32,14 @@
"geist": "^1.3.1",
"install": "^0.13.0",
"js-yaml": "^4.1.0",
"lucide-react": "^0.452.0",
"lucide-react": "^0.453.0",
"next": "14.2.15",
"next-auth": "5.0.0-beta.22",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
"react-syntax-highlighter": "^15.5.0",
"react-hook-form": "^7.53.1",
"react-syntax-highlighter": "^15.6.1",
"react-wrap-balancer": "^1.1.1",
"sort-json": "^2.0.1",
"tailwind-merge": "^2.5.4",
Expand All @@ -51,20 +50,20 @@
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.7.5",
"@types/node": "^22.7.7",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/sort-json": "^2.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.12.0",
"eslint": "^9.13.0",
"eslint-config-next": "14.2.15",
"eslint-config-prettier": "^9.1.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"shiki": "^1.22.0",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit d13b900

Please sign in to comment.