Linux/alpine:修订间差异
来自康健生活
< Linux
| 第11行: | 第11行: | ||
apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm</syntaxhighlight>|$|/home/kangkk}} | apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm</syntaxhighlight>|$|/home/kangkk}} | ||
在 drone 中配置,eq: | 在 drone 中配置,eq: | ||
{{Hc|.drone.yml|< | {{Hc|.drone.yml|<pre> | ||
steps: | steps: | ||
- name: build-plugin-ps | - name: build-plugin-ps | ||
| 第18行: | 第18行: | ||
ELECTRON_MIRROR: http://npm.taobao.org/mirrors/electron/ | ELECTRON_MIRROR: http://npm.taobao.org/mirrors/electron/ | ||
commands: | commands: | ||
- apk update && apk --no-cache add git openssh python2 bash autoconf</ | - apk update && apk --no-cache add git openssh python2 bash autoconf</pre>}} | ||
=== 参考 === | === 参考 === | ||
https://pkgs.alpinelinux.org/packages | https://pkgs.alpinelinux.org/packages | ||
2021年12月20日 (一) 03:45的版本
start
package
apk
安装指定版本的软件。
/home/kangkk
apk add packagename=1.1.1-r0
#
apk add "packagename>1.1.1-r0"
eq:
/home/kangkk
apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm
在 drone 中配置,eq:
.drone.yml
steps:
- name: build-plugin-ps
image: node:14.18.1-alpine
environment:
ELECTRON_MIRROR: http://npm.taobao.org/mirrors/electron/
commands:
- apk update && apk --no-cache add git openssh python2 bash autoconf参考
No categories