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
# curl -fsSL https://gist.githubusercontent.com/viniciusxyz/059b85d665cb83f82ecd8adcc103bb05/raw/0e8a988b51797327f857a6cd318370c6f6899824/ubuntu.sh | bash | |
#all comands | |
# Update packages | |
sudo apt-get update && sudo apt-get upgrade -y | |
# Install basic tools | |
sudo apt install net-tools git gzip zip unzip curl wget -y |
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
# curl -fsSL https://gist.githubusercontent.com/viniciusxyz/4b6b0355ce1b53420062a5e2b140d393/raw/d87c1c42761dcaaaccf49c4b711f7073af14150f/setup-environment.sh | bash | |
# curl -fsSL https://cutt.ly/sh-rke-environment-setup | bash | |
/bin/bash << EOF | |
adduser administrator | |
passwd administrator | |
spPasswordUtk | |
spPasswordUtk | |
usermod -aG wheel administrator |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
config.vm.box_version = "2004.01" | |
config.vm.define "kube01" do |kube01| | |
kube01.vm.hostname = "kube01" | |
kube01.vm.network "public_network", ip: "140.6.254.200" | |
kube01.vm.network "private_network", ip: "172.23.3.170", hostname: true | |
end |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install discord -y | |
choco install rocketchat -y | |
choco install skype -y | |
choco install microsoft-teams.install -y |
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
package com.example.demo.config; | |
import javax.validation.constraints.Min; | |
import javax.validation.constraints.NotBlank; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.validation.annotation.Validated; | |
import lombok.Getter; |
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
version: "3.7" | |
services: | |
react-api-front: | |
image: registry.gitlab.com/vinicius.santos76/react | |
deploy: | |
labels: | |
- "traefik.enable=true" | |
- "traefik.admin.frontend.rule=Host:web.ursamaior.app" | |
- "traefik.port=80" |
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
#Imagem base | |
FROM node:8.11.3 as BUILD | |
#Copia todos os arquivos e adiciona ao diretório / | |
COPY . /app | |
#Define o diretório de trabalho como / | |
WORKDIR /app | |
RUN npm ci |
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
FROM nginx:alpine | |
#Porta exposta | |
EXPOSE 80 | |
#Copia todos os arquivos e adiciona ao diretório / | |
COPY ./build/ /usr/share/nginx/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
image: docker:dind | |
services: | |
- docker:dind | |
stages: | |
- Build Web | |
- Push on Registry Release | |
- Push on Registry Develop | |
- Deploy on Swarm Release | |
- Deploy on Swarm Develop |