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

include schema and templates in non-editable images #292

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

willcl-ark
Copy link
Contributor

@willcl-ark willcl-ark commented Feb 29, 2024

previously this relied on pip install -e . style install, and was not being copied across in a regular pip install .

Fix that by putting the schema in it's own package, and explicitly including that in MANIFEST.in, along with other files needed from templates/.

@willcl-ark willcl-ark changed the title include schema in package install include schema and templates in non-editable images Mar 4, 2024
@willcl-ark
Copy link
Contributor Author

This also switches the RPC statefulset to use the latest tag by default. IMO we should now think about adding a GH action to build merges to main, which will push the new latest image to docker hub.

WDYT @m3dwards @pinheadmz @josibake ?

@willcl-ark
Copy link
Contributor Author

BTW I did test this PR (image tag 0.4/latest on dockerhub) using a digital ocean cluster and... it works for me (TM)

@@ -17,7 +17,7 @@ spec:
containers:
- name: warnet-rpc
imagePullPolicy: Always
image: bitcoindevproject/warnet-rpc:0.2
image: bitcoindevproject/warnet-rpc:latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note to say that this means if we push semantic versioned images we will also need to push an image with the tag latest explicitly for this to work.

Copy link
Collaborator

Choose a reason for hiding this comment

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

and I see you have the option for that in the build script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My intention was that we could push any tag we like, and then optionally also specify it as latest? There is also a latest tag there now

@m3dwards
Copy link
Collaborator

m3dwards commented Mar 4, 2024

Looks good to me. I especially like the .dockerignore.

This means we can just use "latest" in warnet-rpc-statefulset.yaml
This is a footgun we can do without.
This is needed when installing using `pip install .` e.g. in the non-dev
image being pushed to docker hub., otherwise non-python template files
are missing from the images.
@willcl-ark willcl-ark merged commit 8244a87 into bitcoin-dev-project:main Mar 5, 2024
11 checks passed
@willcl-ark willcl-ark deleted the copy-node-schema branch March 5, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants