Sample Header Ad - 728x90

fpm .deb package docker dependencies

0 votes
1 answer
363 views
I created a simple .deb package with fpm . The package is very basic and it simply runs a docker-compose file (see my other question here for package description). I tried to specify that the package needs docker and docker-compose with:
fpm \
  -s dir -t deb \
  --deb-use-file-permissions \
  -p diagnosticator-0.1.0-1-any.deb \
  --name diagnosticator \
  --license agpl3 \
  --version 0.1.0 \
  --architecture all \
  --depends bash \
  --depends docker \
  --depends docker-compose \
  --description "Diagnosticator local app" \
  --url "https://diagnosticator.com " \
  --maintainer "Enrico Cocchi" \
  diagnosticator=/usr/bin/diagnosticator diagnosticator.1=/usr/share/man/man1/diagnosticator.1 docker-compose.yml=/usr/lib/diagnosticator/docker-compose.yml
but if I try to install it with sudo dpkg -i diagnosticator-0.1.0-1-any.deb:
dpkg: dependency problems prevent configuration of diagnosticator:
 diagnosticator depends on docker; however:
  Package docker is not installed.
 diagnosticator depends on docker-compose; however:
  Package docker-compose is not installed.
even if I have both installed and working for my user:
$ which docker
/usr/bin/docker

$ which docker-compose
/usr/local/bin/docker-compose
What am I doing wrong here?
Asked by cccnrc (255 rep)
Feb 12, 2022, 12:50 AM
Last activity: Feb 12, 2022, 08:01 AM