Git Product home page Git Product logo

Comments (42)

gigatexal avatar gigatexal commented on May 16, 2024 3

That works for me. Just throw up a guide on how to do it and I'll give it a shot. I liked the idea of a modular system

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024 2

@hartman17 - Please use the latest Dockerfile here:
https://github.com/Microsoft/mssql-docker/blob/master/linux/preview/examples/mssql-agent-fts-ha-tools/Dockerfile

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

The SQL Server Agent will be included in the mid-Feb or mid-March release.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Awesome. I will look for it then.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Will transactional replication also be supported?

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

(I'd edit my comments if it would let me on mobile) I'd like to suggest support for both the SQL agent and transactional replication (merge would be nice too) on the windows container as well.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Gave a presentation on running sql on Linux and the only things that are holding us back is full replication support and sql agent jobs (although we could get around that pretty easily with SQLCMD pointing to the containerized instance).

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Sql agent comes in march or so but is there a target month for replication (as a publisher)?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

Agent should come next week, barring any last minute show stopper issues. We will work on all aspects of replication for next month's release and see how far we can get.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Awesome! Much appreciated. I continue to watch the project very closely and be an advocate for its use at work. Good luck and thanks for the update.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

Saw the announcement of HA for the Linux sql containers, and that the developer sku came back for the windows side, is replication on track for the Linux sql containers?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

Yes, Always On Availability Groups was released for SQL Server on Linux in CTP 1.3 on Feb 17. That covers installs on RHEL, SLES, and Ubuntu, but not in containers just yet. There is a dependency on Pacemaker. We are working with Red Hat to figure out the best way forward for providing HA in containers. There are several different options ranging from using Pacemaker in the container to leveraging Kubernetes services like Stateful Sets.

Yes, the Developer SKU is available on Windows containers again now. Sorry for the delay on getting that out there again. We had some internal wrangling about that to sort out.
You can get it here now:
https://hub.docker.com/r/microsoft/mssql-server-windows-developer

We were tracking having the SQL Server agent released in the 1.3 release but it didnt quite make it. We are shooting for the 1.4 release in mid-March now. That is a prerequisite for replication to be fully operational on Linux.

Stay tuned!

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

@twright-msft thank you for the transparency. And good luck with 1.4 and replication!

This might be outside of the scope of this particular issue but I was curious as to why the linux docker implementation of SQLServer is so much smaller than the docker images for SQLServer but on windows? Is there a paper or some resource I could read?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

The reason that the SQL Server on Linux image is so much smaller is because it is the engine only. It doesnt currently include agent, full text search, the clustering pieces required for WSFC, localization packs, etc.
The current version of the Windows containers for SQL Server simply downloads and installs SQL Server as part of the docker build. In the future, we will likely create a similarly optimized SQL Server image for SQL on Windows.

from mssql-docker.

gigatexal avatar gigatexal commented on May 16, 2024

That makes sense. Thanks for the insight.

from mssql-docker.

richmurph avatar richmurph commented on May 16, 2024

Maybe a bit off topic too but any plans to run SQL Server Containers on Nano base image? Just curious as windowsservercore is over 4 GB. Also, SQL Server Agent on the Windows container still not released?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

@richmurph - It's something we are considering but no concrete plans yet for Nano-based image. Quite a bit of testing required for that and we would need to change the way the image is created. It would need to be a "ADD" approach as opposed to a RUN that executes the .exe. Nano doesnt support MSI.

Agent on Windows containers is on the list of things to look into as well, but for now, sorry, it's not working.

Crawl, walk, run...

from mssql-docker.

gunnarmorling avatar gunnarmorling commented on May 16, 2024

Hey @twright-msft, is there any update on the addition of SQL Server Agent to the Docker image? The last mention above indicated March; is there any more recent estimate of its availability? Thanks!

from mssql-docker.

rohitsinha54 avatar rohitsinha54 commented on May 16, 2024

I am also looking for being able to run sql agent to try some change data capture feature. Is there any update on the availability?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

Current thinking is that we would just have a base image - mssql-server-linux. People can then create their own images that add the combination of additional packages they require - i.e. agent +fts, fts+ha, integration services + agent, etc. There will be several different packages so creating images that cover all the combinatorial of them all seems like overkill. Please let us know what you all think about that....

To add to that... we are testing these packages in container to ensure that they work in a container if they are installed.

from mssql-docker.

rohitsinha54 avatar rohitsinha54 commented on May 16, 2024

I detailed guide on how to do it will be helpful

from mssql-docker.

richmurph avatar richmurph commented on May 16, 2024

Useful article here on how to do this guys. Simply installing the required features within a windows server core base image and then building a container image from completed build. http://searchsqlserver.techtarget.com/tip/Use-these-commands-to-deploy-SQL-Server-Docker-containers

from mssql-docker.

thorntonrp avatar thorntonrp commented on May 16, 2024

Is there a way install the full-text search? I'd really like to be able to experiment with this feature.

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

@thorntonrp - two options: 1) build your own image with FTS in it using the Dockerfile at the link here. 2) SSH into the container and install mssql-server-fts

from mssql-docker.

grandtiger avatar grandtiger commented on May 16, 2024

Does this image support R service (in-database)? I tried to follow the instruction here: https://docs.microsoft.com/en-us/sql/advanced-analytics/tutorials/rtsql-working-with-inputs-and-outputs, but kept getting the following error: "SQL Server was unable to communicate with the LaunchPad service. Please verify the configuration of the service. "

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

Neither the Windows- nor the Linux-based image have support for running R/Python in them yet.

from mssql-docker.

davidabbey avatar davidabbey commented on May 16, 2024

I have had this same issue. I think, but am not certain, that it is because I have SQL2016/SMSS installed on my host machine. I run trhe same container on a different machine w/o SqlServer/SSMS on it and do not encounter the error. Also, I have not gotten it when I stop the SQLServer service on my host machine.

from mssql-docker.

hartman17 avatar hartman17 commented on May 16, 2024

Has there been an official guide published on installing SQL Agent in the standard SQL Server - Linux docker image?

Following guides from blogs and now I'm getting Error: The evaluation period has expired and the container does not start.

from mssql-docker.

darkguy2008 avatar darkguy2008 commented on May 16, 2024

Hi @twright-msft , thanks for your answers. I did use your dockerfile ( https://github.com/Microsoft/mssql-docker/blob/master/linux/preview/examples/mssql-agent-fts-ha-tools/Dockerfile ) as base but even though the SQL Agent is displayed, I can't enable it (using user sa), here's how it looks:

image

This is on normal Docker for Windows in Linux-based containers.

I also tried to make it a "master" server with an invalid result as well (Invalid namespace):

image

Dockerfile

FROM ubuntu:16.04
RUN export DEBIAN_FRONTEND=noninteractive && \
    apt-get update && \
    apt-get install -yq curl apt-transport-https && \
    curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
    curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list && \
    apt-get update -y && \
    apt-get install -y mssql-server && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists && \
    /opt/mssql/bin/mssql-conf set sqlagent.enabled true  && \
    /opt/mssql/bin/mssql-conf set sqlagent.errorlogginglevel 4
CMD /opt/mssql/bin/sqlservr

docker-compose.yml

version: '3'
services:
  db:
    container_name: XXXXXXXXX
    build: .
    environment:
      - ACCEPT_EULA=Y
      - SA_PASSWORD=XXXXXXXXX
      - MSSQL_PID=Standard
    ports: 
      - 1433:1433
    volumes:
      - ./data:/var/opt/mssql
    networks:
      internal:
        aliases:
          - XXXXXXXXX

networks:
  internal:
    external: true

Any ideas?

from mssql-docker.

twright-msft avatar twright-msft commented on May 16, 2024

On Linux, you also need to enable the Agent using this env var:
MSSQL_AGENT_ENABLED=true
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-2017#environment-variables

from mssql-docker.

hitokiri avatar hitokiri commented on May 16, 2024

Hello, I have the same problem the sqlmanage starts but I am not able to give start
enable_but_no_update

##the same problem as here:
#27 (comment)

##docker-compose

version: "3.7"
services:
  sqlserver:
    image: sql-server
    build: ./Sqlserver
    container_name: sql-server
    hostname: Sqlserver
    ports:
    - "1433:1433"
    tty: true
    environment:
    - 'ACCEPT_EULA=Y'
    - 'SA_PASSWORD=1234PW!'
    - 'MSSQL_AGENT_ENABLED=true'
    - 'MSSQL_PID=Standard

from mssql-docker.

icastel avatar icastel commented on May 16, 2024

I'm running into this very issue with Azure Container Instances AND local Docker containers. The strange thing is that I have one container, C1, where I use 'MSSQL_AGENT_ENABLED=true' and the agent starts and works correctly. I deployed a second container, C2, in the exact same way, using the same image, and also setting 'MSSQL_AGENT_ENABLED=true'. C2 shows SQL Server Agent as disabled. Any ideas as to why this is happening? This is very frustrating.
cnt

from mssql-docker.

sschwenker avatar sschwenker commented on May 16, 2024

Has anyone gotten this going? I've tried getting this going but I keep getting this error.

image

As a side note. I used this(chrigu/mssql-agent-fts-ha-tools) image as it's a copy of the one linked here.

from mssql-docker.

banerjeeamit avatar banerjeeamit commented on May 16, 2024

Replication doesn't exist for SQL Server 2017 Linux. This is being introduced for SQL Server 2019.

from mssql-docker.

vin-yu avatar vin-yu commented on May 16, 2024

@sschwenker - you will need the SQL Server 2019 container image. Try this using this container image mcr.microsoft.com/mssql/server:2019-CTP3.1-ubuntu

Also here are examples to get SQL Server Replication in Containers up and running.
https://github.com/microsoft/sql-server-samples/tree/master/samples/containers/replication
https://dbafromthecold.com/2018/12/13/setting-up-sql-server-replication-in-containers/

from mssql-docker.

Susanthab avatar Susanthab commented on May 16, 2024

Is there an official docker image for SQL Server 2019-CTP with SQL Server Agent enabled?

from mssql-docker.

vin-yu avatar vin-yu commented on May 16, 2024

@Susanthab try this:

sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' \
   -e 'MSSQL_AGENT_ENABLED=true' \
   -p 1433:1433 --name sql1 \
   -d mcr.microsoft.com/mssql/server:2017-latest

from mssql-docker.

Susanthab avatar Susanthab commented on May 16, 2024

@vin-yu I'm running this as a container in AKS. So do I have to create another docker image and use that?

from mssql-docker.

vin-yu avatar vin-yu commented on May 16, 2024

@Susanthab No, just add an environment variable 'MSSQL_AGENT_ENABLED=true' when you start the SQL Server pod definition/yaml and SQL Server Agent should be started.

from mssql-docker.

Susanthab avatar Susanthab commented on May 16, 2024

Fantastic! Thanks @vin-yu

from mssql-docker.

brook-w avatar brook-w commented on May 16, 2024

sqlserver 2019 Red Hat images
Is it possible to publish and subscribe?
Collaboration with technical staff (Microsoft) but not effective progress

from mssql-docker.

croblesm avatar croblesm commented on May 16, 2024

sqlserver 2019 Red Hat images
Is it possible to publish and subscribe?
Collaboration with technical staff (Microsoft) but not effective progress

You can retrieve the list of RHEL published images through command line, here are a few examples:

Using bash:

curl -L https://mcr.microsoft.com/v2/mssql/rhel/server/tags/list/

Using PoSh:

$rhel_response = Invoke-WebRequest -URI https://mcr.microsoft.com/v2/mssql/rhel/server/tags/list/
$rhel_response.content

You can also check the Red Hat Container registry here.

from mssql-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.