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
| # Instalação do Prometheus | |
| # useradd --no-create-home --shell /bin/false prometheus | |
| # useradd --no-create-home --shell /bin/false node_exporter | |
| # mkdir /etc/prometheus | |
| # mkdir /var/lib/prometheus | |
| # chown prometheus:prometheus /etc/prometheus/ | |
| # chown prometheus:prometheus /var/lib/prometheus/ | |
| # curl -LO https://github.com/prometheus/prometheus/releases/download/v2.0.0/prometheus-2.0.0.linux-amd64.tar.gz | |
| # tar -xzvf prometheus-2.0.0.linux-amd64.tar.gz | |
| # cp prometheus-2.0.0.linux-amd64/prometheus /usr/local/bin/ |
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 | |
| RUN apt-get update && apt-get install -y curl | |
| RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - | |
| RUN apt-get install -y nodejs | |
| RUN mkdir ng-app |
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: '3.4' | |
| services: | |
| gitlab: | |
| image: gitlab/gitlab-ce:latest | |
| volumes: | |
| - /srv/gitlab/config:/etc/gitlab | |
| - /srv/gitlab/logs:/var/log/gitlab | |
| - /srv/gitlab/data:/var/opt/gitlab | |
| 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
| # /etc/gitlab.rb - Arquivo de Configuração do Gitlab | |
| # Após a atualização do arquivo, executar o comando abaixo | |
| $ gitlab-ctl reconfigure | |
| # reiniciar o Gitlab | |
| $ gitlab-ctl restart |
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
| # Instalação Kubernetes | |
| # curl -fsSL https://get.docker.com | bash | |
| # apt-get update && apt-get install apt-transport-https | |
| # vim /etc/source.list.d/kubernetes.list | |
| # deb http://apt.kubernetes.io/ kubernetes-xenial main | |
| # apt-get update | |
| # apt-get install -y kubelet kubectl kubeadm | |
| # vim /etc/sysctl.conf | |
| # net.bridge.bridge-nf-call-ip6tables = 1 | |
| # net.bridge.bridge-nf-call-iptables = 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
| FROM golang:latest | |
| WORKDIR /go/ | |
| COPY . . | |
| RUN go get -v -u github.com/go-sql-driver/mysql | |
| RUN go get -v -u github.com/gorilla/mux | |
| RUN go get -v -u github.com/jmoiron/sqlx | |
| RUN go get -v -u github.com/rs/cors | |
| WORKDIR /go/src/gateway/ |
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: "3.4" | |
| services: | |
| golang: | |
| build: | |
| context: . | |
| ports: | |
| - "8004:8000" |
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
| #Cria um novo módulo no App em Angular e diz em qual módulo ele será utilizado | |
| ng g c new-component --module app | |
| #Cria um novo serviço no App em Angular e diz em qual módulo ele será utilizado | |
| ng g s new-component --module app |
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
| # Remove a verificação das permissões dos arquivos do projeto do Git | |
| $ git config core.filemode | |
| # Stash com comentário customizado | |
| $ git stash save <doing crazy things> |
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.1" | |
| services: | |
| web: | |
| image: koder/apache-php-5.3 | |
| volumes: | |
| - ./conf/httpd.conf:/usr/local/apache2/conf/httpd.conf | |
| - ./cakephp/:/var/www/web/ | |
| ports: | |
| - "8061:8080" |