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
export DPRINT_INSTALL="$HOME/.dprint" | |
mkdir -p "$DPRINT_INSTALL/bin" | |
curl -fsSL https://github.com/dprint/dprint/releases/download/0.34.1/dprint-x86_64-unknown-linux-musl.zip -o "$DPRINT_INSTALL/bin/dprint.zip" | |
unzip "$DPRINT_INSTALL/bin/dprint.zip" -d "$DPRINT_INSTALL/bin/" | |
chmod +x "$DPRINT_INSTALL/bin/dprint" | |
export PATH="$PATH:$DPRINT_INSTALL/bin" | |
dprint check |
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/bash | |
# You need to have the aws CLI installed and configured. | |
# Set the S3_BUCKET variable before using. | |
S3_BUCKET="your-s3-log-bucket" | |
echo "Fetching logs from S3 ..." | |
aws s3 sync "s3://$S3_BUCKET" ./aws_logs |
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
[http.routers] | |
[http.routers.force-https] | |
entryPoints = ["http"] | |
middlewares = ["force-https"] | |
rule = "HostRegexp(`{any:.+}`)" | |
service = "noop" | |
[http.middlewares] | |
[http.middlewares.force-https.redirectScheme] | |
scheme = "https" |
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
[log] | |
level = "WARN" | |
[providers] | |
[providers.docker] | |
exposedByDefault = false | |
[providers.file] | |
directory = "/etc/traefik/dynamic" | |
[entryPoints] |
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.4' | |
services: | |
# ... | |
my-app: | |
image: my-app:latest | |
labels: | |
- 'traefik.enable=true' | |
- 'traefik.http.routers.my-app.rule=Host(`example.com`)' | |
- 'traefik.http.routers.my-app.tls=true' | |
- 'traefik.http.routers.my-app.tls.certresolver=lets-encrypt' |
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.4' | |
services: | |
traefik: | |
image: traefik:2.1 | |
restart: always | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- ./traefik:/etc/traefik |
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
#=========== | |
#Build Stage | |
#=========== | |
FROM bitwalker/alpine-elixir:1.5 as build | |
#Copy the source folder into the Docker image | |
COPY . . | |
#Install dependencies and build Release | |
RUN export MIX_ENV=prod && \ |
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
require 'opal' | |
require 'sinatra' | |
$OPAL_APP_PATH = 'app' | |
map "/__opal_source_maps__" do | |
opal = Opal::Server.new {|s| | |
s.append_path $OPAL_APP_PATH | |
s.main = 'application' | |
} |