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
let mapleader=" " | |
set hlsearch | |
set scrolloff=3 | |
set ignorecase smartcase | |
set showmode | |
set history=1000 | |
set clipboard+=unnamed | |
set relativenumber |
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
kubectl create deployment nginx --image=nginx | |
kubectl create service nodeport nginx --tcp=90:80 | |
kubectl get pods | |
kubectl port-forward ${nome_do_seu_pod} 8083:80 |
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
kubectl cluster-info |
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
$ kind create cluster |
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
$ curl -Lo kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 | |
$ chmod +x kind | |
$ sudo mv kind /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
# Database | |
quarkus.datasource.db-kind=postgresql | |
quarkus.datasource.username=admin | |
quarkus.datasource.password=admin | |
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/demo_quarkus | |
quarkus.datasource.jdbc.max-size=16 | |
# DevServices | |
quarkus.datasource.devservices=false |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> | |
<include file="changelogs/2021-09-12-144812-create-table-users.xml" relativeToChangelogFile="true"/> | |
</databaseChangeLog> |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> | |
<changeSet id="1" author="nt-cli"> | |
<createTable tableName="users"> | |
<column name="id" autoIncrement="true" type="BIGINT" > | |
<constraints primaryKey="true" nullable="false"/> | |
</column> | |
<column name="name" type="varchar(255)"/> | |
<column name="email" type="varchar(255)"/> | |
</createTable> |
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
-- resources | |
- db | |
- 2021-09-12-144812-create-table-users.xml | |
changeLog.xml | |
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
<dependency> | |
<groupId>io.quarkus</groupId> | |
<artifactId>quarkus-jdbc-postgresql</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.quarkus</groupId> | |
<artifactId>quarkus-liquibase</artifactId> | |
</dependency> |
NewerOlder