Releases: harris-chris/Jot.jl
Force documentation rebuild
v0.5.1 Update Documentation.yml
Improved (and now mandatory) PackageCompile
This release has breaking changes, most obviously to the create_local_image
function.
- As much as is possible, create the environment and runtime folder outside of the Dockerfile, for easier debugging/investigation
- Add
build_at_path
argument tocreate_local_image
so that this folder can be specified - Make PackageCompile compulsory (the
package_compile::Bool
parameter has been removed fromcreate_local_image
) - Improve process by which the precompile statements file (an input to the package compilation) is obtained:
- Optionally run package tests to generate more precompile statements
- Have precompile statements from the Jot runtime generate, even if test data for the function has not been provided
- The
julia_base_version
andjulia_cpu_target
parameters ofcreate_local_image
have also been removed
Restructure precompile/package compile process
create_local_image
now takesfunction_test_data
andpackage_compile
keyword parameters; these set whether the function will be precompiled or package-compiled- Fix bugs whereby the package compile process was not working as it should have done
- Expand documentation to cover this new approach
Update to Julia v1.8.4, PackageCompiler v2
- Update default Julia version in Docker to 1.8.4
- Update to PackageCompiler v2
Make DEPOT_PATH writable
v0.3.5 Refactor tests, ensure julia_depot path is writable
Update default Julia version to 1.8.2
- Update default Julia version in Docker to 1.8.2
- Fix a bug resulting from changes to Julia internals
- Remove
PackageSpec
as a valid argument toget_responder
Allow customizations to generated Dockerfile
Features added
create_local_image
and create_lambda_components
now both take an optional dockerfile_update
parameter. This parameter expects a function which takes a single parameter - the original dockerfile as multi-line string - and returns an updated dockerfile, also as a multi-line string.
Add the ability to include additional Julia registries
Features added
- The
get_responder
function now takes an additionalregistry_urls
argument, which can be used to define additional Julia registries to include in the docker build.
Specific changes
- Added
registry_urls
toget_responder
- Changed jottest2 and jottest4 to both use a package defined in an external registry, as an automated test
- Refactored test code to make it easier to call specific quartet tests (eg 2 and 4 only).
Add the LambdaComponents approach as a more convenient way to build Lambda functions
Breaking changes:
create_local_image
, push_to_ecr!
and create_lambda_function
now take only one non-keyword argument, to make them easier to pipe together. All other arguments have been made kwargs.
Features added
The LambdaComponents
object exists in v0.2.2, but was just a way to group together related local images, remote images and lambda functions. In this version it has been made into a more convenient way to create lambda functions - for example:
lambda_components = create_lambda_components(increment_responder; image_suffix="increment-vector")
lambda_components |> with_remote_image! |> with_lambda_function! |> run_test
will go through the entire process of creating a lambda function, including testing it.
Specific changes
- Add create_lambda_components
, with_local_image!, with_remote_image!
- Add delete!(::RemoteImage)
- push_to_ecr! returns RemoteImage only
- Automatically delete aws roles that were generated when a lambda function was
created, when that function is deleted
- Automatically delete ecr_repo that were created when a local image was
pushed to ECR, when the last remote image is deleted from them
- Expose get_all_xyz functions for local images, remote images,
ecr_repos, aws_roles and lambda_functions
- Enhance get_local_image(::String) to accept either name or hash
- Enhance get_remote_image(::String) to accept either name or hash
- Add the above to unit tests
- Add the above to documentation
Add user-defined labels feature
- Add user_defined_labels kwarg to
create_local_image
- Add unit tests for labels