flower icon indicating copy to clipboard operation
flower copied to clipboard

Docker tag "latest" isn't latest

Open Hultner opened this issue 3 years ago • 5 comments

Background

I started getting some problems with flower when I upgraded to Celery 5, had to fiddle around quite a bit until I found this configuration in my docker-compose to work

  flower:
    image: mher/flower:latest
    networks:
      - ${PUBLIC_NETWORK?Variable not set}
      - default
    depends_on: 
      - queue
      - pdf-celeryworker
      - celeryworker
    env_file:
      - .env
    command: celery flower
      # The ones below did not work anymore
      # - "--broker=amqp://[REDACTED]:5672//"
      # - "celery --broker=amqp://[REDACTED]:5672// flower"
    environment: 
      CELERY_BROKER_URL: "amqp://[REDACTED]:5672//"
      CELERY_RESULT_BACKEND: "rpc://[REDACTED]//"
    deploy:
      labels:
        [REDACTED]

After some more investigation that the latest-tag pushed at "2021-07-07T01:41:23.237381Z" is actually a previous version, 0.9.5.

This can be verified by running flower --version inside of the container.

docker-compose exec flower flower --version
0.9.5
4.4.7 (cliffs)

From the releases on GitHub I expected latest to be version 1.0, but no tag at version 1 seem to exists.

Hultner avatar Jul 17 '21 11:07 Hultner

I saw that as well

rightisleft avatar Jul 19 '21 21:07 rightisleft

Just ran into this as well.

h55nick avatar Jul 23 '21 11:07 h55nick

I know docker hub is charging for auto builds soon - maybe related?

It's pretty straightforward to use flower as a pip library, but debugging this did lose me a few hours of my life.

rightisleft avatar Jul 23 '21 13:07 rightisleft

I had the same issue. For the benefit of google searchers flower in docker was throwing "exited with code 127" error on the :latest tag.

abdrat avatar Aug 05 '21 22:08 abdrat

I've created https://github.com/mher/flower/pull/1181 which should fix this.

cardoe avatar Dec 31 '21 17:12 cardoe