diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a31354..b45056d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,8 @@ trigger: only: changes: - .gitlab-ci.yml - - sites/ant.k8s.vxm.cz/**/* + - sites/signpost.cloud.mareshq.com/**/* + - themes/signpost/**/* trigger: - include: sites/ant.k8s.vxm.cz/.gitlab-ci.yml + include: sites/signpost.cloud.mareshq.com/.gitlab-ci.yml strategy: depend diff --git a/sites/signpost.cloud.mareshq.com/.eslintrc.json b/sites/signpost.cloud.mareshq.com/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/sites/signpost.cloud.mareshq.com/.gitignore b/sites/signpost.cloud.mareshq.com/.gitignore new file mode 100644 index 0000000..bbac7be --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/.gitignore @@ -0,0 +1,42 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env.local +.env.development.local +.env.test.local +.env.production.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo + +.yarn/* +!.yarn/cache +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/sites/signpost.cloud.mareshq.com/.gitlab-ci.yml b/sites/signpost.cloud.mareshq.com/.gitlab-ci.yml new file mode 100644 index 0000000..4b2b5af --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/.gitlab-ci.yml @@ -0,0 +1,32 @@ +default: + image: sikalabs/ci + +stages: + - build + - deploy + +variables: + IMAGE: $CI_REGISTRY_IMAGE/signpost.cloud.mareshq.com + IMAGE_TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA + +build: + stage: build + image: sikalabs/ci-node + before_script: + - docker info + script: + - cd sites/signpost.cloud.mareshq.com + - yarn install --frozen-lockfile + - yarn build + - docker build --tag $IMAGE:$IMAGE_TAG --file /build/Containerfile . + - docker push $IMAGE:$IMAGE_TAG + +deploy: + stage: deploy + script: + - helm upgrade --install signpost-cloud-mareshq-com ./deploy/charts/static-site --namespace internal-static-sites -f ./sites/signpost.cloud.mareshq.com/helm-values.yaml --set image.tag=${CI_COMMIT_BRANCH}-${CI_COMMIT_SHORT_SHA} + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + environment: + name: signpost-cloud-mareshq-com + url: https://signpost.cloud.mareshq.com diff --git a/sites/signpost.cloud.mareshq.com/.vscode/settings.json b/sites/signpost.cloud.mareshq.com/.vscode/settings.json new file mode 100644 index 0000000..f62af99 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } +} diff --git a/sites/signpost.cloud.mareshq.com/NEXT.README.md b/sites/signpost.cloud.mareshq.com/NEXT.README.md new file mode 100644 index 0000000..c87e042 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/NEXT.README.md @@ -0,0 +1,34 @@ +This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. + +[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. + +The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/sites/signpost.cloud.mareshq.com/README.md b/sites/signpost.cloud.mareshq.com/README.md new file mode 100644 index 0000000..7ab04c8 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/README.md @@ -0,0 +1,3 @@ +# signpost.cloud.mareshq.com + +Crossroad for all my services currently running diff --git a/sites/signpost.cloud.mareshq.com/content/sections.json b/sites/signpost.cloud.mareshq.com/content/sections.json new file mode 100644 index 0000000..2f0ac4b --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/content/sections.json @@ -0,0 +1,62 @@ +[ + { + "name": "DevOps", + "items": [ + { + "name": "Argo CD", + "url": "https://argocd.cloud.mareshq.com" + }, + { + "name": "GitLab (MaresHQ / GitOps)", + "url": "https://gitlab.mareshq.com/gitops/mareshq/bee" + } + ] + }, + { + "name": "Monitoring", + "items": [ + { + "name": "Prometheus", + "url": "https://prometheus.cloud.mareshq.com" + }, + { + "name": "Alert Manager", + "url": "https://alertmanager.cloud.mareshq.com" + }, + { + "name": "Grafana", + "url": "https://grafana.cloud.mareshq.com" + } + ] + }, + { + "name": "Cluster / Nodes", + "items": [ + { + "name": "Loris (loris.vxm.cz)", + "url": "#" + }, + { + "name": "Otary (otary.vxm.cz)", + "url": "#" + }, + { + "name": "Rhino (rhino.vxm.cz)", + "url": "#" + } + ] + }, + { + "name": "Cluster / Storage", + "items": [ + { + "name": "Longhorn Dashboard", + "url": "https://longhorn.cloud.mareshq.com/" + }, + { + "name": "MinIO", + "url": "https://minio.cloud.mareshq.com/" + } + ] + } +] diff --git a/sites/signpost.cloud.mareshq.com/helm-values.yaml b/sites/signpost.cloud.mareshq.com/helm-values.yaml new file mode 100644 index 0000000..5653f62 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/helm-values.yaml @@ -0,0 +1,18 @@ +image: + repository: registry.mareshq.com/mareshq/internal-static-sites/signpost.cloud.mareshq.com + +ingress: + enabled: true + className: nginx + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: 'true' + hosts: + - host: signpost.cloud.mareshq.com + paths: + - path: / + pathType: ImplementationSpecific + tls: + - secretName: signpost-cloud-mareshq-com + hosts: + - signpost.cloud.mareshq.com diff --git a/sites/signpost.cloud.mareshq.com/next-env.d.ts b/sites/signpost.cloud.mareshq.com/next-env.d.ts new file mode 100644 index 0000000..9bc3dd4 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/next-env.d.ts @@ -0,0 +1,6 @@ +/// +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/sites/signpost.cloud.mareshq.com/next.config.js b/sites/signpost.cloud.mareshq.com/next.config.js new file mode 100644 index 0000000..b95cb7c --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/next.config.js @@ -0,0 +1,10 @@ +/** @type {import('next').NextConfig} */ +module.exports = { + reactStrictMode: true, +}; + +const withTM = require('next-transpile-modules')([ + '@themes/signpost', +]); + +module.exports = withTM(module.exports); diff --git a/sites/signpost.cloud.mareshq.com/package.json b/sites/signpost.cloud.mareshq.com/package.json new file mode 100644 index 0000000..831a6d3 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/package.json @@ -0,0 +1,29 @@ +{ + "name": "@sites/signpost.cloud.mareshq.com", + "private": true, + "version": "0.0.0", + "scripts": { + "dev": "next dev", + "build": "next build && next export", + "start": "next start", + "lint": "next lint", + "fmt": "prettier --write .", + "fmt-check": "prettier --check ." + }, + "dependencies": { + "next": "12.0.7", + "react": "17.0.2", + "react-dom": "17.0.2" + }, + "devDependencies": { + "@types/node": "16.11.7", + "@types/react": "17.0.34", + "autoprefixer": "^10.4.0", + "eslint": "7", + "eslint-config-next": "12.0.3", + "next-transpile-modules": "^9.0.0", + "postcss": "^8.3.11", + "tailwindcss": "^3.0.8", + "typescript": "4.4.4" + } +} diff --git a/sites/signpost.cloud.mareshq.com/pages/_app.tsx b/sites/signpost.cloud.mareshq.com/pages/_app.tsx new file mode 100644 index 0000000..b3c651a --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/pages/_app.tsx @@ -0,0 +1,8 @@ +import '../styles/globals.css'; +import type { AppProps } from 'next/app'; + +function App({ Component, pageProps }: AppProps) { + return ; +} + +export default App; diff --git a/sites/signpost.cloud.mareshq.com/pages/index.tsx b/sites/signpost.cloud.mareshq.com/pages/index.tsx new file mode 100644 index 0000000..d2559d8 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/pages/index.tsx @@ -0,0 +1,36 @@ +import type { NextPage } from 'next'; +import Head from 'next/head'; +import Layout from '@themes/signpost/components/Layout'; +import Grid from '@themes/signpost/components/Grid'; +import sections from '../content/sections.json'; + +const Home: NextPage = () => { + return ( + <> + + + Bee Kubernetes Cluster Signpost (bee.k8s.vxm.cz) + + + + + + +

bee.k8s.vxm.cz

+ +
+

+ Bee Kubernetes Cluster Signpost +

+ + +
+
+ + ); +}; + +export default Home; diff --git a/sites/signpost.cloud.mareshq.com/postcss.config.js b/sites/signpost.cloud.mareshq.com/postcss.config.js new file mode 100644 index 0000000..12a703d --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/sites/signpost.cloud.mareshq.com/public/kubernetes.ico b/sites/signpost.cloud.mareshq.com/public/kubernetes.ico new file mode 100644 index 0000000..14cd0f9 Binary files /dev/null and b/sites/signpost.cloud.mareshq.com/public/kubernetes.ico differ diff --git a/sites/signpost.cloud.mareshq.com/styles/globals.css b/sites/signpost.cloud.mareshq.com/styles/globals.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/styles/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/sites/signpost.cloud.mareshq.com/tailwind.config.js b/sites/signpost.cloud.mareshq.com/tailwind.config.js new file mode 100644 index 0000000..65e72de --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/tailwind.config.js @@ -0,0 +1,10 @@ +module.exports = { + content: ['./**/*.tsx', './../../themes/signpost/**/*.tsx'], + theme: { + extend: {}, + }, + variants: { + extend: {}, + }, + plugins: [], +}; diff --git a/sites/signpost.cloud.mareshq.com/tsconfig.json b/sites/signpost.cloud.mareshq.com/tsconfig.json new file mode 100644 index 0000000..99710e8 --- /dev/null +++ b/sites/signpost.cloud.mareshq.com/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +}