I’m trying to setup an elixir/phoenix/postgres application and having a couple issues. I tried using the Dockerfile from the demo Kurt did for twitter but that kept erroring at the last step and docker isn’t my strong suit.
So… I have lots of heroku experience and I figured lets try out a build pack.
From the docs it looks like i just need something like this in my fly.toml
# fly.toml file generated for fermi on 2021-04-22T12:19:09-05:00 app = "fermi" kill_signal = "SIGINT" kill_timeout = 5 [env] MIX_ENV = "prod" SECRET_KEY_BASE = "sosecret" [build] builder = "heroku/buildpacks:20" buildpacks = ["https://github.com/HashNuke/heroku-buildpack-elixir.git", "https://github.com/gjaldon/heroku-buildpack-phoenix-static.git" ] [deploy] release_command = "POOL_SIZE=1 MIX_ENV=prod mix ecto.migrate" [experimental] auto_rollback = true private_network=true [[services]] http_checks =  internal_port = 8080 protocol = "tcp" script_checks =  [[services.ports]] handlers = ["http"] port = 80 [[services.ports]] handlers = ["tls", "http"] port = 443 [[services.tcp_checks]] grace_period = "1s" interval = "15s" restart_limit = 6 timeout = "2s"
But when it always fails with the following logs:
❯ fly deploy Deploying fermi ==> Validating app configuration --> Validating app configuration done Services TCP 80/443 ⇢ 8080 ==> Building image with Buildpacks 20: Pulling from heroku/buildpacks Digest: sha256:487fb53b35f9b41b4931eec7c3eb138b605aac13c947ba34731dd2f0d040b3fa Status: Image is up to date for heroku/buildpacks:20 20: Pulling from heroku/pack Digest: sha256:e3e29ffe59b09e2d5bcfeaf0497e7765411b56b2b9e392049f94b738b4e6201c Status: Image is up to date for heroku/pack:20 Downloading from https://github.com/HashNuke/heroku-buildpack-elixir.git 182 KB/-1 B Error extracting from https://github.com/HashNuke/heroku-buildpack-elixir.git: inspecting buildpack blob: failed to get next tar entry: archive/tar: invalid tar header