- The PCRE flavour of RegEx is used here.
- Append the
imodifier to the end of the regex to make any pattern case-insensitive.
| Purpose | Description | RegEx | Example |
| #!/usr/bin/env bash | |
| # Author: Sasha Nikiforov | |
| # source of inspiration | |
| # https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions | |
| # Detect platform | |
| if [ "$(uname)" == "Darwin" ]; then | |
| # MacOS |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: "{{ template "harbor.fullname" . }}-registry" | |
| labels: | |
| {{ include "harbor.labels" . | indent 4 }} | |
| data: | |
| config.yml: |+ | |
| version: 0.1 | |
| log: |
| persistence: | |
| enabled: true | |
| # The tag for Harbor docker images. | |
| harborImageTag: &harbor_image_tag v1.4.0 | |
| # The FQDN for Harbor service. | |
| externalDomain: docker.mysite.com | |
| # If set to true, you don't need to set tlsCrt/tlsKey/caCrt, but must add | |
| # Harbor FQDN as insecure-registries for your docker client. |
| # deploy | |
| kubectl create ns registry | |
| git clone https://github.com/vmware/harbor.git | |
| cd harbor/contrib/helm/harbor | |
| helm dependency build . | |
| # before install, please change values.yaml | |
| # 1. you should change crt, key, privateKey and rootCrt | |
| # 2. change clair and registry repo |
| openssl req \ | |
| -newkey rsa:4096 -nodes -sha256 -keyout ca.key \ | |
| -x509 -days 365 -out ca.crt \ | |
| -subj "/C=DE/ST=Berlin/CN=docker.mysite.com/O=My Site" | |
| openssl req \ | |
| -newkey rsa:4096 -nodes -sha256 -keyout server.key \ | |
| -out server.csr \ | |
| -subj "/C=DE/ST=Berlin/CN=docker.mysite.com/O=My Site" |
| onst { forwardTo } = require('prisma-binding') | |
| // Here you see the difference between forwarding and delegating a mutation | |
| const Mutation = { | |
| // We are forwarding the `createPost` 1-to-1 from the app to the database API. | |
| // That's why we use `forwardTo('db')` here. | |
| // It is called `db` because that's the name of the binding instance that's | |
| // created in `index.js`. | |
| createPost: forwardTo('db'), |
I hereby claim:
To claim this, I am signing this object: