Skip to content

Instantly share code, notes, and snippets.

@Roadmaster
Created February 19, 2024 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Roadmaster/5d647ac76435f0f88aa2854afe58a2df to your computer and use it in GitHub Desktop.
Save Roadmaster/5d647ac76435f0f88aa2854afe58a2df to your computer and use it in GitHub Desktop.
#!/bin/bash
cat << EOF > fly.toml
app = "dockerignore"
primary_region = "yul"
kill_timeout = 10
kill_signal = "SIGINT"
[[services]]
internal_port = 80
protocol = "tcp"
[[services.ports]]
handlers = ["http"]
port= 80
[[services.http_checks]]
grace_period = "5s"
interval = "5s"
path = "/"
protocol = "http"
timeout = "10s"
EOF
cat << EOF > Dockerfile
from nginx
COPY * /
EOF
mkdir -p build
dd if=/dev/urandom of=build/17mb bs=1024 count=17408
dd if=/dev/urandom of=13mb bs=1023 count=13312
dd if=/dev/urandom of=7mb bs=1023 count=7168
cat << EOF > .dockerignore
build/
13mb
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment