A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
# The full public facing url | |
#root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
root_url = http://localhost:80/grafana/ |
Test |
This experiment was originally built on Google Cloud's Kubernetes and makes use of gcePersistentDisk. If you are not using Google Cloud, you'll need to adjust the gcePersistentDisk volumes to use the persistent disk technology available in your cluster.
At a high level the steps look something like this, though there may be subtle errors. This experiment happened a few weeks ago and I'm creating these from memory along with the test descriptors I used.
/* | |
https://www.youtube.com/watch?v=iOGIKG3EptI | |
https://github.com/awslabs/aws-go-wordfreq-sample/blob/master/cmd/uploads3/main.go | |
https://docs.aws.amazon.com/sdk-for-go/api/aws/ | |
- first configure your aws credentials run: aws configure | |
- go get -u github.com/aws/aws-sdk-go/aws | |
- login to UI web aws s3 interface | |
- go to S3 service |
# AlpineLinux 3.5 | |
new_http_archive( | |
name = "docker_alpinelinux", | |
url = "https://nl.alpinelinux.org/alpine/v3.5/releases/x86_64/alpine-minirootfs-3.5.1-x86_64.tar.gz", | |
build_file = "alpinelinux.BUILD", | |
sha256 = "fa17f25ded0b29d94d8cc2d9aabb6f737f4b987c42fe8a6d11e05cfe2c52a64c", | |
) |
const async = require('async'); | |
const google = require('googleapis'); | |
const k8s = require('kubernetes-client'); | |
const container = google.container('v1'); | |
const PROJECT_ID = 'node-example-gke'; | |
const ZONE = 'us-east1-b'; | |
const CLUSTER_ID = 'node-example-cluster'; | |
const NAMESPACE = 'default'; |
steps: | |
- name: 'gcr.io/cloud-builders/npm' | |
args: ['install'] | |
- name: 'gcr.io/cloud-builders/npm' | |
args: ['test'] | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ["build", "-t", "gcr.io/$PROJECT_ID/frontend:$REVISION_ID", "."] | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ["push", "gcr.io/$PROJECT_ID/frontend:$REVISION_ID"] | |
- name: 'gcr.io/cloud-builders/gcloud' |
--- | |
- name: To enable IMDSv2 in AWS EC2 instances | |
hosts: localhost | |
vars: | |
regions: ["eu-north-1", "ap-south-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-2", "ap-northeast-1", "sa-east-1", "ca-central-1", "ap-southeast-1", "ap-southeast-2", "eu-central-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2"] | |
shell_file: "modify_instance_metadata_options.sh" | |
tasks: | |
- name: get instance info | |
local_action: |