Skip to content

Instantly share code, notes, and snippets.

View MeenachiSundaram's full-sized avatar

MeenachiSundaram V MeenachiSundaram

View GitHub Profile
@MeenachiSundaram
MeenachiSundaram / nginx_grav_startup.sh
Created January 20, 2018 21:59
grav nginx container startup script
#!/bin/bash
# Start the first process
nginx
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start my_first_process: $status"
exit $status
fi
@MeenachiSundaram
MeenachiSundaram / domain1
Created January 20, 2018 21:10
grav domain1 nginx configuration
server {
#listen 80;
index index.html index.php;
## Begin - Server Info
root /home/grav/www/domain1;
server_name domain1;
## End - Server Info
## Begin - Index
@MeenachiSundaram
MeenachiSundaram / grav.conf
Last active January 25, 2018 10:41
grav php configuration for Dockerfile (/etc/php/7.0/fpm/pool.d)
[grav]
user = www-data
group = www-data
listen = /run/php/php7.0-fpm.sock
listen.owner = www-data
listen.group = www-data
@MeenachiSundaram
MeenachiSundaram / Dockerfile
Created June 17, 2017 18:21
softcover dockerfile
FROM ubuntu:16.04
MAINTAINER MEENACHISUNDARAM V <ms.v@initcron.org>
RUN apt-get update -y && \
apt-get install software-properties-common wget unzip curl ruby-full build-essential zlib1g-dev libz-dev libiconv-hook1 libiconv-hook-dev libcurl4-openssl-dev python-software-properties default-jre default-jdk -y
RUN apt-get install texlive-full -y
RUN add-apt-repository ppa:inkscape.dev/stable -y
#!/bin/sh
# change file name containing space to _
for file in *
do
mv "$file" `echo $file | tr ' ' '_'`
done
# lowerit
#!/bin/bash
knife cookbook bulk delete '.*' -p -y
knife client list | grep -vE "*validator" | xargs -n 1 knife client delete -y
knife node list | xargs -n 1 knife node delete -y
knife role list | xargs -n 1 knife role delete -y
knife environment list | grep -vE "_default" | xargs -n 1 knife environment delete -y
knife data bag list | xargs -n 1 knife data bag delete -y
#!/usr/bin/env bash
set -eux
cd /tmp
wget https://gist.githubusercontent.com/MeenachiSundaram/697b7abacf332e331e7cc152017e601b/raw/1a732b1d934841fb240d84e013b5dc0b0d2af915/docker.sh
chmod +x docker.sh
@MeenachiSundaram
MeenachiSundaram / docker.sh
Created April 24, 2017 12:36
docker installation in ubuntu
#!/usr/bin/env bash
set -eux
sudo apt-get update
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual -y
@MeenachiSundaram
MeenachiSundaram / docker-compose.yml
Last active June 13, 2017 04:48
chef-ci akurath
version: '2'
networks:
chef:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.0.101.0/24
services:
ws:
@MeenachiSundaram
MeenachiSundaram / chef-docker.sh
Last active January 17, 2017 08:18
docker chef codebox pull and setup
#!/usr/bin/env bash
set -eux
mkdir /codespace
cd /codespace && https://gist.githubusercontent.com/MeenachiSundaram/4daf6793b812d24aec2cfe86dc947df1/raw/4a78be1a5eae13980ed7e51adbd308302e786339/docker-rhel.sh
cd /codespace && chmod +x docker-rhel.sh