Question

Running asp.net Core 2.1, MS SQL Server on a droplet

What would be the best way to run the setup above? Can they run without a docker on a linux machine?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
November 11, 2019
Accepted Answer

Hello,

Yes you should be able to run that on an Ubuntu 16 droplet.

To install MSSQL(mssql-server) follow these steps here:

  • Become root:
sudo su
  • Import the public repository GPG keys:
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
  • Add the Microsoft SQL Server Ubuntu repository:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"

Note: you could change the 16.04 part with the exact Ubuntu version that you are suing

  • Exit superuser mode.
exit
  • Install SQL Server:
sudo apt-get update
sudo apt-get install -y mssql-server
  • Run the following commands to install SQL Server:
sudo /opt/mssql/bin/mssql-conf setup
  • After the package installation finishes, run mssql-conf setup and follow the prompts to set the SA password and choose your edition.
systemctl status mssql-server

Source: official Microsoft documentation

Regarding the .NET core install, you could follow step one form this article here:

https://www.digitalocean.com/community/tutorials/how-to-deploy-an-asp-net-core-application-with-mysql-server-using-nginx-on-ubuntu-18-04

Hope that this helps! Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel