Sfoglia il codice sorgente

Merge pull request #83 from nvllsvm/dockdeb

Add Dockerfile for building Debian package
Andrew Rabert 6 anni fa
parent
commit
b5dfdc1efb
3 ha cambiato i file con 24 aggiunte e 3 eliminazioni
  1. 22 0
      Dockerfile.debian_package
  2. 2 2
      debian/control
  3. 0 1
      debian/rules

+ 22 - 0
Dockerfile.debian_package

@@ -0,0 +1,22 @@
+FROM debian:9
+
+# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
+RUN apt-get update \
+ && apt-get install -y apt-transport-https debhelper gnupg wget \
+ && wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
+ && mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
+ && wget -q https://packages.microsoft.com/config/debian/9/prod.list \
+ && mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \
+ && chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
+ && chown root:root /etc/apt/sources.list.d/microsoft-prod.list \
+ && apt-get update \
+ && apt-get install -y dotnet-sdk-2.2
+
+WORKDIR /repo
+COPY . .
+
+RUN dpkg-buildpackage -us -uc \
+ && mkdir /dist \
+ && mv /jellyfin*deb /dist
+
+WORKDIR /dist

+ 2 - 2
debian/control

@@ -3,7 +3,7 @@ Section: misc
 Priority: optional
 Priority: optional
 Maintainer: Vasily <just.one.man@yandex.ru>
 Maintainer: Vasily <just.one.man@yandex.ru>
 Build-Depends:  debhelper (>= 9),
 Build-Depends:  debhelper (>= 9),
-                dotnet-sdk-2.1,
+                dotnet-sdk-2.2,
                 libc6-dev
                 libc6-dev
 Standards-Version: 3.9.4
 Standards-Version: 3.9.4
 
 
@@ -12,6 +12,6 @@ Replaces: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
 Breaks: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
 Breaks: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
 Conflicts: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
 Conflicts: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
 Architecture: all
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.1, ffmpeg
+Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.2, ffmpeg
 Description: Jellyfin is a home media server.
 Description: Jellyfin is a home media server.
  It is built on top of other popular open source technologies such as Service Stack, jQuery, jQuery mobile, and Mono. It features a REST-based api with built-in documentation to facilitate client development. We also have client libraries for our api to enable rapid development.
  It is built on top of other popular open source technologies such as Service Stack, jQuery, jQuery mobile, and Mono. It features a REST-based api with built-in documentation to facilitate client development. We also have client libraries for our api to enable rapid development.

+ 0 - 1
debian/rules

@@ -15,7 +15,6 @@ override_dh_auto_test:
 override_dh_clistrip:
 override_dh_clistrip:
 
 
 override_dh_auto_build:
 override_dh_auto_build:
-	git submodule update --init
 	dotnet build --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'
 	dotnet build --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'
 	dotnet publish --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'
 	dotnet publish --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'