GithubHelp home page GithubHelp logo

Comments (11)

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

We still plan on adding this. Just havent gotten to it yet.

from mssql-docker.

twright-msft avatar twright-msft commented on May 18, 2024 1

FYI - We released CTP 1.4 today. This release of the mssql-server-linux image now includes the mssql-tools package (sqlcmd and bcp) in it.

Executing sqlcmd as part of the entrypoint.sh script can be used for this kind of scenario for now. Since this is such a commonplace requirement we want to make it easier in the future, but sqlcmd will provide a reasonable option until then.

from mssql-docker.

chkm8 avatar chkm8 commented on May 18, 2024

Hi, I tried to use the tag CTP 1.4 but sqlcmd is not found in terminal. Thanks

from mssql-docker.

chkm8 avatar chkm8 commented on May 18, 2024

Hi, I saw your demo https://github.com/twright-msft/mssql-node-docker-demo-app, and i was able to use the sqlcmd base on your guide. Maybe we could include this code in creating the docker image, in order for the sqlcmd be visible globally?
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc source ~/.bashrc

from mssql-docker.

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

We've run into problems in the past with conflicting file names, in particular the rather generic name 'bcp'. So, for now at least, we recommend pointing to the tools using the fully qualified path.

from mssql-docker.

spafcio avatar spafcio commented on May 18, 2024

This is my Dockerfile for building a custom image based on the ctp1-1:

RUN apt-get update &&
apt-get install -y curl apt-transport-https &&
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - &&
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list &&
apt-get update &&
apt-get install -y mssql-tools unixodbc-dev &&
locale-gen en_US en_US.UTF-8 &&
ln -sfn /opt/mssql-tools/bin/sqlcmd* /usr/local/bin/sqlcmd &&
ln -sfn /opt/mssql-tools/bin/bcp* /usr/local/bin/bcp

from mssql-docker.

mloskot avatar mloskot commented on May 18, 2024

OTOH, why not make the image users even easier

MySQL images, for example, are configurable allow to create extra user via environment

MYSQL_USER: joe
MYSQL_PASSWORD: pass123

Why not provide similar hook into the mssql image initialization?

from mssql-docker.

pawelmaslyk avatar pawelmaslyk commented on May 18, 2024

I don't think anyone is looking into this issue anymore.

from mssql-docker.

mloskot avatar mloskot commented on May 18, 2024

@pawelmaslyk They should have closed it then. @twright-msft?

from mssql-docker.

bappajubcse05 avatar bappajubcse05 commented on May 18, 2024

Any update on this please

from mssql-docker.

 avatar commented on May 18, 2024

Any news on this?

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.