fix dockerfile naming and update readme
authorFabian Eichhorner <fabian.eichhorner@gmail.com>
Sat, 3 Nov 2018 22:54:56 +0000 (23:54 +0100)
committerFabian Eichhorner <fabian.eichhorner@gmail.com>
Sat, 3 Nov 2018 22:54:56 +0000 (23:54 +0100)
service-reporting/DOCKERFILE [deleted file]
service-reporting/readme.md

diff --git a/service-reporting/DOCKERFILE b/service-reporting/DOCKERFILE
deleted file mode 100644 (file)
index c372a86..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-FROM microsoft/dotnet:2.2.100-preview3-sdk AS build-env
-WORKDIR /app
-
-# Copy csproj and restore as distinct layers
-COPY *.csproj ./
-RUN dotnet restore
-
-# Copy everything else and build
-COPY . ./
-RUN dotnet publish -c Release -o out
-
-# Build runtime image
-FROM microsoft/dotnet:2.2.0-preview3-aspnetcore-runtime
-WORKDIR /app
-COPY --from=build-env /app/out .
-
-# copy pdf library
-# COPY libwkhtmltox.* ./
-# install additional libaries
-RUN apt-get update \
-    && apt-get install -y --no-install-recommends \
-        zlib1g \
-        fontconfig \
-        libfreetype6 \
-        libx11-6 \
-        libxext6 \
-        libxrender1 \
-    && curl -o /usr/lib/libwkhtmltox.so \
-        --location \
-        https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so
-
-               
-# copy assets
-COPY assets/*.css ./assets/            
-ENTRYPOINT ["dotnet", "PdfService.dll"]
\ No newline at end of file
index 03be83480bdbb99602bea9de029908a7a51a75a4..ef8b8a273b3158c5b5f80699a76e5e3ec614035e 100644 (file)
@@ -1,15 +1,17 @@
 # PDF Service
 
-Provides an API interface to generate PDF reports for given tweets and their sentiment analysis result.  
+Provides an API interface to generate PDF reports for tweets and their sentiment analysis results. The service uses an .NET Core wrapper for the wkhtmltopdf library to generate pdf out of html code.
+
 `GET`: `/` Shows a demo page  
 - param: none
-- return: pdf file  
-`POST`: `/generatePDF/` Generates a pdf report for the given tweets and sentiments  
+- return: pdf file
+
+`POST`: `/generatePDF/` Generates a pdf report for the given tweets
 - param: Tweet[] as Content-Type: `application/json`  
 - return: pdf file
 
 ### Tweet model
-Tweet(string Name, string Sentiment)
+Tweet(string `Name`, string `Sentiment`)
 
 ## run with docker