forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from CybercentreCanada/feature/cccs-main-cccs-…
…1.2-update Feature/cccs main cccs 1.2 update
- Loading branch information
Showing
153 changed files
with
5,323 additions
and
2,617 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- cccs-* | ||
- feature/CLDN-* | ||
paths: | ||
include: | ||
- '*' | ||
exclude: | ||
- cccs-build/superset | ||
|
||
variables: | ||
containerRegistry: uchimera | ||
imageRepository: cccs/superset-base | ||
dockerfile: $(Build.SourcesDirectory)/Dockerfile | ||
buildTimestamp: $[format('{0:yyyyMMddHHmmss}', pipeline.startTime)] | ||
DOCKER_BUILDKIT: 1 | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- bash: | | ||
BRANCH_NAME=$(echo "$SYSTEM_PULLREQUEST_SOURCEBRANCH $BUILD_SOURCEBRANCH" | sed -r 's/^\s*(refs\/heads\/)?(\S*).*$/\2/' | sed 's/\//_/g') | ||
echo "##vso[task.setvariable variable=BRANCH_NAME]$BRANCH_NAME" | ||
displayName: Parse Source Control Branch Name | ||
- task: Docker@2 | ||
displayName: Build and push an image to container registry | ||
inputs: | ||
command: buildAndPush | ||
containerRegistry: $(containerRegistry) | ||
repository: $(imageRepository) | ||
dockerfile: $(dockerfile) | ||
tags: | | ||
$(BRANCH_NAME) | ||
$(BRANCH_NAME)_$(buildTimestamp)_b$(Build.BuildId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM uchimera.azurecr.io/cccs/superset-base:cccs-1.2_20210817193416_b1800 | ||
|
||
USER root | ||
|
||
COPY requirements.txt /tmp | ||
|
||
ARG BUILD_NUMBER=0-development | ||
RUN sed -i '/^VERSION_SHA_LENGTH = .*/i # CCCS Superset Azure pipeline injection\nBUILD_NUMBER = '${BUILD_NUMBER}'\n' /app/superset/config.py \ | ||
&& pip install --no-cache-dir -r /tmp/requirements.txt \ | ||
&& rm /tmp/requirements.txt | ||
|
||
USER superset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- cccs-* | ||
- feature/CLDN-* | ||
paths: | ||
include: | ||
- cccs-build/superset | ||
|
||
variables: | ||
containerRegistry: uchimera | ||
imageRepository: cccs/superset | ||
dockerfile: $(Build.SourcesDirectory)/cccs-build/superset/Dockerfile | ||
buildTimestamp: $[format('{0:yyyyMMddHHmmss}', pipeline.startTime)] | ||
DOCKER_BUILDKIT: 1 | ||
|
||
steps: | ||
- bash: | | ||
BRANCH_NAME=$(echo "$SYSTEM_PULLREQUEST_SOURCEBRANCH $BUILD_SOURCEBRANCH" | sed -r 's/^\s*(refs\/heads\/)?(\S*).*$/\2/' | sed 's/\//_/g') | ||
echo "##vso[task.setvariable variable=BRANCH_NAME]$BRANCH_NAME" | ||
displayName: Parse Source Control Branch Name | ||
- task: Docker@2 | ||
displayName: Login to $(containerRegistry) | ||
inputs: | ||
command: login | ||
containerRegistry: $(containerRegistry) | ||
|
||
- task: Docker@2 | ||
displayName: Build the image | ||
inputs: | ||
command: build | ||
containerRegistry: $(containerRegistry) | ||
repository: $(imageRepository) | ||
dockerfile: $(dockerfile) | ||
arguments: --build-arg BUILD_NUMBER=$(Build.BuildNumber) | ||
tags: | | ||
$(BRANCH_NAME) | ||
$(BRANCH_NAME)_$(buildTimestamp)_b$(Build.BuildId) | ||
- task: Docker@2 | ||
displayName: Push the image to $(containerRegistry) | ||
inputs: | ||
command: push | ||
containerRegistry: $(containerRegistry) | ||
repository: $(imageRepository) | ||
tags: | | ||
$(BRANCH_NAME) | ||
$(BRANCH_NAME)_$(buildTimestamp)_b$(Build.BuildId) | ||
- task: Docker@2 | ||
displayName: Logout of $(containerRegistry) | ||
inputs: | ||
command: logout | ||
containerRegistry: $(containerRegistry) | ||
condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Required for OAuth | ||
authlib==0.15.4 | ||
|
||
# Required for our custom logger | ||
python-json-logger==2.0.2 | ||
|
||
# Additional drivers for Superset (or SQLAlchemy) to use | ||
sqlalchemy-trino==0.3.0 | ||
mysql-connector-python==8.0.26 | ||
elasticsearch-dbapi==0.2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.