Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomconte/dnxsnap
Sample .NET Core app for Ubuntu Snappy
https://github.com/tomconte/dnxsnap
Last synced: about 1 month ago
JSON representation
Sample .NET Core app for Ubuntu Snappy
- Host: GitHub
- URL: https://github.com/tomconte/dnxsnap
- Owner: tomconte
- Created: 2015-10-01T14:11:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-01T14:24:17.000Z (about 9 years ago)
- Last Synced: 2024-10-06T17:06:39.118Z (about 1 month ago)
- Language: C#
- Size: 109 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample .NET Core application for Ubuntu Snappy
This example shows how to package a .NET Core application for execution on Ubuntu Snappy.
It uses the [snapcraft](https://developer.ubuntu.com/en/snappy/snapcraft/) tool to generate the snap package. You will need to install it:
```
$ sudo add-apt-repository ppa:snappy-dev/tools
$ sudo apt-get update
$ sudo apt-get install snapcraft
```You also need to [install .NET Core](http://dotnet.readthedocs.org/en/latest/getting-started/installing-core-linux.html) on your Ubuntu box in order to build the sample.
The .NET Core app itself resides in `dnxhelloworld`. The Makefile in that directory will use the .NET Core `dnu` and `dnx` tools to build and publish the sample. When published, the app is a self-contained unit that includes all the necessary .NET Core runtime bits.
The `snapcraft.yaml` file contains all the metadata needed to assemble the snap. Check it out if you want to change the executable name, etc.
Build the snap:
```
$ snapcraft
```Copy the generated snap to a Snappy machine:
```
$ scp dnx-sample_1.0_amd64.snap [email protected]:
```On the Snappy machine, install the snap and run it:
```
$ sudo snappy install dnx-sample_1.0_amd64.snap --allow-unauthenticated
$ dnx-sample.hellodnx
```