From 83b085189d721c4bca3a24b84a843e6fea822c92 Mon Sep 17 00:00:00 2001 From: Lee Coward Date: Tue, 30 Jan 2018 20:30:16 -0800 Subject: [PATCH] add base snaps Commit migrated from https://github.com/dotnet/core-setup/commit/9f2688550154e214d206a0c00b809a96a47396ea --- .../snaps/dotnet-hosting-20/snap/snapcraft.yaml | 41 ++++++++++++++++++ .../snaps/dotnet-runtime-11/snap/snapcraft.yaml | 45 ++++++++++++++++++++ .../snaps/dotnet-runtime-20/snap/snapcraft.yaml | 45 ++++++++++++++++++++ .../packaging/snaps/dotnet-sdk/snap/snapcraft.yaml | 48 ++++++++++++++++++++++ 4 files changed, 179 insertions(+) create mode 100644 src/installer/pkg/packaging/snaps/dotnet-hosting-20/snap/snapcraft.yaml create mode 100644 src/installer/pkg/packaging/snaps/dotnet-runtime-11/snap/snapcraft.yaml create mode 100644 src/installer/pkg/packaging/snaps/dotnet-runtime-20/snap/snapcraft.yaml create mode 100644 src/installer/pkg/packaging/snaps/dotnet-sdk/snap/snapcraft.yaml diff --git a/src/installer/pkg/packaging/snaps/dotnet-hosting-20/snap/snapcraft.yaml b/src/installer/pkg/packaging/snaps/dotnet-hosting-20/snap/snapcraft.yaml new file mode 100644 index 0000000..9195013 --- /dev/null +++ b/src/installer/pkg/packaging/snaps/dotnet-hosting-20/snap/snapcraft.yaml @@ -0,0 +1,41 @@ +name: dotnet-hosting-20 +version: 2.0.5 +summary: Cross-Platform .NET Core Runtime. +description: | + .NET Core 2.0.5 Runtime and ASP.NET Core. https://dot.net/core. + +grade: devel +confinement: devmode + +apps: + dotnet: + command: dotnet + plugs: + - network + - network-bind + - removable-media + - home + +slots: + dotnet-hosting: + content: dotnet-hosting-20 + interface: content + read: [/] + +parts: + dotnet-runtime: + plugin: dump + source: https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/store/2.0.5-155/dotnet-hosting-2.0.5-linux-x64.tar.gz + source-checksum: sha512/6df0b17349346818656d906c442469383b4b2e2e77515cfb8e86ccf7a0f42c5192f056da2541dba80410a8a68fb033b09adaddccf58b5f884d0a058a77f36bd7 + stage-packages: + - libicu55 + - libssl1.0.0 + - libc6 + - libcurl3 + - libgssapi-krb5-2 + - liblttng-ust0 + - libstdc++6 + - zlib1g + - libgcc1 + - lldb + - libunwind8 diff --git a/src/installer/pkg/packaging/snaps/dotnet-runtime-11/snap/snapcraft.yaml b/src/installer/pkg/packaging/snaps/dotnet-runtime-11/snap/snapcraft.yaml new file mode 100644 index 0000000..58a0364 --- /dev/null +++ b/src/installer/pkg/packaging/snaps/dotnet-runtime-11/snap/snapcraft.yaml @@ -0,0 +1,45 @@ +name: dotnet-runtime-11 +version: 1.1.6 +summary: Cross-Platform .NET Core Runtime. +description: | + .NET Core 1.1.6 Runtime. https://dot.net/core. + +grade: devel +confinement: devmode + +apps: + dotnet: + command: dotnet + plugs: + - network + - network-bind + - removable-media + - home + +slots: + # This is how we make a part of this snap readable by other + # snaps. Consumers will need to access the runtime as well + # as various libs contained in this snap, so share the entire + # $SNAP + dotnet-runtime-11: + content: dotnet-runtime-11 + interface: content + read: [/shared/Microsoft.NETCore.App/1.1.6] + +parts: + dotnet-runtime: + plugin: dump + source: https://dotnetcli.blob.core.windows.net/dotnet/Runtime/1.1.6/dotnet-ubuntu.16.04-x64.1.1.6.tar.gz + source-checksum: sha512/bc8aa9990a99df631338af0d796ca0e51e452001e0593e22d3835621a45f7e3404f1214395e36cf64793d829702dddd4724c66ad841069dcac495ea4b57375db + stage-packages: + - libicu55 + - libssl1.0.0 + - libc6 + - libcurl3 + - libgssapi-krb5-2 + - liblttng-ust0 + - libstdc++6 + - zlib1g + - libgcc1 + - lldb + - libunwind8 diff --git a/src/installer/pkg/packaging/snaps/dotnet-runtime-20/snap/snapcraft.yaml b/src/installer/pkg/packaging/snaps/dotnet-runtime-20/snap/snapcraft.yaml new file mode 100644 index 0000000..cff9773 --- /dev/null +++ b/src/installer/pkg/packaging/snaps/dotnet-runtime-20/snap/snapcraft.yaml @@ -0,0 +1,45 @@ +name: dotnet-runtime-20 +version: 2.0.5 +summary: Cross-Platform .NET Core Runtime. +description: | + .NET Core 2.0.5 Runtime. https://dot.net/core. + +grade: devel +confinement: devmode + +apps: + dotnet: + command: dotnet + plugs: + - network + - network-bind + - removable-media + - home + +slots: + # This is how we make a part of this snap readable by other + # snaps. Consumers will need to access the runtime as well + # as various libs contained in this snap, so share the entire + # $SNAP + dotnet-runtime: + content: dotnet-runtime-20 + interface: content + read: [/] + +parts: + dotnet-runtime: + plugin: dump + source: https://dotnetcli.blob.core.windows.net/dotnet/Runtime/2.0.5/dotnet-runtime-2.0.5-linux-x64.tar.gz + source-checksum: sha512/21d54e559c5130bb3f8c38eadacb7833ec90943f71c4e9c8fa2d53192313505311230b96f1afeb52d74d181d49ce736b83521754e55f15d96a8756921783cd33 + stage-packages: + - libicu55 + - libssl1.0.0 + - libc6 + - libcurl3 + - libgssapi-krb5-2 + - liblttng-ust0 + - libstdc++6 + - zlib1g + - libgcc1 + - lldb + - libunwind8 diff --git a/src/installer/pkg/packaging/snaps/dotnet-sdk/snap/snapcraft.yaml b/src/installer/pkg/packaging/snaps/dotnet-sdk/snap/snapcraft.yaml new file mode 100644 index 0000000..7b963e1 --- /dev/null +++ b/src/installer/pkg/packaging/snaps/dotnet-sdk/snap/snapcraft.yaml @@ -0,0 +1,48 @@ +name: dotnet-sdk +version: 2.1.4 +summary: Cross-Platform .NET Core SDK +description: | + .NET Core SDK. https://dot.net/core. + +grade: devel +confinement: devmode + +apps: + dotnet: + command: dotnet + plugs: + - network + - network-bind + - removable-media + - home + +plugs: + # Mount the content shared from dotnet-runtime into supported runtimes + # need feature to enable content interfaces between classic snaps in order for this to work. + dotnet-runtime-11: + content: dotnet-runtime-11 + interface: content + target: /shared/Microsoft.NETCore.App/1.1.6 + default-provider: dotnet-runtime:dotnet-runtime + + +parts: + dotnet-sdk: + plugin: dump + source: https://download.microsoft.com/download/1/1/5/115B762D-2B41-4AF3-9A63-92D9680B9409/dotnet-sdk-2.1.4-linux-x64.tar.gz + source-checksum: sha512/05fe90457a8b77ad5a5eb2f22348f53e962012a55077ac4ad144b279f6cad69740e57f165820bfd6104e88b30e93684bde3e858f781541d4f110f28cd52ce2b7 + stage-packages: + - libicu55 + - libssl1.0.0 + - libc6 + - libcurl3 + - libgssapi-krb5-2 + - liblttng-ust0 + - libstdc++6 + - zlib1g + - libgcc1 + - lldb + - libunwind8 + install: + mkdir $SNAPCRAFT_PART_INSTALL/shared/Microsoft.NETCore.App/1.1.6 + -- 2.7.4