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.6" | |
services: | |
whoami: | |
image: traefik/whoami:v1.6.0 | |
deploy: | |
mode: replicated | |
replicas: 1 | |
labels: | |
- traefik.enable=true |
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.6' | |
services: | |
registry: | |
image: registry:2 | |
hostname: registry.mydomain.com | |
networks: | |
- lb_network | |
volumes: | |
- data:/var/lib/registry |
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 | |
cd /etc/letsencrypt | |
cert_number=$(ls csr/|tail -1|sed s/_.*//) | |
cert_name=$RENEWED_DOMAINS-$cert_number | |
echo $cert_name | |
/root/bin/oci lb certificate create --load-balancer-id $OCID --certificate-name $cert_name --public-certificate-file /etc/letsencrypt/live/$RENEWED_DOMAINS/cert.pem --private-key-file /etc/letsencrypt/live/$RENEWED_DOMAINS/privkey.pem | |
sleep 30 | |
/root/bin/oci lb listener update --force --listener-name lb_ssl --default-backend-set-name bs_default --port 443 --protocol HTTP --load-balancer-id $OCID --ssl-certificate-name $cert_name |
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 | |
# Start nginx en background | |
/etc/init.d/nginx start | |
sleep 10s | |
cd /opt/letsencrypt/ | |
# ./certbot-auto --no-bootstrap --standalone renew | |
./letsencrypt-auto certonly --force-renewal --authenticator webroot --webroot-path /var/www/letsencrypt --post-hook /create-lb-certs.sh -d $RENEWED_DOMAINS | |
cd /etc/letsencrypt |
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.6' | |
volumes: | |
certs-repo: | |
driver: s3fs | |
name: "certs" | |
services: | |
nginx: | |
image: registry.mydomain.com/letsencrypt:1.19.3 |
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
ARG VERSION=1.19.3 | |
FROM nginx:$VERSION | |
RUN apt-get update \ | |
&& apt-get install -y -q --no-install-recommends \ | |
ca-certificates \ | |
wget \ | |
git \ | |
vim \ | |
openssh-client \ | |
&& curl -L -s https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh -o /root/install.sh \ |
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.6' | |
services: | |
whoami: | |
image: traefik/whoami:v1.6.0 | |
deploy: | |
mode: replicated | |
replicas: 1 | |
labels: | |
- traefik.enable=true |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<SwingBenchConfiguration xmlns="http://www.dominicgiles.com/swingbench/config"> | |
<Name>Stress Test</Name> | |
<Comment>Simple relational CRUD workload test</Comment> | |
<Connection> | |
<UserName>soe</UserName> | |
<Password>enc(cw4Xx9RgsQA=)</Password> | |
<ConnectString>//oraclelinux/DOM102</ConnectString> | |
<DriverType>Oracle10g Type IV jdbc driver (thin)</DriverType> | |
<Properties> |
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.dom.benchmarking.swingbench.testcollection; | |
import com.dom.benchmarking.swingbench.event.JdbcTaskEvent; | |
import com.dom.benchmarking.swingbench.kernel.SwingBenchException; | |
import com.dom.benchmarking.swingbench.kernel.SwingBenchTask; | |
import com.dom.util.RandomUtilities; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; |
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.dom.benchmarking.swingbench.testcollection; | |
import com.dom.benchmarking.swingbench.event.JdbcTaskEvent; | |
import com.dom.benchmarking.swingbench.kernel.SwingBenchException; | |
import com.dom.benchmarking.swingbench.kernel.SwingBenchTask; | |
import com.dom.util.RandomUtilities; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; |