Skip to content

Conversation

@arikfr
Copy link
Member

@arikfr arikfr commented Mar 22, 2023

Description

This PR includes a few fixes for the development workflow:

  1. Fix issues with Apple Silicon (M1, M2) processors: applied suggestions from Clean checkout M1 docker-compose up -d fails with ModuleNotFoundError: No module named 'Cython' #5805 to remove/update dependencies that aren't ARM compatible.
  2. Update supported Node versions. I bumped the supported engines up to Node v16. When I tried with v19 I had a few issues, so will wait with it until we update the Node modules.
  3. Updated the default port from 5000 to 5001 as port 5000 seems to be used by the system on MacOS now.
  4. Updated the maildev image to the latest one.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually

Related Tickets & Documents

Closes #5805, closes #5804.

Arik Fraimovich added 3 commits March 21, 2023 23:24
With Node version 19 I stumbled into some issues so for now bumped it to v16, until we get to updating the libraries we use.
1. Switch to newer maildev docker image.
2. Update local port to 5001 as 5000 seems to be used by a system process now.
Copy link
Member

@gabrieldutra gabrieldutra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devloop seems to be building on M1, though we probably need to update a few extra docs / files in the next days due to the port change.

I didn't fully test it as I didn't finish setting my Frontend yet 😅

- redis
ports:
- "5000:5000"
- "5001:5000"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to update this in

const redashBackend = process.env.REDASH_BACKEND || "http://localhost:5000";
too. And in the local Cypress config (but this one I need to confirm still)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. I'll grep the code for 5000.

@arikfr arikfr merged commit 65d0eb7 into master Mar 24, 2023
@arikfr arikfr deleted the dev-build branch March 24, 2023 21:37
AkaashK pushed a commit to tharzeez/redash that referenced this pull request Jul 18, 2023
…port, and maildev image (getredash#5932)

* Update ngines definition to allow for newer versions of Node.

With Node version 19 I stumbled into some issues so for now bumped it to v16, until we get to updating the libraries we use.

* docker-compose.yml updates:

1. Switch to newer maildev docker image.
2. Update local port to 5001 as 5000 seems to be used by a system process now.

* Update pymssql and pyarrow. Also commented out ibm-db until we have a way to not install it only on ARM.
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
…port, and maildev image (getredash#5932)

* Update ngines definition to allow for newer versions of Node.

With Node version 19 I stumbled into some issues so for now bumped it to v16, until we get to updating the libraries we use.

* docker-compose.yml updates:

1. Switch to newer maildev docker image.
2. Update local port to 5001 as 5000 seems to be used by a system process now.

* Update pymssql and pyarrow. Also commented out ibm-db until we have a way to not install it only on ARM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean checkout M1 docker-compose up -d fails with ModuleNotFoundError: No module named 'Cython' watchdog OSError: Function not implemented

3 participants