mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-17 10:37:05 +03:00
ci docker image steps
This commit is contained in:
parent
6fa984f883
commit
51e8d6de6a
@ -121,7 +121,7 @@ local Pipeline(branch, platform, event) = {
|
||||
status: ['success', 'failure'],
|
||||
},
|
||||
},
|
||||
regressionlog: {
|
||||
regressionlog:: {
|
||||
name: 'regressionlog',
|
||||
image: 'docker',
|
||||
volumes: [pipeline._volumes.docker],
|
||||
@ -137,6 +137,47 @@ local Pipeline(branch, platform, event) = {
|
||||
status: ['success', 'failure'],
|
||||
},
|
||||
},
|
||||
dockerfile:: {
|
||||
name: 'dockerfile',
|
||||
image: 'docker:git',
|
||||
volumes: [pipeline._volumes.docker],
|
||||
commands: [
|
||||
'git clone --depth 1 https://github.com/mariadb-corporation/mariadb-community-columnstore-docker.git',
|
||||
'cd mariadb-community-columnstore-docker',
|
||||
'apk add --no-cache patch',
|
||||
'patch Dockerfile ../Dockerfile.patch',
|
||||
'cp ../result/MariaDB-common-10* ../result/MariaDB-client-10* ../result/MariaDB-server-10* ../result/MariaDB-shared-10* ../result/MariaDB-columnstore-engine-10* ./',
|
||||
],
|
||||
},
|
||||
ecr:: {
|
||||
name: 'ecr',
|
||||
image: 'plugins/ecr',
|
||||
settings: {
|
||||
registry: '866067714787.dkr.ecr.us-east-1.amazonaws.com',
|
||||
repo: 'columnstore',
|
||||
create_repository: 'true',
|
||||
context: 'mariadb-community-columnstore-docker',
|
||||
access_key: {
|
||||
from_secret: 'ecr_access_key',
|
||||
},
|
||||
secret_key: {
|
||||
from_secret: 'ecr_secret_key'
|
||||
},
|
||||
},
|
||||
},
|
||||
docker:: {
|
||||
name: 'docker',
|
||||
image: 'plugins/docker',
|
||||
settings: {
|
||||
repo: 'romcheck/columnstore',
|
||||
context: '/drone/src/mariadb-community-columnstore-docker',
|
||||
dockerfile: '/drone/src/mariadb-community-columnstore-docker/Dockerfile',
|
||||
username: 'romcheck',
|
||||
password: {
|
||||
from_secret: 'dockerhub_token',
|
||||
}
|
||||
},
|
||||
},
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: std.join(' ', [branch, platform, event]),
|
||||
@ -229,6 +270,9 @@ local Pipeline(branch, platform, event) = {
|
||||
},
|
||||
},
|
||||
] +
|
||||
(if (platform == 'centos:8' && event == 'cron') then [pipeline.dockerfile] else []) +
|
||||
(if (platform == 'centos:8' && event == 'cron') then [pipeline.docker] else []) +
|
||||
// (if (platform == 'centos:8' && event == 'cron') then [pipeline.ecr] else []) +
|
||||
(if branch == 'develop' then [pipeline.smoke] else []) +
|
||||
(if branch == 'develop' then [pipeline.smokelog] else []) +
|
||||
(if branch == 'develop' then [pipeline.regression] else []) +
|
||||
|
8
Dockerfile.patch
Normal file
8
Dockerfile.patch
Normal file
@ -0,0 +1,8 @@
|
||||
45,48c45,46
|
||||
< # Install MariaDB/ColumnStore packages
|
||||
< RUN dnf -y install \
|
||||
< MariaDB-server \
|
||||
< MariaDB-columnstore-engine
|
||||
---
|
||||
> COPY *.rpm /
|
||||
> RUN dnf -y install /*.rpm && rm -f /*.rpm
|
Loading…
x
Reference in New Issue
Block a user