Docker Microservie Instances
Helm (Kubernetes) Scalling
Understanding Microservice Performance.
appmetrics-*
Docker Microservie Instances
Helm (Kubernetes) Scalling
Understanding Microservice Performance.
appmetrics-*
$ sudo apt-get update | |
$ sudo apt-get install nginx | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/html; | |
index index.html index.htm index.nginx-debian.html; |
$ sudo apt-get update | |
$ sudo apt-get install nginx | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/html; | |
index index.html index.htm index.nginx-debian.html; |
https://github.com/sivsivsree/api-template | |
Nodejs backend template. Improvements needed in abstracting the boiler template. | |
1- Create PKCS#12 keystore (.p12 or .pfx file)
keytool -genkeypair -keystore myKeystore.p12 -storetype PKCS12 -storepass MY_PASSWORD -alias KEYSTORE_ENTRY -keyalg RSA -keysize 2048 -validity 99999 -dname "CN=My SSL Certificate, OU=My Team, O=My Company, L=My City, ST=My State, C=SA" -ext san=dns:mydomain.com,dns:localhost,ip:127.0.0.1
myKeystore.p12
= keystore filename. It can with .pfx extension as well.MY_PASSWORD
= password used for the keystore and the private key as well.CN
= commonName, it will be shown as certiciate name in certificates list.OU
= organizationUnit, department name for example.import tensorflow as tf | |
import numpy as np | |
from tensorflow import keras | |
model = keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])]) | |
model.compile(optimizer='sgd', loss='mean_squared_error') | |
xs = np.array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], dtype=float) | |
ys = np.array([5.0,10.0,15.0,20.0,25.0,30.0, 35.0, 40.0, 45.0,50.0], dtype=float) |
#Before we can use the script, we have to make it executable with the chmod command: | |
#chmod +x ./go-executable-build.sh | |
#then we can use it ./go-executable-build.sh yourpackage | |
#!/usr/bin/env bash | |
package=$1 | |
if [[ -z "$package" ]]; then | |
echo "usage: $0 <package-name>" | |
exit 1 | |
fi |
upstream s { | |
server 127.0.0.1:3000; | |
} | |
upstream backend { | |
server 127.0.0.1:5051; | |
} | |
server { | |
listen 80; | |
listen [::]:80 ipv6only=on default_server; |
FROM golang:1.12 | |
ENV GO111MODULE=on | |
LABEL maintainer="Siv S <[email protected]>" | |
RUN apt-get -qq update \ | |
&& apt-get install -y \ | |
some-library \ | |
external-lib |
#!/bin/bash | |
#https://github.com/chaifeng/bento-ubuntu-docker/blob/master/Vagrantfile-bento | |
if [ -z $SUDO_USER ] | |
then | |
echo "===== Script need to be executed with sudo ====" | |
echo "Change directory to 'setup'" | |
echo "Usage: sudo ./docker.sh" | |
exit 0 | |
fi |