2019-02-21 09:21:20 +00:00
|
|
|
# Since right now we can't set volumes to the docker during build, we split building container in stages:
|
|
|
|
# 1. build base container
|
|
|
|
# 2. run base conatiner with mounted volumes
|
|
|
|
# 3. commit container as image
|
|
|
|
FROM ubuntu:18.10 as clickhouse-test-runner-base
|
2019-02-11 07:57:51 +00:00
|
|
|
|
2019-02-21 09:21:20 +00:00
|
|
|
# A volume where directory with clickhouse packages to be mounted,
|
|
|
|
# for later installing.
|
|
|
|
VOLUME /packages
|
2019-02-11 07:57:51 +00:00
|
|
|
|
2019-02-21 09:21:20 +00:00
|
|
|
CMD apt-get update ;\
|
2019-02-11 07:57:51 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt install -y /packages/clickhouse-common-static_*.deb \
|
|
|
|
/packages/clickhouse-client_*.deb \
|
2019-02-21 09:21:20 +00:00
|
|
|
/packages/clickhouse-test_*.deb
|