From 10ad5339a48700758979dcdaae45a47bd729bd4f Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Wed, 17 Mar 2021 23:15:09 +0000 Subject: [PATCH] More integration commits --- fedilogue/Dockerfile | 8 ++++++++ restapi/entrypoint.sh | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 fedilogue/Dockerfile create mode 100755 restapi/entrypoint.sh diff --git a/fedilogue/Dockerfile b/fedilogue/Dockerfile new file mode 100644 index 0000000..a4723a9 --- /dev/null +++ b/fedilogue/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:alpine +COPY . /app +WORKDIR /app +RUN apk add postgresql-client +RUN go build . +ENV DATABASE_URL "postgres://fedilogue:fedilogue@db/fedilogue" +ENV PGPASSWORD "fedilogue" +ENTRYPOINT ["./entrypoint.sh"] diff --git a/restapi/entrypoint.sh b/restapi/entrypoint.sh new file mode 100755 index 0000000..f1cabf2 --- /dev/null +++ b/restapi/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +sleep 5 + +./restapi