#341  请教下如何配置.onedev-buildspec.yml文件
Closed
fly opened 3 years ago

例如5-minute Quickstart中的案例,如果我在命令行最后加上一句npm start

image.png

如何像docker命令一样docker -p port1:port2暴露端口使其可以访问,

再比如,我想使用centos镜像,编译安装nginx源码程序

image_2.png

结果会报错,

image_3.png

如何进入到centos镜像中,去执行安装和编译的命令?

抱歉我是初学者,只有linux和docker的基本知识,对编写.yml文件完全没有头绪,对于不同的项目该怎么配置.yml文件,有大概的学习方向吗,多谢了!

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
Robin Shen commented 3 years ago

第一个问题,一般你要把你的应用部署到其他环境中。因为运行build的容器在build结束后会被删除。

第二个问题,centos我不太了解,你先在本地运行centos容器然后运行你的命令试试能否成功。

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#341
Please wait...
Page is in error, reload to recover