codeforboston/home-energy-analysis-tool

Dockerfile should build `rules-engine`

Open

#116 opened on 2023年12月1日

GitHub で見る
 (4 comments) (0 reactions) (1 assignee)TypeScript (54 forks)auto 404
buildcould havegood first issuerules-enginetechnical

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

説明

Right now the web app deployment only deploys an obsolete no-dependency python rules-engine file. With the newest version of the Rules Engine in the repository, it is using a python package wheel (whl) file which needs to be built on every deployment.

The whl file is already getting built for use in the unit tests. The test is committed and passing.

But we can't use the Rules Engine whl file yet in the browser, and we'd like to. You can help.

We don't want to check in the whl file, but to build it "just-in-time" at the key places. There is a reference example to help you start. It runs whenever we do npm run test app/utils/pyodide.test.ts

Dockerfile build of the Python whl

Optional: Package.json enable npm run dev to build & copy the whl

  • As a bonus task, modify the package.json dev line to build the whl just in time and place it in the same folder.
  • add the built file to .gitignore

Fix Github Actions to match

コントリビューターガイド