- 画面からぽちぽち (MySQL, 5.7互換)
- DB, userの作成
- 現状Cloud Runにデプロイできる対象がGCRにあるものだけため
grafana/grafana:6.6.1 を自前のプロジェクトのgcr.ioにアップロード
| # -*- coding: utf-8 -*- | |
| from logging import getLogger, StreamHandler, FileHandler | |
| from logging import INFO, DEBUG, WARNING, ERROR, CRITICAL | |
| from logging import Formatter | |
| level = {'INFO': INFO, | |
| 'DEBUG': DEBUG, | |
| 'WARNING': WARNING, | |
| 'ERROR': ERROR, | |
| 'CRITICAL': CRITICAL, |
| <VirtualHost address.domain:443> | |
| ServerName address.domain | |
| SSLEngine on | |
| SSLProxyEngine on | |
| RequestHeader set X_FORWARDED_PROTO 'https' | |
| SSLCertificateFile /etc/apache2/conf/server.crt | |
| SSLCertificateKeyFile /etc/apache2/conf/server.key | |
| ErrorLog "/var/log/apache2/gitlab_error.log" | |
| TransferLog "/var/log/apache2/gitlab_access.log" | |
| package main | |
| import ( | |
| "github.com/ChimeraCoder/anaconda" | |
| "os" | |
| "fmt" | |
| "strings" | |
| "net/url" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "bytes" | |
| "strings" | |
| "compress/zlib" | |
| "math" | |
| ) |
| apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| name: node-exporter | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| app: node-exporter | |
| annotations: |
| { | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:@typescript-eslint/recommended", | |
| "plugin:@typescript-eslint/eslint-recommended", | |
| "plugin:prettier/recommended", | |
| "prettier/@typescript-eslint" | |
| ], | |
| "plugins": ["@typescript-eslint"], |
| { | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:@typescript-eslint/recommended", | |
| "plugin:@typescript-eslint/eslint-recommended", | |
| "plugin:prettier/recommended", | |
| "prettier/@typescript-eslint" | |
| ], | |
| "plugins": ["@typescript-eslint"], |
| sudo apt update | |
| sudo apt upgrade -y | |
| # install homebrew | |
| function install_brew () { | |
| sudo apt install -y build-essential curl file git | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
| test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | |
| export PATH=$PATH:~/.linuxbrew/bin | |
| test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) |