Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion 0.1.7 - Docs.rs
[go: Go Back, main page]

datafusion 0.1.7

DataFusion is a datasource-agnostic distributed query processing framework for Rust inspired by Apache Spark
Documentation
#!/usr/bin/env bash
#
# Build file for the Dockerfile

set -e

# DOCKER_REPOSITORY is the master repository where the docker image will be referenced and stored.  Defaults to "datafusionrs"
DOCKER_REPOSITORY="${DOCKER_REPOSITORY:-datafusionrs}"

# Note: Setting DOCKER_PUSH to "true" outside of this script will cause the docker container to push to a repository.
DOCKER_PUSH="${DOCKER_PUSH:-false}"

# Build the final release candidate, create a docker container from it.  Only builds for x86_6_64-unknown-linux-musl target.
if [ -f "target/release/console" ]; then 
  # DATAFUSION_VERSION is the current version of the docker image.
  DATAFUSION_VERSION=`target/release/console --version | awk -F' ' '{ print $3 }'`

  # DOCKER_TAG is the combined tag from the docker repository and version.  Defaults to (repository)/datafusion:(version)
  DOCKER_TAG="${DOCKER_TAG:-${DOCKER_REPOSITORY}/datafusion:${DATAFUSION_VERSION}-SNAPSHOT}"

  docker build -f scripts/docker/Dockerfile -t "${DOCKER_TAG}" .

  echo "Building docker: ${DOCKER_TAG}"
  echo

  docker push "${DOCKER_TAG}"
else
  echo "Skipping Docker release."
fi