2019-02-08 07:12:28 -05:00
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
## Build
2020-01-03 12:33:19 -05:00
From the root of the repo, run `docker build -t apache/druid:tag -f distribution/docker/Dockerfile .`
2019-02-08 07:12:28 -05:00
## Run
2019-08-06 11:32:59 -04:00
Edit `environment` to suite. Run `docker-compose -f distribution/docker/docker-compose.yml up`
2019-03-20 11:33:28 -04:00
2020-02-14 00:24:45 -05:00
## Java 11 (experimental)
From the root of the repo, run `docker build -t apache/druid:tag -f distribution/docker/Dockerfile.java11 .` which will build Druid to run in a Java 11 environment.
2019-08-06 11:32:59 -04:00
## MySQL Database Connector
2019-03-20 11:33:28 -04:00
2019-08-13 11:33:06 -04:00
This image contains solely the postgres metadata storage connector. If you
need the mysql metadata storage connector, you can use Dockerfile.mysql to add
it to the base image above.
2019-03-20 11:33:28 -04:00
2020-01-03 12:33:19 -05:00
`docker build -t apache/druid:tag-mysql --build-arg DRUID_RELEASE=apache/druid:tag -f distribution/docker/Dockerfile.mysql .`
2019-03-20 11:33:28 -04:00
2019-08-13 11:33:06 -04:00
where `druid:tag` is the version to use as the base.