xomodo
Joined 9 years ago
Karma
16
Submissions
20
Member since
Oct 2
dev from DK
View on Hacker NewsJoined 9 years ago
There are many ways to do that. Start with a simple repo and spin up a VM instance from the cloud provider of your choice. Then integrate the commands from this article into a cloud-init configuration. Hope you get the idea.
This why I prefer to take backup stuff in a side container, eg: https://github.com/atrakic/gin-sqlite/blob/main/compose.yml
As a side note, you might consider revisiting your dockerfiles and skip litestream build steps, eg. in your final stage just add line like this:
COPY --from=litestream/litestream /usr/local/bin/litestream /bin/litestream
# !/bin/bash
ARG1=${1:-'select Date from stdin order by USD asc limit 1;'}
curl -o - -Ls https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist.zip \
| funzip | sqlite3 -csv ':memory:' '.import /dev/stdin stdin' "${ARG1}"
# Usage:
$ ./run.sh 'select * from stdin limit 1;'Stack: deployable with hardcoded tfstate and tfvars configs.