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
docker run -v <folder-to-save-sql>:/liquibase/changelog liquibase/liquibase \ | |
--driver=<jdbc-driver> --url=<jdbc-url> \ | |
--changeLogFile=“/liquibase/changelog/changelog.oracle.sql” \ | |
--diffTypes=“catalog,tables,functions,views,columns,indexes,foreignkeys,primarykeys, | |
uniqueconstraints,data,storedprocedure,triggers,sequences” \ | |
--username=<user> \ | |
--password=<pass> \ | |
generateChangeLog |
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>com.amazonaws.secretsmanager</groupId> | |
<artifactId>aws-secretsmanager-jdbc</artifactId> | |
<version>1.0.5</version> | |
</dependency> |
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
spring: | |
datasource: | |
url: jdbc-secretsmanager:mysql://database-host:3306/rdsdb | |
username: rdsrotation | |
driver-class-name: com.amazonaws.secretsmanager.sql.AWSSecretsManagerMySQLDriver |
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
docker pull store/oracle/database-enterprise:12.2.0.1-slim | |
docker volume create OracleData | |
docker run -d -v OracleData:/ORCL -p 1521:1521 --name oracle store/oracle/database-enterprise:12.2.0.1 | |
# Wait a few minutes | |
docker exec -it oracle bash -c "source /home/oracle/.bashrc; sqlplus /nolog" | |
connect sys as sysdba; | |
# Password ORCLCDB | |
alter session set "_ORACLE_SCRIPT"=true; | |
create user luan identified by "80dl20h"; |
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" | |
services: | |
sonarqube: | |
image: sonarqube | |
expose: | |
- 9000 | |
ports: | |
- "127.0.0.1:9000:9000" | |
networks: |
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
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.4.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |
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
#!/bin/sh | |
sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm | |
sudo yum install -y mysql-community-client |
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
Content-Type: multipart/mixed; boundary="//" | |
MIME-Version: 1.0 | |
--// | |
Content-Type: text/cloud-config; charset="us-ascii" | |
MIME-Version: 1.0 | |
Content-Transfer-Encoding: 7bit | |
Content-Disposition: attachment; filename="cloud-config.txt" | |
#cloud-config |
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
Content-Type: multipart/mixed; boundary="//" | |
MIME-Version: 1.0 | |
--// | |
Content-Type: text/cloud-config; charset="us-ascii" | |
MIME-Version: 1.0 | |
Content-Transfer-Encoding: 7bit | |
Content-Disposition: attachment; filename="cloud-config.txt" | |
#cloud-config |
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
CREATE TABLE `elb_logs` ( | |
`type` varchar(10) DEFAULT NULL, | |
`timestamp` varchar(30) DEFAULT NULL, | |
`elb` varchar(50) DEFAULT NULL, | |
`client:port` varchar(30) DEFAULT NULL, | |
`target:port` varchar(30) DEFAULT NULL, | |
`request_processing_time` varchar(10) DEFAULT NULL, | |
`target_processing_time` varchar(10) DEFAULT NULL, | |
`response_processing_time` varchar(10) DEFAULT NULL, | |
`elb_status_code` varchar(5) DEFAULT NULL, |