草庐IT

custom-build

全部标签

python - Docker Build 找不到 pip

尝试关注一些[1][2]通过AWSam的简单Docker教程并收到以下错误:>dockerbuild-tmy-app-image.SendingbuildcontexttoDockerdaemon94.49MBStep1:FROMamazon/aws-eb-python:3.4.2-onbuild-3.5.1#Executing2buildtriggers...Step1:ADD./var/app--->UsingcacheStep1:RUNif[-f/var/app/requirements.txt];then/var/app/bin/pipinstall-r/var/app/req

elasticsearch - docker-compose build 和 http_proxy

我想测试ELK。它工作正常但是当我想做一个docker-composeup在代理之后docker-composeup--no-recreateBuildingkibanaStep1:FROMkibana:latest--->544887fbfa30Step2:RUNapt-getupdate&&apt-getinstall-ynetcat--->Runningin794342b9d807失败了W:Someindexfilesfailedtodownload.Theyhavebeenignored,oroldonesusedinstead.没关系dockerbuild--build-ar

makefile - Docker 与 make : build image on Dockerfile change

我在玩Docker并制作实用程序,并尝试编写仅在Dockerfile更改时重建docker镜像的规则。我的项目结构如下:tree..├──Dockerfile├──Makefile└──project└──1.js我的Dockerfile非常简单:FROMubuntuRUNapt-getupdateRUNapt-getinstall-ycurlRUNcurl-sLhttps://deb.nodesource.com/setup|sudobash-RUNapt-getupdateRUNapt-getinstall-ybuild-essentialnodejsVOLUME["/projec

Swift build 总是在 Docker 中构建整个包

当使用像这样的Dockerfile时:FROMswift:latestRUNmkdirfoo&&cdfoo&&swiftpackageinitRUNcdfoo&&swiftbuild&&swiftbuildRUNcdfoo&&swiftbuild运行第三步时,swiftbuild只会编译一次应用程序,因为第二次执行将只使用已经构建的对象,输出将是单个CompileSwift模块“foo”(1个来源)但是,当运行第四步时,它似乎忽略了已经构建的任何内容,并重新构建整个东西,尽管没有任何改变并且没有清理。我试过运行RUNls/foo/.build&&ls/tmp一切似乎都到位了。我实际上想

docker build 使用注册表中以前的构建缓存

我正在配置一个竹子构建计划来构建docker镜像。使用AWSECS作为注册表。构建计划是这样的;拉取最新标签dockerpullxxx.dkr.ecr.eu-west-1.amazonaws.com/myimage:latest使用最新标签构建镜像dockerbuild-tmyimage:latest.标记图像(ECS必需)dockertag-fmyimage:latestxxx.dkr.ecr.eu-west-1.amazonaws.com/myimage:latest将图片推送到注册表dockerpushxx.dkr.ecr.eu-west-1.amazonaws.com/myim

build - 无法在 Docker 中使用 "umount"卸载设备

我不知道为什么,但是umount在docker中不起作用。umount:loop3/:mustbesuperusertoumount让我再分享一件事它在真机的/mnt/loop3下创建loop3。这对我来说是最出乎意料的事情,因为promise了纯虚拟环境。为什么?有什么解决办法吗?场景:我创建了dockerubuntu:13.04来创建交叉编译环境。DockerLinux机器(ubuntu):Linux626089eadfeb3.10.45-1-lts#1SMPFriJun2706:44:23UTC2014x86_64x86_64x86_64GNU/LinuxLinux机器(rchL

docker - 将 ASP.NET 5 项目发布到 Docker 时找不到名称为 "Custom"的 AspnetPublishHandler

我正在尝试将未修改的ASP.NET5项目发布到我新安装的Ubuntu15.04服务器,但收到以下消息:Anerroroccurredduringpublish.AspnetPublishHandlerwithname"Custom"wasnotfound我将服务器绑定(bind)到正确的端口:dockerdaemon-H0.0.0.0:5555&连接验证成功。有人知道可能出了什么问题吗? 最佳答案 你在最新版本之后尝试过吗?对于某些配置组合,发布配置文件生成不正确。 关于docker-将

c# - 找不到与命令 "dotnet-/app/Build\ClearPluginAssemblies.dll"Docker 匹配的可执行文件

我正在尝试使用docker镜像运行我的ASP.NETCore2.1应用程序。为此,我有包含以下内容的docker文件:FROMmicrosoft/dotnet:2.1-sdkASbuildWORKDIR/app#copycsprojandrestoreasdistinctlayersCOPY..RUNdotnetrestore#copyeverythingelseandbuildappCOPYPresentation/MyProject.Web/../Presentation/MyProject.Web/WORKDIR/app/Presentation/MyProject.WebRUN

docker - 添加失败 : No such file/Directory while building docker image

我有以下Dockerfile:FROMpython:3RUNmkdir-p/test/code/RUNmkdir-p/test/logs/RUNmkdir-p/test/configs/ADDtest.py/test/code/ADDtest_output.txt/test/code/ADDtest_input.txt/test/configs/ADDlogfile.log/test/logs/CMD["python3","/test/code/test.py"]我的目录结构是:/home//test/|->code/Dockerfile,test_output.txt,test.py

docker - Gitlab CI/Docker : Use custom image for job

这就是我做一些linter测试(eslint)的方式。linter:image:ubuntu:16.04stage:testtags:-testingbefore_script:-apt-getupdate-y-apt-getinstallnodejs-legacy-yqq-apt-getinstallcurl-yqq-curlhttps://install.meteor.com/|sh-meteornpminstalleslinteslint-plugin-reactscript:-./node_modules/.bin/eslint--ext.js--ext.jsx.但是每次测试都