Skip to content

Commit

Permalink
Merge branch 'master' into graceful_bq_partition_id_failure
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es authored Jul 13, 2022
2 parents 7763f32 + 4c6d427 commit 00dae79
Show file tree
Hide file tree
Showing 35 changed files with 801 additions and 145 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-ingestion-base.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ingestion base
on:
release:
types: [published, edited]
push:
branches:
- master
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/docker-ingestion-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ingestion smoke
on:
release:
types: [published, edited]
push:
branches:
- master
paths:
- "docker/datahub-ingestion/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

build-smoke:
name: Build and Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.ACRYL_DOCKER_USERNAME }}
password: ${{ secrets.ACRYL_DOCKER_PASSWORD }}
- name: Build and Push image
uses: docker/build-push-action@v2
with:
context: ./docker/datahub-ingestion
file: ./docker/datahub-ingestion/smoke.Dockerfile
platforms: linux/amd64,linux/arm64
tags: acryldata/datahub-ingestion-base:smoke
push: true
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Props = {

export default function ViewInviteTokenModal({ visible, onClose }: Props) {
const baseUrl = window.location.origin;
const { data: getNativeUserInviteTokenData } = useGetNativeUserInviteTokenQuery({});
const { data: getNativeUserInviteTokenData } = useGetNativeUserInviteTokenQuery({ skip: !visible });

const [createNativeUserInviteToken, { data: createNativeUserInviteTokenData }] =
useCreateNativeUserInviteTokenMutation({});
Expand Down
3 changes: 2 additions & 1 deletion docker/datahub-ingestion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ ARG RELEASE_VERSION
RUN cd /datahub-ingestion && \
sed -i.bak "s/__version__ = \"0.0.0.dev0\"/__version__ = \"$RELEASE_VERSION\"/" src/datahub/__init__.py && \
cat src/datahub/__init__.py && \
pip install ".[all]"
pip install ".[all]" && \
pip freeze

FROM base as dev-install
# Dummy stage for development. Assumes code is built on your machine and mounted to this image.
Expand Down
1 change: 1 addition & 0 deletions docker/datahub-ingestion/base-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
acryl-datahub
absl-py==1.1.0
acryl-iceberg-legacy==0.0.4
acryl-PyHive==0.6.13
Expand Down
3 changes: 2 additions & 1 deletion docker/datahub-ingestion/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ RUN apt-get update && apt-get install -y \

COPY ./base-requirements.txt requirements.txt

RUN pip install -r requirements.txt
RUN pip install -r requirements.txt && \
pip uninstall -y acryl-datahub
18 changes: 18 additions & 0 deletions docker/datahub-ingestion/smoke.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM acryldata/datahub-ingestion-base as base

RUN apt-get update && apt-get install -y \
sudo \
python3-dev \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk
2 changes: 1 addition & 1 deletion docker/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
env_file: mysql/env/docker.env
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
ports:
- "3306:3306"
- ${DATAHUB_MAPPED_MYSQL_PORT:-3306}:3306
volumes:
- ./mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- mysqldata:/var/lib/mysql
Expand Down
17 changes: 8 additions & 9 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
- ${DATAHUB_MAPPED_ZK_PORT:-2181}:2181
volumes:
- zkdata:/var/opt/zookeeper

Expand All @@ -24,8 +24,7 @@ services:
depends_on:
- zookeeper
ports:
- "29092:29092"
- "9092:9092"
- ${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}:9092
volumes:
- broker:/var/lib/kafka/data/

Expand All @@ -50,15 +49,15 @@ services:
- zookeeper
- broker
ports:
- "8081:8081"
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081

elasticsearch:
image: elasticsearch:7.9.3
env_file: elasticsearch/env/docker.env
container_name: elasticsearch
hostname: elasticsearch
ports:
- "9200:9200"
- ${DATAHUB_MAPPED_ELASTIC_PORT:-9200}:9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false
Expand All @@ -75,8 +74,8 @@ services:
hostname: neo4j
container_name: neo4j
ports:
- "7474:7474"
- "7687:7687"
- ${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}:7474
- ${DATAHUB_MAPPED_NEO4J_BOLT_PORT:-7687}:7687
volumes:
- neo4jdata:/data

Expand All @@ -100,7 +99,7 @@ services:
hostname: datahub-gms
container_name: datahub-gms
ports:
- "8080:8080"
- ${DATAHUB_MAPPED_GMS_PORT:-8080}:8080
depends_on:
- elasticsearch-setup
- kafka-setup
Expand All @@ -116,7 +115,7 @@ services:
hostname: datahub-frontend-react
container_name: datahub-frontend-react
ports:
- "9002:9002"
- ${DATAHUB_MAPPED_FRONTEND_PORT:-9002}:9002
depends_on:
- datahub-gms
volumes:
Expand Down
15 changes: 7 additions & 8 deletions docker/quickstart/docker-compose-without-neo4j-m1.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ services:
hostname: broker
image: kymeric/cp-kafka:latest
ports:
- 29092:29092
- 9092:9092
- ${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}:9092
datahub-actions:
depends_on:
- datahub-gms
Expand Down Expand Up @@ -57,7 +56,7 @@ services:
hostname: datahub-frontend-react
image: linkedin/datahub-frontend-react:${DATAHUB_VERSION:-head}
ports:
- 9002:9002
- ${DATAHUB_MAPPED_FRONTEND_PORT:-9002}:9002
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
datahub-gms:
Expand Down Expand Up @@ -86,7 +85,7 @@ services:
hostname: datahub-gms
image: linkedin/datahub-gms:${DATAHUB_VERSION:-head}
ports:
- 8080:8080
- ${DATAHUB_MAPPED_GMS_PORT:-8080}:8080
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
elasticsearch:
Expand All @@ -106,7 +105,7 @@ services:
image: elasticsearch:7.9.3
mem_limit: 1g
ports:
- 9200:9200
- ${DATAHUB_MAPPED_ELASTIC_PORT:-9200}:9200
volumes:
- esdata:/usr/share/elasticsearch/data
elasticsearch-setup:
Expand Down Expand Up @@ -140,7 +139,7 @@ services:
hostname: mysql
image: mariadb:10.5.8
ports:
- 3306:3306
- ${DATAHUB_MAPPED_MYSQL_PORT:-3306}:3306
volumes:
- ../mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- mysqldata:/var/lib/mysql
Expand All @@ -167,7 +166,7 @@ services:
hostname: schema-registry
image: eugenetea/schema-registry-arm64:latest
ports:
- 8081:8081
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081
zookeeper:
container_name: zookeeper
environment:
Expand All @@ -176,7 +175,7 @@ services:
hostname: zookeeper
image: kymeric/cp-zookeeper:latest
ports:
- 2181:2181
- ${DATAHUB_MAPPED_ZK_PORT:-2181}:2181
volumes:
- zkdata:/var/opt/zookeeper
version: '2.3'
Expand Down
19 changes: 9 additions & 10 deletions docker/quickstart/docker-compose.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ services:
hostname: broker
image: confluentinc/cp-kafka:5.4.0
ports:
- 29092:29092
- 9092:9092
- ${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}:9092
volumes:
- broker:/var/lib/kafka/data/
datahub-actions:
Expand Down Expand Up @@ -59,7 +58,7 @@ services:
hostname: datahub-frontend-react
image: linkedin/datahub-frontend-react:${DATAHUB_VERSION:-head}
ports:
- 9002:9002
- ${DATAHUB_MAPPED_FRONTEND_PORT:-9002}:9002
volumes:
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
datahub-gms:
Expand Down Expand Up @@ -94,7 +93,7 @@ services:
hostname: datahub-gms
image: linkedin/datahub-gms:${DATAHUB_VERSION:-head}
ports:
- 8080:8080
- ${DATAHUB_MAPPED_GMS_PORT:-8080}:8080
volumes:
- ${HOME}/.datahub/plugins/:/etc/datahub/plugins
elasticsearch:
Expand All @@ -114,7 +113,7 @@ services:
image: elasticsearch:7.9.3
mem_limit: 1g
ports:
- 9200:9200
- ${DATAHUB_MAPPED_ELASTIC_PORT:-9200}:9200
volumes:
- esdata:/usr/share/elasticsearch/data
elasticsearch-setup:
Expand Down Expand Up @@ -148,7 +147,7 @@ services:
hostname: mysql
image: mysql:5.7
ports:
- 3306:3306
- ${DATAHUB_MAPPED_MYSQL_PORT:-3306}:3306
volumes:
- ../mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- mysqldata:/var/lib/mysql
Expand All @@ -173,8 +172,8 @@ services:
hostname: neo4j
image: neo4j:4.0.6
ports:
- 7474:7474
- 7687:7687
- ${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}:7474
- ${DATAHUB_MAPPED_NEO4J_BOLT_PORT:-7687}:7687
volumes:
- neo4jdata:/data
schema-registry:
Expand All @@ -188,7 +187,7 @@ services:
hostname: schema-registry
image: confluentinc/cp-schema-registry:5.4.0
ports:
- 8081:8081
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081
zookeeper:
container_name: zookeeper
environment:
Expand All @@ -197,7 +196,7 @@ services:
hostname: zookeeper
image: confluentinc/cp-zookeeper:5.4.0
ports:
- 2181:2181
- ${DATAHUB_MAPPED_ZK_PORT:-2181}:2181
volumes:
- zkdata:/var/opt/zookeeper
version: '2.3'
Expand Down
Loading

0 comments on commit 00dae79

Please sign in to comment.