langflow/.github/workflows
Gabriel Luiz Freitas Almeida 43ad226ddb
chore: update docker images to use uv (#3916)
* fix dev dependencies

* fix dev dependencies

* update lock

* Add langchain-unstructured dependency to pyproject.toml

* Switch to uv-based Docker image and streamline build process

- Use `ghcr.io/astral-sh/uv:python3.12-bookworm-slim` as the base image
- Simplify environment variable setup and remove unnecessary ones
- Install project dependencies using `uv sync` with cache mounts
- Add and copy necessary files for the build process
- Update npm installation and frontend build steps
- Adjust entrypoint and runtime configurations
- Remove redundant user setup and streamline CMD execution

* Refactor Dockerfile to use multi-stage builds for optimized image size

- Introduce a builder stage to install dependencies and build the frontend.
- Use npm ci instead of npm install for more reliable builds.
- Copy built frontend assets to the final image.
- Transition to a runtime stage with a slimmer Python base image.
- Ensure the final image only contains necessary runtime dependencies.

* Switch base image to `ghcr.io/astral-sh/uv:python3.12-bookworm-slim` and update Dockerfile

- Replace `python:3.12.3-slim` with `ghcr.io/astral-sh/uv:python3.12-bookworm-slim` as the base image.
- Enable bytecode compilation and set link mode to copy.
- Update dependency installation process using `uv sync`.
- Simplify frontend build and copy process.
- Add OCI labels for image metadata.
- Update CMD to use `langflow-base` for running the application.

* Update Dockerfile to use uv base image and optimize dependency installation

- Switch base image to `ghcr.io/astral-sh/uv:python3.12-bookworm-slim`
- Combine apt-get commands and clean up to reduce image size
- Replace Poetry with uv for dependency management and caching

* Refactor Dockerfile to use multi-stage build for optimized image size

- Introduce a builder stage using `ghcr.io/astral-sh/uv:python3.12-bookworm-slim`
- Add a runtime stage using `python:3.12.3-slim`
- Copy the virtual environment from the builder stage to the runtime stage
- Remove the `uv` entrypoint to avoid invoking it by default

* Update Dockerfile: Fix indentation and remove redundant ENTRYPOINT reset

* ci: update release workflows to use uv (#3919)

* Update nightly build workflow to use 'uv' for dependency management and caching

- Replace Poetry with 'uv' for dependency installation and project setup
- Add steps to install 'uv' and set up caching for 'uv.lock'
- Modify Python setup to use version specified in 'pyproject.toml'
- Remove Node.js setup steps

* Update release workflow to use uv for dependency management

- Replace Poetry with uv for dependency installation and caching
- Update Python setup to use version specified in pyproject.toml
- Add steps to restore uv cache and install project dependencies using uv
- Adjust publish steps to maintain functionality with new setup

* Replace 'poetry publish' with 'uv publish' in Makefile for consistency

* Update nightly build workflow to use 'uv' for dependency management and caching

* Set up Node.js 20 in release_nightly workflow and update version verification logic

* Update Makefile to use `uv sync --frozen` for backend dependencies installation

* Update Makefile to pass arguments to 'uv build' and remove '--skip-existing' from publish commands

- Modified 'build_langflow' target to accept arguments.
- Removed '--skip-existing' from 'publish_base' and 'publish_base_testpypi' commands.
- Added TODO comments for updating test-pypi repository usage.

* Remove --skip-existing flag from uv publish commands and add TODO comments for test-pypi updates

* new lock

* Update CI workflow to remove version prefix and add build args

- Removed 'v' prefix from version extraction in nightly release workflow.
- Added '--no-sources' argument to the build command in the distribution step.

* Update CI workflow to use 'uv' for versioning and publishing

- Replace 'poetry' with 'uv' for version extraction in release checks

* Update CI workflow to use UV_PUBLISH_TOKEN for PyPI publishing

* Add verification step for 'langflow-nightly' name and version in CI workflow

- Corrected awk commands for extracting 'langflow-base' name and version.
- Added a new step to verify 'langflow-nightly' name and version against expected values.

* feat: Update dev.Dockerfile to use 'uv' for dependency management and caching

* update dockerfiles with --no-editable

---------

Co-authored-by: phact <estevezsebastian@gmail.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
2024-09-30 22:49:25 +00:00
..
matchers Update linting workflows for frontend and Python code (#2171) 2024-06-14 06:27:48 -07:00
auto-update.yml bugfix: fix api request custom component (#2470) 2024-07-04 05:05:22 -07:00
ci.yml tests: new tests folders organization (#3716) 2024-09-09 14:45:30 -03:00
codeql.yml Bump github/codeql-action from 2 to 3 (#1420) 2024-02-15 10:49:28 -03:00
conventional-labels.yml ci: make validate pull request action less verbose (#3061) 2024-08-29 01:06:02 +00:00
create-release.yml chore: Update poetry installation to use environment variable for version (#2074) 2024-06-05 10:40:58 -07:00
deploy_gh-pages.yml docs: added fetching from notion (#2670) 2024-07-12 22:59:52 +02:00
docker-build.yml ci: tag fixes and robustness to workflow failures (#3838) 2024-09-17 18:03:48 -07:00
docker_test.yml docker: force python version to 3.12.3 (#2148) 2024-06-12 06:09:46 -07:00
docs_test.yml docs: added fetching from notion (#2670) 2024-07-12 22:59:52 +02:00
fetch_docs_notion.yml build(deps):(deps): bump peter-evans/create-pull-request from 5 to 6 (#3141) 2024-08-20 18:56:06 +00:00
integration_tests.yml ci: create a nightly build workflow (#3553) 2024-09-05 19:13:04 +00:00
js_autofix.yml ci: update autofix workflows (#2521) 2024-07-04 14:23:58 +02:00
lint-js.yml bugfix: fix api request custom component (#2470) 2024-07-04 05:05:22 -07:00
lint-py.yml chore: uv to replace poetry (#3900) 2024-09-25 13:40:30 -07:00
nightly_build.yml chore: update docker images to use uv (#3916) 2024-09-30 22:49:25 +00:00
py_autofix.yml chore: uv to replace poetry (#3900) 2024-09-25 13:40:30 -07:00
python_test.yml chore: uv to replace poetry (#3900) 2024-09-25 13:40:30 -07:00
release.yml chore: update docker images to use uv (#3916) 2024-09-30 22:49:25 +00:00
release_nightly.yml chore: update docker images to use uv (#3916) 2024-09-30 22:49:25 +00:00
style-check-py.yml chore: uv to replace poetry (#3900) 2024-09-25 13:40:30 -07:00
typescript_test.yml ci: tag fixes and robustness to workflow failures (#3838) 2024-09-17 18:03:48 -07:00