Linux/alpine:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第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:
{{shc|<syntaxhighlight lang="xml">
{{Hc|.drone.yml|<syntaxhighlight lang="yml">
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</syntaxhighlight>|$|/home/kangkk}}
   - apk update && apk --no-cache add git openssh python2 bash autoconf</syntaxhighlight>}}
 
=== 参考 ===
=== 参考 ===
https://pkgs.alpinelinux.org/packages
https://pkgs.alpinelinux.org/packages

2021年12月20日 (一) 03:44的版本

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

参考

https://pkgs.alpinelinux.org/packages