Comments (5)
@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.
can we close this issue?
from labs.
Closing for lack of follow-up, we can reopen of necessary
from labs.
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.
@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)
- New Dockerfile
- Skkien / lab
- FLASK-APP cats images not available ; link not working
- No replicas running in Docker for beginner chapter 3 HOT 2
- Documentation of labs not update to date with content (sql-server part 1)
- dead link in https://github.com/docker/labs/blob/master/windows/windows-containers/README.md
- Do we need to add environment variables to Jenkins?
- The `metrics` url should be fixed
- Dead link to "Docker Tutorials from the Community" HOT 1
- Broken link to 'Install Docker Enterprise Engine on Windows Server' HOT 1
- broken link to youtube in readme HOT 1
- Source code was modified and doesn't match the PWD tutorial
- Docker Engine Service not visible and switch to windows containers is disabled
- guide on windows server HOT 2
- Install Git in Windows 2019 Core HOT 1
- ERROR: filesystem layer verification failed for digest
- Update swarm intro with voting app
- Link Broken HOT 1
- wrong compose syntax
- Running Docker on Windows Server documentation is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labs.