Suwayomi / Tachidesk-Sorayomi

A free and open source manga reader app to read manga from a Tachidesk-Server instance.
https://suwayomi.github.io/Tachidesk-Sorayomi/
Mozilla Public License 2.0
856 stars 63 forks source link

[Feature Request] Docker Container for Web? #179

Open SushiWaUmai opened 1 year ago

SushiWaUmai commented 1 year ago

PLEASE READ THIS

Is your feature request related to a problem? Please describe. Are there any docker images for the web version of tachidesk sorayomi? I prefer the web version of sorayomi over the default webUI provided with the tachidesk-server.

Describe the solution you'd like Adding a docker container for the web version of sorayomi

Describe alternatives you've considered The WebUI

Additional context N/A

DattatreyaReddy commented 1 year ago

We don't have a docker file for Sorayomi web but you could use Sorayomi web here directly without installing

SushiWaUmai commented 1 year ago

The problem what I'm hosting the tachidesk server on localhost which doesn't have https. So I just ended up writing my own docker file

FROM alpine as builder
RUN apk add unzip curl jq
RUN tag=$(curl -s https://api.github.com/repos/Suwayomi/Tachidesk-Sorayomi/tags | jq -r '.[0].name') && \
        curl -LO https://github.com/Suwayomi/Tachidesk-Sorayomi/releases/download/$tag/tachidesk-sorayomi-$tag-web.zip && \
        unzip tachidesk-sorayomi-$tag-web.zip -d ./static

FROM nginx:stable-alpine-slim
COPY --from=builder ./static /usr/share/nginx/html

This docker file just pulls the latest release of Sorayomi and serves it on port 80 via nginx. I don't know if this is worth adding to the repo, but it works well.

SushiWaUmai commented 1 year ago

Just created a public docker container on dockerhub.

https://hub.docker.com/r/sushiwaumai/tachidesk-sorayomi-web

DattatreyaReddy commented 1 year ago

Will it pull latest release from GitHub?

DattatreyaReddy commented 1 year ago

else we could create a docker image directly from GitHub actions, you could raise a PR if you are interested

DattatreyaReddy commented 1 year ago

https://github.com/Suwayomi/Tachidesk-Sorayomi/blob/05a1997f609755e41e315a4bed1ce4150acd0ebd/.github/workflows/publish.yml#L175 You could write your workflow in the above file

use winget-publish as reference you need to write needs: create-build so it will only execute after flutter builds all versions of Sorayomi (including web)

SushiWaUmai commented 1 year ago

Will it pull latest release from GitHub?

The problem is that there is no way to figure out when a release is published, so it would be nice if we could move this to this repository.

xAaeEx commented 11 months ago

Will it pull latest release from GitHub?

The problem is that there is no way to figure out when a release is published, so it would be nice if we could move this to this repository.

Thats not completely true, releases have a latest tag (eg. https://github.com/Suwayomi/Tachidesk-Sorayomi/releases/latest) when you open it, it will reference the current latest version of the releases.

Maybe use this instead of using the github api endpoint?