-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The flower container image can be used to analyze and manage celery tasks.
- Loading branch information
softdevm
committed
Feb 10, 2021
1 parent
c82da7f
commit f18c719
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM registry.fedoraproject.org/fedora:33 | ||
LABEL maintainer="Red Hat" | ||
|
||
RUN dnf -y install \ | ||
--setopt=deltarpm=0 \ | ||
--setopt=install_weak_deps=false \ | ||
--setopt=tsflags=nodocs \ | ||
python3-pip | ||
RUN pip3 install flower==0.9.7 | ||
|
||
COPY ./docker/flower-waits-for-cachito.sh /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
cachito_api=$1 | ||
shift | ||
|
||
until curl --fail --silent --show-error "${cachito_api}/api/v1/status/short"; do | ||
echo "Cachito is unavailable - sleeping" | ||
sleep 3 | ||
done | ||
|
||
echo "Cachito is up - proceeding" | ||
|
||
exec "$@" |