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

DM-32979: initial checkin of hermesk daemon mods #1

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

srp3rd
Copy link
Contributor

@srp3rd srp3rd commented Mar 22, 2024

No description provided.

@ktlim ktlim changed the title initial checkin of hermesk daemon mods DM-32979: initial checkin of hermesk daemon mods Jun 17, 2024
- name: Build ingest image
working-directory: docker
run: |
docker-compose -f "docker-compose.yml" --env-file versions.env build $HERMESK_NAME
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like there isn't that much in the docker-compose.yml. You might be able to use https://github.com/lsst-sqre/build-and-push-to-ghcr if you go directly to the Dockerfile.

RUN pip install retrying

RUN mkdir -p /etc/grid-security/certificates
RUN mkdir /usr/local/lib/python3.9/site-packages/rucio/daemons/hermes/kafka
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems a bit strange to hard-code 3.9 here. Is that because of how Rucio does things?


RUN mkdir -p /etc/grid-security/certificates
RUN mkdir /usr/local/lib/python3.9/site-packages/rucio/daemons/hermes/kafka
COPY ./lib/rucio/daemons/hermes/kafka /usr/local/lib/python3.9/site-packages/rucio/daemons/hermes/kafka/
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to copy the slowly-changing things first, then the rapidly-changing things. That way the layer cache works better.

@@ -0,0 +1,440 @@
version: "3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this file get used anywhere? If not, can it be removed?

@@ -0,0 +1,43 @@
name: Build Rucio Hermes Kafka container
Copy link
Contributor

Choose a reason for hiding this comment

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

This file isn't used either, is it?

@@ -0,0 +1,431 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just for testing?

@@ -0,0 +1,21 @@
# List EUPS dependencies of this package here
Copy link
Contributor

Choose a reason for hiding this comment

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

Nothing here should be needed; I don't think you even want this to be an eups package.

@@ -0,0 +1,766 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if you can't express this as a patch on the source version that you have locked. It would be a lot clearer than copying the entire file. As it is, I can't easily tell what's your code and what's Rucio's.

@@ -0,0 +1,155 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

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

If we wrote this, it should have our copyright, not theirs.

Update to new version 34.6.0 of constants.py
Update to new version of 34.6.0 protocol.py
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.

None yet

2 participants