- Install Docker Desktop
Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml
file. We recommend you use one of the current tags instead of latest
.
#!/bin/bash | |
docker run -d -p 80:80 -p 443:443 --name rancher-server rancher/rancher:latest | |
while ! curl -k https://localhost/ping; do sleep 3; done | |
# Login | |
LOGINRESPONSE=`curl -s 'https://127.0.0.1/v3-public/localProviders/local?action=login' -H 'content-type: application/json' --data-binary '{"username":"admin","password":"admin"}' --insecure` | |
LOGINTOKEN=`echo $LOGINRESPONSE | jq -r .token` | |
# Change password |
<?php | |
declare(strict_types=1); | |
namespace Api\Middleware; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; | |
use Psr\Http\Server\RequestHandlerInterface; |
type Undefined<T> = { [P in keyof T]: P extends undefined ? T[P] : never } | |
type FilterFlags<Base, Condition> = { | |
[Key in keyof Base]: | |
Base[Key] extends Condition ? Key : never | |
}; | |
type AllowedNames<Base, Condition> = | |
FilterFlags<Base, Condition>[keyof Base]; |
#!/usr/bin/env bash | |
# | |
# RKIND is a naive helper script to start KIND and Rancher Management Server | |
# | |
set -u | |
set -o pipefail | |
RANCHER_CONTAINER_NAME="rancher-for-kind" | |
RANCHER_HTTP_HOST_PORT=$[$[RANDOM%9000]+30000] |
#!/bin/bash | |
# Creates self-signed CA certificates and certificates for local domains. | |
# | |
# Prompts for a local domain name (e.g. my-app.localhost) and creates all | |
# necessary certificates. | |
# | |
# Next steps: | |
# Copy the certificates (e.g. my-app.localhost.crt and my-app.localhost.key) to | |
# your service (Nginx, Apache, ...) and configure it. |
import Keycloak from 'keycloak-js'; | |
class Auth { | |
constructor() { | |
this.authenticated = false; | |
this.keycloak = Keycloak('/keycloak.json'); | |
} | |
login(callback) { | |
this.keycloak |
Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml
file. We recommend you use one of the current tags instead of latest
.
import { LinkProps, Link as MuiLink } from '@mui/material' | |
import NextLink from 'next/link' | |
export default function Link(props: LinkProps<'a'>) { | |
return <MuiLink component={NextLink} {...props} /> | |
} |
///// SERVICE | |
import { Injectable } from '@nestjs/common'; | |
import * as Sentry from '@sentry/node'; | |
import config from '../../config'; | |
import { SentryEntry } from './sentry.interceptor'; | |
@Injectable() | |
export class SentryService { | |
private isInit = false; |
-- This script was generated by the Schema Diff utility in pgAdmin 4 | |
-- For the circular dependencies, the order in which Schema Diff writes the objects is not very sophisticated | |
-- and may require manual changes to the script to ensure changes are applied in the correct order. | |
-- Please report an issue for any failure with the reproduction steps. | |
BEGIN; | |
-- Cast: money -> bigint |