Hello! I have a problem with the release building *.tar.gz file. I have followed each step in Deploying with Releases guide on hex.pm, so I can run my app with Docker. I thought everything is going good until the moment of deploying to Docker. Building image stopped at lines where I copy tarball release. I found out there is no .tar.gz
file in my release folder.
I assembled another release locally following mentioned above docs but still, there was not any .tar.gz
file. Here I attach the files tree:
user@machine my_app % tree -L 2 _build/staging/rel/my_app/releases/
_build/staging/rel/my_app/releases/
├── 0.1.0
│ ├── consolidated
│ ├── elixir
│ ├── elixir.bat
│ ├── env.bat
│ ├── env.sh
│ ├── iex
│ ├── iex.bat
│ ├── my_app.rel
│ ├── remote.vm.args
│ ├── runtime.exs
│ ├── start.boot
│ ├── start.script
│ ├── start_clean.boot
│ ├── start_clean.script
│ ├── sys.config
│ └── vm.args
├── COOKIE
└── start_erl.data
Also, I made sure I have steps: [:assemble, :tar]
and include_executables_for: [:unix]
in mix.exs
in release section. I tried with specified path and without specifying it, still no result. Another person, on other machine tried assembling release and the result was the same, no tarball file. We both have gzip and tar installed. On other projects, the tar file is built while assembling release.
Has anyone seen such thing before? I would be grateful for help in finding out what’s wrong in here.