node
wo-wo-wo
互联网SaaS平台,995搬砖
展开
-
node.js + egg.js+pupepteer 通过docker打包镜像 脚本
FROM xxxxxx/node-puppeteer:latestENV NODE_ENV=productionRUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo 'Asia/Shanghai' >/etc/timezoneCOPY fonts/* /usr/share/fonts/WORKDIR /appCOPY release.tgz /app/RUN tar -xvf.原创 2020-12-04 16:13:03 · 500 阅读 · 0 评论 -
用node:12 制作一个puppeteer的私有镜像
业务场景:通过node.js + puppeteer 框架进行无界面化浏览器截图puppeteer 参考资料:https://github.com/puppeteer/puppeteer参考资料:https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.mdhttps://github.com/puppeteer/puppeteerhttps://medium.com/@christopher.talke.原创 2020-12-03 15:53:17 · 595 阅读 · 0 评论 -
jenkins编写
pipeline { agent any stages { stage('build-prod') { when { branch 'master' } agent { docker { image 'node:6.3.0' reuseNode ...原创 2019-05-14 21:09:47 · 260 阅读 · 0 评论 -
通过脚本构建docker镜像(第一个为脚本第二个为dockerfile)
#!/bin/bash#Program:在使用此脚本时要检查是系统是否安装环境变量否则会出现失败!#History:2019-03-06echo "**************************(1)*************************************"echo "----->准备开始"echo "----->xxx系统" $(pwd)ec...原创 2019-05-14 21:14:56 · 321 阅读 · 0 评论