Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert 10 16 2024 #42

Closed
wants to merge 123 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
38a06c7
Autoformat hyperlinks in Slack alerts (#6845)
eradman Apr 3, 2024
702a550
Handle timedelta in query results (#6846)
wlach Apr 3, 2024
a0f5c70
Remove Qubole query runner (#6848)
eradman Apr 3, 2024
4eb5f4e
Remove version check and all of the data sharing (#6852)
justinclift Apr 5, 2024
15e6583
Automatically use the latest version of PostgreSQL (#6851)
justinclift Apr 5, 2024
af0773c
Update "make clean" to remove Redash dev Docker images (#6847)
justinclift Apr 7, 2024
82d88ed
Bump gunicorn from 20.0.4 to 21.2.0 (#6856)
bluetech Apr 7, 2024
24dec19
Update yarn to current latest in 1.22.x series (#6858)
justinclift Apr 8, 2024
3f19534
reuse built frontend in ci, merge compose files (#6674)
AndrewChubatiuk Apr 10, 2024
f631075
reverted e2e secrets (#6867)
AndrewChubatiuk Apr 10, 2024
34cde71
fix percy for a branch (#6868)
AndrewChubatiuk Apr 10, 2024
776703f
filter widget results to fix tests during repeatable execution (#6693)
AndrewChubatiuk Apr 10, 2024
d7247f8
use default docker repo name if variable is not defined (#6870)
AndrewChubatiuk Apr 10, 2024
cb07071
Bump tar from 6.1.15 to 6.2.1 (#6866)
dependabot[bot] Apr 10, 2024
95ecb8e
fix for coverage (#6872)
AndrewChubatiuk Apr 11, 2024
45c6fa0
Bump idna from 3.6 to 3.7 (#6878)
dependabot[bot] Apr 12, 2024
9601660
Update Node image in Dockerfile to 18-bookworm
justinclift Apr 12, 2024
77d7508
fixed local setup to run on ARM64 (#6877)
AndrewChubatiuk Apr 12, 2024
275e12e
fix: unquote values in compose (#6882)
AndrewChubatiuk Apr 12, 2024
6d64127
Bump python-oracledb from 2.0.1 to 2.1.2 (#6881)
snickerjp Apr 12, 2024
c12d450
show pg and athena column comments and table descriptions as antd too…
AndrewChubatiuk Apr 12, 2024
062a70c
Change default webUI port back to 5001 (#6883)
justinclift Apr 12, 2024
b9875a2
Improve the text displayed when using the command line (#6884)
justinclift Apr 13, 2024
4034f79
Bump pymongo from 4.3.3 to 4.6.3 (#6863)
dependabot[bot] Apr 13, 2024
70bb684
Bump dnspython from 2.4.2 to 2.6.1 (#6886)
dependabot[bot] Apr 13, 2024
713aca4
Extend `make up` to automatically initialise the database (#6855)
justinclift Apr 13, 2024
3dd855a
Bump sqlparse from 0.4.4 to 0.5.0 (#6895)
dependabot[bot] Apr 16, 2024
2ffeecb
fix: aws elasticsearch typo (#6899)
AndrewChubatiuk Apr 17, 2024
991e94d
Bump gunicorn from 21.2.0 to 22.0.0 (#6900)
dependabot[bot] Apr 17, 2024
7e8a61c
Rq upgrade (#6902)
AndrewChubatiuk Apr 17, 2024
6c68b48
Add pydeps Makefile target for installing Python dependencies (#6890)
justinclift Apr 18, 2024
e2a39de
Remove workaround from check_csrf() (#6919)
eradman Apr 23, 2024
5e4764a
bugfix: unable to parse elasticsearch index mappings (#6918)
stankovic-marko Apr 23, 2024
5ac5d86
consistent rq status naming and handling (#6913)
AndrewChubatiuk Apr 24, 2024
1c48b22
Update widgets.py (#6926)
gaecoli Apr 24, 2024
3399e37
mssql-odbc-arm64 (#6924)
AndrewChubatiuk Apr 24, 2024
84e6d3c
Use staticPath var to fetch unsupportedRedirect.js (#6923)
eradman Apr 24, 2024
f097603
aggregate Y column values rather than displaying last Y value (#6908)
lvitti Apr 25, 2024
0624471
Flatten all level for MongoDB data source (#6844)
KimBioInfoStudio Apr 25, 2024
dbab9ca
Source .env when running docker containers (#6927)
eradman Apr 25, 2024
372adfe
Downgrade 'codecov-action' version from v4 to v3 (#6930)
lucydodo Apr 26, 2024
2b974e1
Snapshot: 24.05.0-dev
invalid-email-address May 1, 2024
897c683
pgautoupgrade now does multi-arch builds (#6939)
justinclift May 1, 2024
b7f22b1
Fix 'str' object has no attribute 'pop' error when parsing query (#6941)
jcowley May 2, 2024
bd17662
Fixed error serialization (#6937)
AndrewChubatiuk May 2, 2024
bd115e7
Remove deprecated advocate package (#6944)
AndrewChubatiuk May 6, 2024
62890c3
Revert "Remove deprecated advocate package (#6944)"
justinclift May 6, 2024
4569191
Bump jinja2 from 3.1.3 to 3.1.4 (#6951)
dependabot[bot] May 6, 2024
1b946b5
sync .nvmrc with workflow (#6958)
ehooi May 10, 2024
753ea84
Revert CI workflow (1 of 2) (#6965)
eradman May 14, 2024
58cc49b
Revert build (2 of 2) (#6967)
eradman May 14, 2024
408ba78
Update MSSQL OBDC driver to v18 (#6968)
eradman May 14, 2024
f3a3236
Bump pyodbc from 4.0.28 to 5.1.0 (#6962)
ehooi May 14, 2024
c874eb6
Revert changes to job status (#6969)
eradman May 15, 2024
10a46fd
Revert "show pg and athena column comments and table descriptions as …
eradman May 16, 2024
bd4ba96
Typo fix in message (#6979)
justinclift May 18, 2024
60d3c66
Merge pull request from GHSA-32fw-wc7f-7qg9
arikfr May 18, 2024
ec051a8
--- (#6981)
dependabot[bot] May 21, 2024
60a12e9
Snapshot: 24.06.0-dev
invalid-email-address Jun 1, 2024
70dd059
ci: bot identity correction (#6997)
lucasfcnunes Jun 1, 2024
bceaab0
Update to Python 3.10 (#6991)
ezraodio1 Jun 5, 2024
17fe69f
PG: Only list tables where schema has USAGE permission (#7000)
eradman Jun 6, 2024
01e036d
Bump urllib3 from 1.26.18 to 1.26.19 (#7020)
dependabot[bot] Jun 18, 2024
a6c728b
Bump ws from 5.2.3 to 5.2.4 (#7021)
dependabot[bot] Jun 18, 2024
4cb32fc
Map() implementation fix for chart labels (#7022)
ezraodio1 Jun 18, 2024
db4fdd0
Snapshot: 24.07.0-dev
github-actions[bot] Jul 1, 2024
76b5a30
Bump ws from 5.2.3 to 5.2.4 in /viz-lib (#7040)
dependabot[bot] Jul 1, 2024
0056aa6
Bump certifi from 2023.11.17 to 2024.7.4 (#7047)
dependabot[bot] Jul 8, 2024
a37ef3b
Fixed frontend test deprecation warnings (#7013)
ezraodio1 Jul 8, 2024
28c3921
Update requests module to 2.32.2 (#7053)
eradman Jul 11, 2024
d9282b2
Add usedforsecurity=False flag to md5 hashes (#7049)
ezraodio1 Jul 11, 2024
dd1a9b9
Bump zipp from 3.17.0 to 3.19.1 (#7051)
dependabot[bot] Jul 12, 2024
77f108d
Bump requests to 2.32.3 (#7057)
justinclift Jul 15, 2024
57a79bc
Bump setuptools from 69.0.3 to 70.0.0 (#7060)
dependabot[bot] Jul 15, 2024
ebb0e2c
Adding ability to fix table columns in place (#7019)
ezraodio1 Jul 17, 2024
8fc4ce1
Conditionally render tooltip for Edit alert button (#7054)
ezraodio1 Jul 18, 2024
4114227
Remove defaults set during schema upgrade/downgrade (#7068)
ezraodio1 Jul 18, 2024
d2745e5
Add a label for Restyler's PR and Bump component version (#7037)
lucydodo Jul 18, 2024
80f7ba1
Added option to toggle sort on pie charts (#7055)
ezraodio1 Jul 22, 2024
c244e75
Support Arbitrary Catalog IDs on Athena Data Source (#7059)
dtaniwaki Jul 24, 2024
a69f7fb
Add new text pattern parameter (#7025)
ezraodio1 Jul 24, 2024
a9c9f08
Snapshot: 24.08.0-dev
github-actions[bot] Aug 1, 2024
714b950
Match FROM and AS capitalisation in Dockerfile (#7093)
justinclift Aug 1, 2024
ea0b3cb
Add the asdf .tool-versions file to .gitignore (#7095)
justinclift Aug 1, 2024
8725fa4
Add support for 'linux/arm64' platforms (#7094)
lucydodo Aug 1, 2024
fc1e1f7
Add min/max/first selector for alerts (#7076)
ezraodio1 Aug 1, 2024
660d04b
Adding Evaluate button for alerts to test them (#7032)
ezraodio1 Aug 1, 2024
86b75db
get data size in memory for better logs (#7090)
zachliu Aug 1, 2024
ed8c05f
Fix columns duplication on MongoDB Query Runner #6640 (#6641)
masayuki038 Aug 1, 2024
ec70ff4
Bump cryptography to 42.0.x & snowflake-connector-python to 3.12.0 (#…
justinclift Aug 1, 2024
5257e39
Revert "Removed unused configuration class (#6682)" (#7071)
eradman Aug 1, 2024
7220365
update rds trust (#7100)
arichtman-srt Aug 2, 2024
c1a60bf
Snapshot: 24.08.1-dev
github-actions[bot] Aug 2, 2024
e59c02f
Bump bootstrap to 3.4.1
justinclift Aug 2, 2024
a531597
Add the option to take new custom version for Snapshot (#7096)
lucydodo Aug 2, 2024
a2611b8
Fix a display order bug in MongoDB Query Runner (#7106)
masayuki038 Aug 3, 2024
51ef625
Fix alert evaluation logic and issue with calculating min and max of …
ezraodio1 Aug 5, 2024
a4f92a8
Add data type to redshift query runner (#7109)
zachliu Aug 5, 2024
b1fe2d4
Bump sentry-sdk from 1.28.1 to 2.8.0 (#7069)
dependabot[bot] Aug 6, 2024
285c2b6
Add data type to athena query runner (#7112)
zachliu Aug 7, 2024
9de135c
Add option to choose color scheme for charts (#7062)
ezraodio1 Aug 8, 2024
159a329
Bump elliptic to version 6.5.7 to fix a Dependabot warning (#7120)
justinclift Aug 14, 2024
c073c1e
Fix mismatched poetry version (#7122)
zachliu Aug 16, 2024
58a7438
Bump python-rapidjson to 1.20 (#7126)
justinclift Aug 20, 2024
79a4c4c
Revert "Adding ability to fix table columns in place (#7019)" (#7131)
eradman Aug 26, 2024
c25c65b
Bump webpack from 5.88.2 to 5.94.0 in /viz-lib (#7135)
dependabot[bot] Aug 31, 2024
3330815
Snapshot: 24.09.0-dev
github-actions[bot] Sep 1, 2024
a85b9d7
Update pymssql to fix some problems with macOS ARM64 (`2.3.1`) (#7140)
justinclift Sep 4, 2024
2ab07f9
Remove left over compose.base.yaml file (#7142)
justinclift Sep 6, 2024
76eeea1
Make schema refresh timeout configurable via env var (#7114)
zachliu Sep 9, 2024
821c1a9
Bump path-to-regexp from 3.2.0 to 3.3.0 (#7154)
dependabot[bot] Sep 12, 2024
d6c6e3b
Bump express from 4.19.2 to 4.21.0 (#7155)
dependabot[bot] Sep 12, 2024
75e1ce4
Bump body-parser from 1.20.1 to 1.20.3 (#7156)
dependabot[bot] Sep 12, 2024
fb1a056
Add REDASH_HOST to the docker compose file (#7157)
justinclift Sep 12, 2024
5cf0b7b
Better error msg for token validation (#7159)
zachliu Sep 14, 2024
79bbb24
Update `make up` to automatically initialise the db (#7161)
justinclift Sep 14, 2024
590d39b
Bump dompurify from 2.0.17 to 2.5.4 in /viz-lib (#7163)
dependabot[bot] Sep 17, 2024
c42b151
Automatically remove orphans when running make up (#7164)
justinclift Sep 17, 2024
38dc31a
Get rid of the strange looking 0 following "Running..." and "runtime"…
zachliu Sep 19, 2024
e4a841a
Snapshot: 24.10.0-dev
github-actions[bot] Oct 1, 2024
a03668f
Bump restrictedpython from 6.2 to 7.3 (#7181)
dependabot[bot] Oct 1, 2024
7c22756
Move restyled to a github action (#7191)
eradman Oct 16, 2024
a5b5843
Merge branch 'formsflow-merge' into revert-10-16-2024
kiran-aot Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/Dockerfile.cypress
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR $APP

COPY package.json yarn.lock .yarnrc $APP/
COPY viz-lib $APP/viz-lib
RUN npm install [email protected].19 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null
RUN npm install [email protected].22 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null

COPY . $APP

Expand Down
2 changes: 1 addition & 1 deletion .ci/compose.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
image: redis:7-alpine
restart: unless-stopped
postgres:
image: pgautoupgrade/pgautoupgrade:15-alpine3.8
image: pgautoupgrade/pgautoupgrade:latest
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped
environment:
Expand Down
2 changes: 1 addition & 1 deletion .ci/compose.cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ services:
image: redis:7-alpine
restart: unless-stopped
postgres:
image: pgautoupgrade/pgautoupgrade:15-alpine3.8
image: pgautoupgrade/pgautoupgrade:latest
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped
environment:
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
client/.tmp/
client/dist/
node_modules/
viz-lib/node_modules/
.tmp/
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- master
env:
NODE_VERSION: 18
YARN_VERSION: 1.22.22
jobs:
backend-lint:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
cache: 'yarn'
- name: Install Dependencies
run: |
npm install --global --force yarn@1.22.19
npm install --global --force yarn@$YARN_VERSION
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
- name: Run Lint
run: yarn lint:ci
Expand All @@ -115,7 +116,7 @@ jobs:
cache: 'yarn'
- name: Install Dependencies
run: |
npm install --global --force yarn@1.22.19
npm install --global --force yarn@$YARN_VERSION
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
- name: Run App Tests
run: yarn test
Expand Down Expand Up @@ -152,7 +153,7 @@ jobs:
echo "CODE_COVERAGE=true" >> "$GITHUB_ENV"
- name: Install Dependencies
run: |
npm install --global --force yarn@1.22.19
npm install --global --force yarn@$YARN_VERSION
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
- name: Setup Redash Server
run: |
Expand Down
81 changes: 69 additions & 12 deletions .github/workflows/periodic-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
name: Periodic Snapshot

# 10 minutes after midnight on the first of every month
on:
schedule:
- cron: "10 0 1 * *"
- cron: '10 0 1 * *' # 10 minutes after midnight on the first of every month
workflow_dispatch:
inputs:
bump:
description: 'Bump the last digit of the version'
required: false
type: boolean
version:
description: 'Specific version to set'
required: false
default: ''

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
actions: write
contents: write

jobs:
Expand All @@ -14,15 +27,59 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{secrets.ACTION_PUSH_KEY}}
ssh-key: ${{ secrets.ACTION_PUSH_KEY }}

- run: |
date="$(date +%y.%m).0-dev"
gawk -i inplace -F: -v q=\" -v tag=$date '/^ "version": / { print $1 FS, q tag q ","; next} { print }' package.json
gawk -i inplace -F= -v q=\" -v tag=$date '/^__version__ =/ { print $1 FS, q tag q; next} { print }' redash/__init__.py
gawk -i inplace -F= -v q=\" -v tag=$date '/^version =/ { print $1 FS, q tag q; next} { print }' pyproject.toml
git config user.name github-actions
git config user.email [email protected]
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'

# Function to bump the version
bump_version() {
local version="$1"
local IFS=.
read -r major minor patch <<< "$version"
patch=$((patch + 1))
echo "$major.$minor.$patch-dev"
}

# Determine the new version tag
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
BUMP_INPUT="${{ github.event.inputs.bump }}"
SPECIFIC_VERSION="${{ github.event.inputs.version }}"

# Check if both bump and specific version are provided
if [ "$BUMP_INPUT" = "true" ] && [ -n "$SPECIFIC_VERSION" ]; then
echo "::error::Error: Cannot specify both bump and specific version."
exit 1
fi

if [ -n "$SPECIFIC_VERSION" ]; then
TAG_NAME="$SPECIFIC_VERSION-dev"
elif [ "$BUMP_INPUT" = "true" ]; then
CURRENT_VERSION=$(grep '"version":' package.json | awk -F\" '{print $4}')
TAG_NAME=$(bump_version "$CURRENT_VERSION")
else
echo "No version bump or specific version provided for manual dispatch."
exit 1
fi
else
TAG_NAME="$(date +%y.%m).0-dev"
fi

echo "New version tag: $TAG_NAME"

# Update version in files
gawk -i inplace -F: -v q=\" -v tag=${TAG_NAME} '/^ "version": / { print $1 FS, q tag q ","; next} { print }' package.json
gawk -i inplace -F= -v q=\" -v tag=${TAG_NAME} '/^__version__ =/ { print $1 FS, q tag q; next} { print }' redash/__init__.py
gawk -i inplace -F= -v q=\" -v tag=${TAG_NAME} '/^version =/ { print $1 FS, q tag q; next} { print }' pyproject.toml

git add package.json redash/__init__.py pyproject.toml
git commit -m "Snapshot: ${date}"
git tag $date
git push --atomic origin master refs/tags/$date
git commit -m "Snapshot: ${TAG_NAME}"
git tag ${TAG_NAME}
git push --atomic origin master refs/tags/${TAG_NAME}

# Run the 'preview-image' workflow if run this workflow manually
# For more information, please see the: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
if [ "$BUMP_INPUT" = "true" ] || [ -n "$SPECIFIC_VERSION" ]; then
gh workflow run preview-image.yml --ref $TAG_NAME
fi
21 changes: 14 additions & 7 deletions .github/workflows/preview-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- '*-dev'
workflow_dispatch:

env:
NODE_VERSION: 18
Expand Down Expand Up @@ -44,10 +45,10 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Install Dependencies
run: |
npm install --global --force [email protected]
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -58,6 +59,11 @@ jobs:
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- name: Install Dependencies
run: |
npm install --global --force [email protected]
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1

- name: Set version
id: version
run: |
Expand All @@ -66,6 +72,7 @@ jobs:
VERSION_TAG=$(jq -r .version package.json)
echo "VERSION_TAG=$VERSION_TAG" >> "$GITHUB_OUTPUT"

# TODO: We can use GitHub Actions's matrix option to reduce the build time.
- name: Build and push preview image to Docker Hub
uses: docker/build-push-action@v4
with:
Expand All @@ -76,9 +83,9 @@ jobs:
context: .
build-args: |
test_all_deps=true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64
cache-from: type=gha,scope=multi-platform
cache-to: type=gha,mode=max,scope=multi-platform
platforms: linux/amd64,linux/arm64
env:
DOCKER_CONTENT_TRUST: true

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Restyled

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
restyled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: restyled-io/actions/setup@v4
- id: restyler
uses: restyled-io/actions/run@v4
with:
fail-on-differences: true

- if: |
!cancelled() &&
steps.restyler.outputs.success == 'true' &&
github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-pull-request@v6
with:
base: ${{ steps.restyler.outputs.restyled-base }}
branch: ${{ steps.restyler.outputs.restyled-head }}
title: ${{ steps.restyler.outputs.restyled-title }}
body: ${{ steps.restyler.outputs.restyled-body }}
labels: "restyled"
reviewers: ${{ github.event.pull_request.user.login }}
delete-branch: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ client/dist
_build
.vscode
.env
.tool-versions

dump.rdb

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.20.1
v18
8 changes: 5 additions & 3 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ request_review: author
#
# These can be used to tell other automation to avoid our PRs.
#
labels: ["Skip CI"]
labels:
- restyled
- "Skip CI"

# Labels to ignore
#
Expand All @@ -50,13 +52,13 @@ labels: ["Skip CI"]
# Restylers to run, and how
restylers:
- name: black
image: restyled/restyler-black:v19.10b0
image: restyled/restyler-black:v24.4.2
include:
- redash
- tests
- migrations/versions
- name: prettier
image: restyled/restyler-prettier:v1.19.1-2
image: restyled/restyler-prettier:v3.3.2-2
command:
- prettier
- --write
Expand Down
37 changes: 33 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:18-bookworm as frontend-builder
FROM node:18-bookworm AS frontend-builder

RUN npm install --global --force [email protected].19
RUN npm install --global --force [email protected].22

# Controls whether to build the frontend assets
ARG skip_frontend_build
Expand All @@ -20,14 +20,21 @@ COPY --chown=redash scripts /frontend/scripts
ARG code_coverage
ENV BABEL_ENV=${code_coverage:+test}


RUN yarn --frozen-lockfile --network-concurrency 1

# Avoid issues caused by lags in disk and network I/O speeds when working on top of QEMU emulation for multi-platform image building.
RUN yarn config set network-timeout 300000

RUN yarn --frozen-lockfile --network-concurrency 1


COPY --chown=redash client /frontend/client
COPY --chown=redash webpack.config.js /frontend/
# Use `yarn run` to ensure the locally installed webpack is used
RUN yarn clean && yarn build:viz && NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production yarn run webpack && mkdir -p /frontend/client/dist && touch /frontend/client/dist/multi_org.html && touch /frontend/client/dist/index.html

FROM python:3.8-slim-bookworm
FROM python:3.10-slim-bookworm

EXPOSE 5000

Expand Down Expand Up @@ -62,13 +69,35 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*


ARG TARGETPLATFORM
ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
&& curl https://packages.microsoft.com/config/debian/12/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& curl "$databricks_odbc_driver_url" --location --output /tmp/simba_odbc.zip \
&& chmod 600 /tmp/simba_odbc.zip \
&& unzip /tmp/simba_odbc.zip -d /tmp/simba \
&& dpkg -i /tmp/simba/*.deb \
&& printf "[Simba]\nDriver = /opt/simba/spark/lib/64/libsparkodbc_sb64.so" >> /etc/odbcinst.ini \
&& rm /tmp/simba_odbc.zip \
&& rm -rf /tmp/simba; fi


WORKDIR /app

ENV POETRY_VERSION=1.6.1
ENV POETRY_VERSION=1.8.3
ENV POETRY_HOME=/etc/poetry
ENV POETRY_VIRTUALENVS_CREATE=false
RUN curl -sSL https://install.python-poetry.org | python3 -

# Avoid crashes, including corrupted cache artifacts, when building multi-platform images with GitHub Actions.
RUN /etc/poetry/bin/poetry cache clear pypi --all

COPY pyproject.toml poetry.lock ./

ARG POETRY_OPTIONS="--no-root --no-interaction --no-ansi"
Expand Down
Loading
Loading