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
| #!/bin/bash | |
| # 2014, Mahyuddin Susanto <[email protected]> | |
| set -x | |
| SQLPASS=WHATEVER | |
| ARGS="-u root -h 202.154.57.61 -p$SQLPASS" | |
| SAVE="$HOME/mysql-backup/$(hostname -f)/$(date +%Y%m%d%H%M)" | |
| # remove database backup older that 90 days | |
| find $HOME/mysql-backup -mtime +90 | xargs rm -rf |
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
| vagrant ALL=NOPASSWD: ALL |
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
| [base] | |
| name=CentOS-$releasever - Base | |
| mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra | |
| #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
| #released updates | |
| [updates] | |
| name=CentOS-$releasever - Updates |
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
| echo "deb http://apt.puppetlabs.com wheezy main" >>/etc/apt/sources.list | |
| apt-get update | |
| apt-get install foreman unicorn | |
| /etc/init.d/foreman stop | |
| #disable /etc/init.d/foreman | |
| rcconf |
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
| FROM udienz/images:xenial-ruby231 | |
| Maintainer Mahyuddin Susanto <[email protected]> | |
| VOLUME /code | |
| WORKDIR /code/ | |
| COPY tests/wrapper.sh / | |
| ENTRYPOINT [ "/wrapper.sh" ] |
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
| #!/bin/bash | |
| pwd | |
| shopt -s globstar | |
| cd /code | |
| bundle install | |
| bundle exec rake validate |
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
| #! /usr/bin/perl | |
| ## | |
| ## $Id$ | |
| ## | |
| ## rancid 2.3.9 | |
| ## Copyright (C) 1997-2011 by Terrapin Communications, Inc. | |
| ## All rights reserved. | |
| ## | |
| ## This software may be freely copied, modified and redistributed | |
| ## without fee for non-commerical purposes provided that this license |
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
| version: '2' | |
| services: | |
| web: | |
| container_name: web | |
| image: nginx:latest | |
| ports: | |
| - "9081:80" | |
| volumes: | |
| - ./code:/code |
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
| #!/bin/bash | |
| set -ex | |
| NAME=swarm | |
| lxc stop $NAME | |
| lxc delete $NAME | |
| lxc launch ubuntu:16.04 $NAME -p default -p docker |
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
| FROM ruby:2.3 | |
| MAINTAINER Mahyuddin Susanto <[email protected]> | |
| ADD code/ /code/ | |
| WORKDIR /code | |
| RUN bundle install | |
| ENV LANGUAGE="en_US" \ | |
| LANG="en_US.UTF-8" \ | |
| LC_ALL="en_US" \ | |
| LC_CTYPE="UTF-8" |