This file contains 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
<script> | |
import Vue from 'vue' | |
import axios from 'axios' | |
import VueAxios from 'vue-axios' | |
const qs = require('qs') | |
Vue.use(VueAxios, axios) | |
export default { | |
name: 'home', |
This file contains 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
// Dependências da build | |
const gulp = require('gulp') | |
const pug = require('gulp-pug') | |
const sass = require('gulp-sass') | |
const cssMin = require('gulp-csso') | |
const browserSync = require('browser-sync').create() | |
const clean = require('gulp-clean') | |
// Compila os arquivos do PUG para HTML | |
gulp.task('html', () => { |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: pma-ingress | |
spec: | |
backend: | |
serviceName: echoserver | |
servicePort: 8080 | |
rules: | |
- http: |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-ingress | |
spec: | |
loadBalancerIP: xxxxxxx | |
type: LoadBalancer | |
ports: | |
# - port: 80 | |
# name: http |
This file contains 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
<template lang="pug> | |
form | |
input(type=text)(v-model=celphone)(v-mask=celphoneMask) | |
</template> | |
<script> | |
export default { | |
name: 'mycomponent', | |
data() { | |
return { |
This file contains 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
// Dá pra fazer música com JS!!!!! | |
const musica = Array(16); | |
console.log(musica); | |
console.log(musica.join('LoL' + 1)); | |
console.log(musica.join('LoL' - 1) + ' batman batman'); |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
# note que o nome será utilizado pelo DNS para localizar o redis | |
name: redis | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: redis | |
labels: | |
app: redis | |
role: master | |
tier: backend | |
spec: | |
ports: |
This file contains 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
# usamos a versão 5.6 do PHP+Apache pois estamos falando de uma aplicaço legada | |
FROM php:5.6-apache | |
# copiamos o script de instalação do Redis para o container. | |
COPY ./redis_install /usr/local/bin/redis_install | |
# adicionamos permissão de execução para esse arquivo | |
RUN chmod a+x /usr/local/bin/redis_install | |
# executamos o script | |
RUN redis_install |
This file contains 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 | |
# atualizamos os repositórios do APT | |
apt-get update | |
# instalamos o unzip e o wget que usaremos abaixo | |
apt-get install unzip wget -y | |
cd /tmp | |
# fazemos o download do fonte do pacote |