如何定义弹性beanstalk的linux实例所需的自定义包?有没有办法安装它们一次,并创建一个图像,以复制其他实例旋转?
这里是我正在使用的nodejs包。
{"dependencies": {
"sails": "0.9.9",
"grunt": "0.4.1",
"sails-disk": "~0.9.0",
"ejs": "0.8.4",
"optimist": "0.3.4",
"jsdom": "0.8.6",
"request": "*",
"validator": "~3.1.0",
"bcrypt": "0.7.7",
"q": "*",
"node-uuid": "*",
"async": "~0.2.10",
"nodemailer": "~0.6.0",
"aws-sdk": "~2.0.0-rc10",
"imagemagick-native": "~0.2.9",
"orchestrate": "0.0.8",
"newrelic": "~1.3.2"
}}
答案 0 :(得分:0)
配置文件是您所需要的。我想到了。
您需要在应用的顶层设置.ebextensions /。然后将myapp.config放在ebtextensions目录中。
这是我安装软件包
的内容packages:
yum:
ImageMagick : ""
bison : ""
byacc : ""
cscope: ""
ctags: ""
cvs: ""
diffstat: ""
doxygen: ""
flex: ""
gcc: ""
gcc-c++: ""
gcc-gfortran: ""
gettext: ""
git: ""
indent: ""
intltool: ""
libtool: ""
patch: ""
patchutils: ""
rcs: ""
rpm-build: ""
subversion: ""
swig: ""
systemtap: ""
openssl-devel: ""
ImageMagick-c++: ""
ImageMagick-c++-devel: ""
crash: ""
kexec-tools: ""
latrace: ""
ltrace: ""
strace: ""
system-rpm-config: ""
texinfo: ""
valgrind: ""
busybox: ""