mirror of https://github.com/oxen-io/oxen-mq.git
drone: quiet/optimize image setup
This commit is contained in:
parent
0d0ed8efa9
commit
7695e770a7
|
@ -1,3 +1,6 @@
|
||||||
|
|
||||||
|
local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q ';
|
||||||
|
|
||||||
local debian_pipeline(name, image, arch='amd64', deps='g++ libsodium-dev libzmq3-dev', cmake_extra='', build_type='Release', extra_cmds=[], allow_fail=false) = {
|
local debian_pipeline(name, image, arch='amd64', deps='g++ libsodium-dev libzmq3-dev', cmake_extra='', build_type='Release', extra_cmds=[], allow_fail=false) = {
|
||||||
kind: 'pipeline',
|
kind: 'pipeline',
|
||||||
type: 'docker',
|
type: 'docker',
|
||||||
|
@ -10,10 +13,12 @@ local debian_pipeline(name, image, arch='amd64', deps='g++ libsodium-dev libzmq3
|
||||||
image: image,
|
image: image,
|
||||||
[if allow_fail then "failure"]: "ignore",
|
[if allow_fail then "failure"]: "ignore",
|
||||||
commands: [
|
commands: [
|
||||||
'apt-get update',
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
||||||
'apt-get install -y eatmydata',
|
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections',
|
||||||
'eatmydata apt-get dist-upgrade -y',
|
apt_get_quiet + 'update',
|
||||||
'eatmydata apt-get install -y cmake git ninja-build pkg-config ccache ' + deps,
|
apt_get_quiet + 'install -y eatmydata',
|
||||||
|
'eatmydata ' + apt_get_quiet + 'dist-upgrade -y',
|
||||||
|
'eatmydata ' + apt_get_quiet + 'install -y cmake git ninja-build pkg-config ccache ' + deps,
|
||||||
'git submodule update --init --recursive',
|
'git submodule update --init --recursive',
|
||||||
'mkdir build',
|
'mkdir build',
|
||||||
'cd build',
|
'cd build',
|
||||||
|
|
Loading…
Reference in New Issue