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

Build and publish skupper-router image #44

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

fgiorgetti
Copy link
Member

Closes #39

Copy link
Contributor

@jiridanek jiridanek left a comment

Choose a reason for hiding this comment

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

I know the PR is WIP, so don't take my comments to seriously if I commented on something prematurely. Thanks.

connectors = infer()
else:
raise Exception("Invalid value for QDROUTERD_AUTO_MESH_DISCOVERY, expected 'QUERY' or 'INFER'")
get_config(sys.argv[1]).append_connectors(connectors)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this feature be (eventually) moved into skuperrouter itself?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is possible. After the router is started, Skupper already maintains connectors properly.
However these scripts are used only to prepare the config for the router startup, before qdrouterd is executed.

Copy link
Contributor

@jiridanek jiridanek Feb 7, 2022

Choose a reason for hiding this comment

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

Since skupper-router is going to be used exclusively in skupper, then making the option 'QDROUTERD_AUTO_MESH_DISCOVERY' be qdrouterd's option sounds sensible to me. It's an enhancement idea, however; not relevant for this PR right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is certainly something we can discuss and re-evaluate.

Copy link
Contributor

Choose a reason for hiding this comment

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

follow up issue #60

@fgiorgetti fgiorgetti force-pushed the container-image branch 2 times, most recently from 0768ad8 to c853d2d Compare February 7, 2022 18:02
@fgiorgetti fgiorgetti requested a review from jiridanek February 7, 2022 18:04
# Enable additional package repositories for CentOS
# note: PowerTools is called CodeReady Linux Builder in RHEL 8
# RUN dnf -y install epel-release && dnf config-manager --set-enabled powertools && dnf -y install gcc gcc-c++ make cmake cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-gssapi cyrus-sasl-md5 openssl-devel libuuid-devel nodejs swig wget patch findutils git valgrind libwebsockets-devel python3-devel libnghttp2-devel && dnf clean all -y
RUN dnf -y install gcc gcc-c++ make cmake cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-gssapi cyrus-sasl-md5 openssl-devel libuuid-devel nodejs swig wget patch findutils git valgrind libwebsockets-devel python3-devel libnghttp2-devel && dnf clean all -y
Copy link
Contributor

Choose a reason for hiding this comment

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

cyrus-sasl-plain cyrus-sasl-gssapi cyrus-sasl-md5? These are needed for running tests, should not be needed for build.

nodejs? Not needed, we don't have webconsole anymore.

valgrind? Not needed here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Those cyrus-sasl-* were useful in the former upstream image, but I believe we can get rid of them now.
Same for nodejs, since there is no more console here.

Copy link
Member

Choose a reason for hiding this comment

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

The cyrus sasl plugins could be useful in the image, but I agree there is no need to have them in the builder.

Copy link
Member

Choose a reason for hiding this comment

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

Actually at least cyrus-sasl-plain is required at present.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean in the builder? The console has been removed, so do you think it should be kept in the final image?

Copy link
Member

Choose a reason for hiding this comment

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

If the console is gone then you are right, the existing use case is gone. We can always add it when needed.

RUN .github/scripts/compile.sh


FROM fedora:34
Copy link
Contributor

Choose a reason for hiding this comment

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

@kgiusti @ganeshmurthy Is there any reason why our libwebsockets (in downstream) is built with LWS_WITH_LIBUV=ON and LWS_WITH_HTTP2=OFF? Thing is, libwebsockets has multiple backend options, libuv is only one of multiple event loops possible. Why was this one chosen?

(I tried asking for libwebsockets be added to ubi8 image, but I got rebuffed, since the library is not part of standard rhel8 either. https://bugzilla.redhat.com/show_bug.cgi?id=2051603)

@fgiorgetti fgiorgetti changed the title WIP: Build and publish skupper-router image Build and publish skupper-router image Feb 8, 2022
@fgiorgetti fgiorgetti requested review from grs and kgiusti February 8, 2022 12:32
Copy link
Contributor

@ganeshmurthy ganeshmurthy left a comment

Choose a reason for hiding this comment

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

Please feel free to commit to main branch

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.

Build and publish skupper-router image
5 participants