Giter Site home page Giter Site logo

Unable to create dacpac file about labs HOT 5 CLOSED

docker avatar docker commented on May 21, 2024
Unable to create dacpac file

from labs.

Comments (5)

sixeyed avatar sixeyed commented on May 21, 2024

@wmeng19ย that command just builds the Docker image which can create a Dacpac. You then need to run the image - this is the last step in Part 1:

mkdir out
docker run --rm -v $pwd\out:c:\bin -v $pwd\src:c:\src assets-db-builder

Can you try that and update the issue? Thanks.

from labs.

ManoMarks avatar ManoMarks commented on May 21, 2024

can we close this issue?

from labs.

ManoMarks avatar ManoMarks commented on May 21, 2024

Closing for lack of follow-up, we can reopen of necessary

from labs.

wmeng19 avatar wmeng19 commented on May 21, 2024

Hi @sixeyed & @ManoMarks sorry for the latest response because i been assign to other task. Yes i understand "docker run --rm -v $pwd\out:c:\bin -v $pwd\src:c:\src assets-db-builder" is the last command to generate the dacpac file. It no problems to create the image but while I execute command docker run --rm -v $pwd\out:c:\bin -v $pwd\src:c:\src assets-db-builder it give me error to mapping as below:

C:\Program Files\Docker\docker.exe: Error response from daemon: invalid bind mount spec "C:\scr\src:c:\src": invalid volume specification: 'C:\scr\src:c:\src': invalid mount config for type
"bind": bind source path does not exist.

I don't see any volume set for C:\bin & C:\scr....Is that causing the error. I read other docker document/example they all apply command Volume in ther docker file so that when create container that can map it. Another item make me confuse is we didn't copy those Assets.Database into image...is that correct? Below is the exact docker file as in this example:

# escape=`
FROM microsoft/windowsservercore
MAINTAINER Elton Stoneman <[email protected]>

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

RUN Install-PackageProvider -Name chocolatey -Force; `
    Install-Package -Name microsoft-build-tools -RequiredVersion 14.0.25420.1 -Force; `
    Install-Package dotnet4.6-targetpack -Force

RUN Install-Package nuget.commandline -Force; `
    & C:\Chocolatey\bin\nuget install Microsoft.Data.Tools.Msbuild
CMD cd 'C:\Program Files (x86)\MSBuild\14.0\Bin'; `
    .\msbuild C:\src\Assets.Database\Assets.Database.sqlproj `
    /p:SQLDBExtensionsRefPath="C:\Microsoft.Data.Tools.Msbuild.10.0.61026\lib\net40" `
    /p:SqlServerRedistPath="C:\Microsoft.Data.Tools.Msbuild.10.0.61026\lib\net40"; `
    cp 'C:\src\Assets.Database\bin\Debug\Assets.Database.dacpac' 'c:\bin'

Please help to reopen the issue thanks.

from labs.

ferventcoder avatar ferventcoder commented on May 21, 2024

@wmeng19 don't use the Chocolatey prototype provider that is in OneGet/PackageManagement - prefer instead to use Chocolatey (choco.exe) directly. At least until there is an official provider available.

from labs.

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.