Revert "added first start logic to seed db and keep state"

This reverts commit ab3ac8f730.
This commit is contained in:
Kai Kriegel 2021-11-24 20:35:54 +00:00
parent 2a57ce2c28
commit fd7fec2cbe
2 changed files with 1 additions and 12 deletions

View File

@ -15,11 +15,10 @@ FROM debian:buster-slim
RUN apt-get update && apt-get upgrade -yqq RUN apt-get update && apt-get upgrade -yqq
RUN apt-get install -yqq libgsasl7 && rm -rf /var/lib/apt/lists/* RUN apt-get install -yqq libgsasl7 && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/diflouroborane /usr/local/bin/diflouroborane COPY --from=builder /usr/local/cargo/bin/diflouroborane /usr/local/bin/diflouroborane
COPY ./docker/startup.sh /startup.sh
#COPY --from=builder /usr/src/bffh/examples/bffh.dhall /etc/diflouroborane.dhall #COPY --from=builder /usr/src/bffh/examples/bffh.dhall /etc/diflouroborane.dhall
# RUN diflouroborane --print-default > /etc/diflouroborane.toml # RUN diflouroborane --print-default > /etc/diflouroborane.toml
VOLUME /etc/bffh/ VOLUME /etc/bffh/
VOLUME /var/lib/bffh/ VOLUME /var/lib/bffh/
VOLUME /usr/local/lib/bffh/adapters/ VOLUME /usr/local/lib/bffh/adapters/
EXPOSE 59661 EXPOSE 59661
ENTRYPOINT ["/bin/bash", "/startup.sh"] ENTRYPOINT ["sh", "-c", "diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh; diflouroborane -c /etc/bffh/bffh.dhall"]

View File

@ -1,10 +0,0 @@
#!/bin/bash
CONTAINER_ALREADY_STARTED="/var/lib/bffh/firststartflag"
if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
touch $CONTAINER_ALREADY_STARTED
echo "-- Seeding Database --"
diflouroborane -c /etc/bffh/bffh.dhall --load=/etc/bffh
else
diflouroborane -c /etc/bffh/bffh.dhall
fi