This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple docker-compose yaml for portainer, node-red and mqtt (mosquito) | |
# portainer -> docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.9.3 | |
# mqtt -> docker run -ti -p 1883:1883 -p 9001:9001 toke/mosquitto | |
# node-red -> docker run -it -p 1880:1880 -v myNodeREDdata:/data --name mynodered nodered/node-red | |
services: | |
portainer: | |
image: portainer/portainer-ce:2.9.3 | |
container_name: portainer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple docker-compose.yml file for local development services ready. | |
version: '3' | |
services: | |
# local postgresql service | |
local_postgresqlapp: | |
image: postgres:15.2-alpine | |
networks: | |
- localfnnet | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out rdb.mydomain.com.key 2048 | |
openssl req -new -key rdb.mydomain.com.key -out rdb.mydomain.com.csr | |
openssl x509 -req -days 365 -in rdb.mydomain.com.csr -signkey rdb.mydomain.com.key -out rdb.mydomain.com.crt | |
cat rdb.mydomain.com.key rdb.mydomain.com.crt > rdb.mydomain.com.pem | |
# haproxy | |
# bind *:443 ssl crt /path/to/rdb.mydomain.com.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
defaults | |
mode tcp | |
frontend main | |
bind *:443 ssl crt /home/TEST/rdb.MYDOMAIN.COM.pem | |
tcp-request inspect-delay 5s | |
tcp-request content accept if { req.ssl_hello_type 1 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build stage | |
FROM golang:1.17-alpine3.15 AS build-env | |
RUN apk add build-base | |
ADD . /src | |
RUN cd /src && go build -o main | |
# final stage | |
FROM alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disk usage | |
sudo du -h $(docker inspect --format='{{.LogPath}}' $(docker ps -qa)) | |
# truncate logs | |
sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' CONTID ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### RBAC Manifests | |
## If SELF_AGENT="true" then these permissions are required to apply | |
## https://github.com/litmuschaos/litmus/blob/master/litmus-portal/graphql-server/manifests/cluster/1b_argo_rbac.yaml | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: argo-cr-for-litmusportal-server | |
rules: | |
- apiGroups: [""] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an auto-generated file. DO NOT EDIT | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
labels: | |
app.kubernetes.io/name: applications.argoproj.io | |
app.kubernetes.io/part-of: argocd | |
name: applications.argoproj.io | |
spec: | |
group: argoproj.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Alper Reha Yazgan | |
* Date: 2021-12-18 | |
* Description: ShakeShake Discord Bot | |
*/ | |
package main | |
// @host localhost:9090 | |
// @BasePath /v1 |