Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
wshihadeh / mysql-dep.yaml
Last active April 25, 2020 15:32
MySQL Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mysql-db
name: mysqldb-deployment
spec:
replicas: 1
selector:
matchLabels:
@wshihadeh
wshihadeh / pvc.yaml
Created April 25, 2020 11:15
PersistentVolumeClaim
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: db-data-pvc
spec:
storageClassName: generic
accessModes:
- ReadWriteOnce
resources:
requests:
@wshihadeh
wshihadeh / pv.yaml
Last active April 25, 2020 11:19
PersistentVolume
apiVersion: v1
kind: PersistentVolume
metadata:
name: db-data-pv
labels:
type: local
spec:
storageClassName: generic
capacity:
storage: 1Gi
@wshihadeh
wshihadeh / docker-compose.yml
Created April 25, 2020 09:27
Rails Doker compose
version: '3.7'
networks:
railsapp:
external: false
volumes:
db_data:
services:
@wshihadeh
wshihadeh / source.yaml
Created April 24, 2020 20:34
Deploy Docs
name: CI-MASTER-DEPLOY
on:
push:
branches:
- source
jobs:
build:
@wshihadeh
wshihadeh / Makefile
Created April 24, 2020 20:22
Mkdocs Makefile
DOCS_BUILD_IMAGE ?= wshihadeh-docs
DOCS_CHECK_IMAGE ?= $(DOCS_BUILD_IMAGE)-check
SITE_DIR := $(CURDIR)/site
DOCKER_RUN_DOC_PORT := 8000
DOCKER_RUN_DOC_MOUNTS := -v $(CURDIR):/mkdocs
DOCKER_RUN_DOC_OPTS := --rm $(DOCKER_RUN_DOC_MOUNTS) -p $(DOCKER_RUN_DOC_PORT):8000
# Default: generates the documentation into $(SITE_DIR)
@wshihadeh
wshihadeh / Dockerfile
Created April 24, 2020 20:17
Dockerfile
FROM alpine:3.10 as alpine
RUN apk --no-cache --no-progress add \
libcurl \
ruby \
ruby-bigdecimal \
ruby-etc \
ruby-ffi \
ruby-json \
ruby-nokogiri
{
"no-hard-tabs": false,
"MD007": { "indent": 4 },
"MD009": false,
"MD013": false,
"MD024": false,
"MD026": false,
"MD033": false,
"MD034": false,
"MD036": false,
@wshihadeh
wshihadeh / Dockerfile
Last active April 24, 2020 20:04
Mkdocs Dockerfile
FROM alpine:3.10
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin
COPY requirements.txt /mkdocs/
WORKDIR /mkdocs
VOLUME /mkdocs
RUN apk --no-cache --no-progress add py3-pip \
&& pip3 install --user -r requirements.txt
site_name: Al-waleed Shihadeh
site_description: Al-waleed Shihadeh
site_author: wshihadeh
site_url: https://wshihadeh.github.io
dev_addr: 0.0.0.0:8000
repo_name: 'GitHub'
repo_url: 'https://github.com/wshihadeh/wshihadeh.github.io'
docs_dir: 'docs'