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

chore: Enable MIX_ENV=prod mix release to be run locally #1386

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanhinde
Copy link
Contributor

The goal of this PR is to be able to create a fully transferable release containing all code from the node as well as the mdw code without relying on docker

To run, assuming a local checkout of the aeternity node in ../aeternity:

NODEROOT=local INCLUDE_LOCAL_NODE=true MIX_ENV=prod mix release

This PR was sponsored by the ACF

@seanhinde seanhinde changed the title Enable MIX_ENV=prod mix release to be run locally chore: Enable MIX_ENV=prod mix release to be run locally Jun 12, 2023
def project() do
[
app: :ae_mdw,
version: "1.48.1",
version: @version,
Copy link
Member

Choose a reason for hiding this comment

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

This is automatically handled by release please task on the pipeline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched to @Version because it's now used twice in the file. Will the release please task find and replace multiple instances? Will it replace the new one?

Copy link
Member

Choose a reason for hiding this comment

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

I would rather just leave it for the CI to manage it as it has been doing or it would need to be validated in advance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will the CI replace both places "1.48.1" will be hard coded if I remove this change to use a module attribute? The two places are here, and on line 123 of this file?

I can hard code 1.48.1 in both places, but it seems like a much worse solution, would quite likely break the CI anyway.

Copy link
Member

@jyeshe jyeshe Aug 24, 2023

Choose a reason for hiding this comment

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

I haven't tried it before but I think it's unlikely that it replaces in both places. One way to avoid the conflict is to pipe the list and append the releases.

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.

2 participants