Start up a container (whichever Linux flavour takes your fancy):
docker run -it ubuntu /bin/bash
docker run -it centos /bin/bash| #!/bin/bash | |
| # A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
| # Used to provide DDNS service for my home | |
| # Needs the DNS record pre-creating on Cloudflare | |
| # Proxy - uncomment and provide details if using a proxy | |
| #export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
| # Cloudflare zone is the zone which holds the record |
| <?php | |
| define('DB_HOST', 'localhost'); | |
| define('DB_NAME', 'name'); | |
| define('DB_USER', 'user'); | |
| define('DB_PASSWORD', 'password'); | |
| /** | |
| * You can also include other environment specifc | |
| * definitions here, such as enabling debug for |
| # Rails production setup via SQLite3 made durable by https://litestream.io/ | |
| # Copy this to Dockerfile on a fresh rails app. Deploy to fly.io or any other container engine. | |
| # | |
| # try locally: docker build . -t rails && docker run -p3000:3000 -it rails | |
| # | |
| # in production you might want to map /data to somewhere on the host, | |
| # but you don't have to! | |
| # | |
| FROM ruby:3.0.2 |