I’m currently unable to use sqlite3
with Python and the paketo buildback.
I run into the following.
...
2022-05-18T12:57:18Z [info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.9/sqlite3/dbapi2.py", line 27, in <module>
2022-05-18T12:57:18Z [info] from _sqlite3 import *
2022-05-18T12:57:18Z [info]ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory
2022-05-18T12:57:18Z [info][2022-05-18 12:57:18 +0000] [536] [INFO] Worker exiting (pid: 536)
2022-05-18T12:57:18Z [info][2022-05-18 12:57:18 +0000] [523] [INFO] Shutting down: Master
2022-05-18T12:57:18Z [info][2022-05-18 12:57:18 +0000] [523] [INFO] Reason: Worker failed to boot.
2022-05-18T12:57:19Z [info]Main child exited normally with code: 3
fly.toml
# fly.toml file generated for billing on 2022-05-18T22:07:48+10:00
app = "billing"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
FLASK_ENV = "production"
[build]
builder = "paketobuildpacks/builder:base"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8000
processes=["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[mounts]
source="billing_data"
destination="/data"