From 9b022b296ab2be9a7f96b7be07296af5f24be95e Mon Sep 17 00:00:00 2001 From: henrik Date: Mon, 23 Dec 2024 00:48:26 +0100 Subject: [PATCH] feat: Adds experiment launch script --- .dokku/Procfile | 4 ++-- Dockerfile | 4 ++++ Pushy/Pushy/Pushy.csproj.DotSettings.user | 3 +++ run-silo.sh | 3 +++ run-web.sh | 3 +++ 5 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 Pushy/Pushy/Pushy.csproj.DotSettings.user create mode 100644 run-silo.sh create mode 100644 run-web.sh diff --git a/.dokku/Procfile b/.dokku/Procfile index c15cb4d..c2bcaf5 100644 --- a/.dokku/Procfile +++ b/.dokku/Procfile @@ -1,2 +1,2 @@ -web: cd /app/pushy && dotnet /app/pushy/Pushy.dll -silo: cd /app/silo && dotnet /app/silo/Pushy.Silo.dll \ No newline at end of file +web: run-web.sh +silo: run-silo.sh \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index dcd78ca..0e33bc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ WORKDIR "/src/Pushy/Pushy" RUN dotnet build "Pushy.csproj" --no-restore -c $BUILD_CONFIGURATION -o /app/pushy COPY .dokku/Procfile /app/.dokku/Procfile +COPY run-silo.sh /app/run-silo.sh +COPY run-web.sh /app/run-web.sh FROM build AS publish ARG BUILD_CONFIGURATION=Release @@ -40,4 +42,6 @@ FROM base AS final WORKDIR /app COPY --from=publish /app/publish . COPY --from=publish /app/.dokku /app/.dokku +COPY --from=publish /app/*.sh /app/ +ENTRYPOINT ["sh"] \ No newline at end of file diff --git a/Pushy/Pushy/Pushy.csproj.DotSettings.user b/Pushy/Pushy/Pushy.csproj.DotSettings.user new file mode 100644 index 0000000..1946bb7 --- /dev/null +++ b/Pushy/Pushy/Pushy.csproj.DotSettings.user @@ -0,0 +1,3 @@ + + + wwwroot\_framework\blazor.web.js \ No newline at end of file diff --git a/run-silo.sh b/run-silo.sh new file mode 100644 index 0000000..fe4507f --- /dev/null +++ b/run-silo.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cd /app/silo +dotnet Pushy.Silo.dll \ No newline at end of file diff --git a/run-web.sh b/run-web.sh new file mode 100644 index 0000000..0114fbe --- /dev/null +++ b/run-web.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cd /app/pushy +dotnet Pushy.dll \ No newline at end of file