grep -rnw '/path/to/somewhere/' -e 'pattern'
- -r or -R is recursive,
- -n is line number, and
- -w stands for match the whole word.
- -l (lower-case L) can be added to just give the file name of matching files.
| 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 |
| [grav] | |
| user = www-data | |
| group = www-data | |
| listen = /run/php/php7.0-fpm.sock | |
| listen.owner = www-data | |
| listen.group = www-data |
| server { | |
| #listen 80; | |
| index index.html index.php; | |
| ## Begin - Server Info | |
| root /home/grav/www/domain1; | |
| server_name domain1; | |
| ## End - Server Info | |
| ## Begin - Index |
| #!/bin/bash | |
| # Start the first process | |
| nginx | |
| status=$? | |
| if [ $status -ne 0 ]; then | |
| echo "Failed to start my_first_process: $status" | |
| exit $status | |
| fi |
| #!/bin/bash | |
| for file in $( ls /etc/nginx/sites-available/ ) | |
| do | |
| #mkdir -p /home/grav/domains/$file | |
| unzip -q /home/grav/grav-admin.zip -d /tmp/ | |
| mv /tmp/*grav* /home/grav/domains/$file | |
| ln -sF /etc/nginx/sites-available/$file /etc/nginx/sites-enabled/$file | |
| done |
| #!/bin/bash | |
| apt-get update | |
| apt-get install -y git wget | |
| # Install Docker | |
| apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ |
| #!/bin/bash | |
| apt-get update | |
| apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common |
Using startup script https://gist.github.com/MeenachiSundaram/6ffbbe38a072b94ad8d695d49d977ef7
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose