Skip to content

Commit 9246bf6

Browse files
authoredOct 10, 2024··
fix: on/off 5s (#142)
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent e517ed6 commit 9246bf6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎flagd/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# we NEED flagd v0.6.4 as a minimum
2-
FROM ghcr.io/open-feature/flagd:v0.11.3 as flagd
2+
FROM ghcr.io/open-feature/flagd:v0.11.3 AS flagd
33

44
FROM busybox:1.36
55

66
COPY --from=flagd /flagd-build /flagd
77
COPY flags/* .
88
COPY scripts/* .
9-
LABEL org.opencontainers.image.source = "https://github.com/open-feature/flagd-testbed"
9+
LABEL org.opencontainers.image.source="https://github.com/open-feature/flagd-testbed"
1010

1111
ENTRYPOINT ["sh", "change-flag-wrapper.sh", "./flagd", "start", \
1212
"-f", "file:testing-flags.json", \

‎flagd/Dockerfile.unstable

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# we NEED flagd v0.6.4 as a minimum
2-
FROM ghcr.io/open-feature/flagd:v0.11.3 as flagd
2+
FROM ghcr.io/open-feature/flagd:v0.11.3 AS flagd
33

44
FROM busybox:1.36
55

66
COPY --from=flagd /flagd-build /flagd
77
COPY flags/* .
88
COPY scripts/* .
9-
LABEL org.opencontainers.image.source = "https://github.com/open-feature/flagd-testbed"
9+
LABEL org.opencontainers.image.source="https://github.com/open-feature/flagd-testbed"
1010

1111
ENTRYPOINT ["sh", "restart-wrapper.sh", "./flagd", "start", \
1212
"-f", "file:testing-flags.json"]

‎scripts/restart-wrapper.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ do
2323
echo 'starting process...'
2424
"$@" &
2525
child=$!
26-
sleep 5
27-
echo "killing pid $child..." && sleep 5 && kill -9 "$child"
26+
sleep 5 && echo "killing pid $child..." && kill -9 "$child"
2827
while kill -0 "$child" 2> /dev/null; do # wait for child to exit (kill -0 is falsy if pid is gone)
2928
sleep 1
3029
done
30+
echo 'killed...' && sleep 5
3131
done

0 commit comments

Comments
 (0)
Please sign in to comment.