Skip to content

Conversation

ctr26
Copy link
Contributor

@ctr26 ctr26 commented May 30, 2024

@oeway

This is my way of fixing the docker permissions. It uses the mamba image which is well documented for settings permissions and setting working directories properly.

As of yet untested (Will test soon)

@ctr26 ctr26 requested a review from oeway May 30, 2024 07:21
@oeway
Copy link
Contributor

oeway commented May 30, 2024

OK, thanks! Let me know when you think it's ready to merge.

@ctr26 ctr26 marked this pull request as ready for review May 30, 2024 10:00
@ctr26
Copy link
Contributor Author

ctr26 commented May 30, 2024

@oeway I've add test containers, this will now check if the hypha container can come only and respond to a get request. This should mean that if we break the image at all the image at all the tests will fail. It doesn't then do any further tests but that can be added as needs.

@ctr26 ctr26 force-pushed the docker_permissions branch from 2bbe517 to e32de69 Compare June 14, 2024 08:04
@ctr26
Copy link
Contributor Author

ctr26 commented Jun 14, 2024

Not ready yet, still some permissions issues

@oeway
Copy link
Contributor

oeway commented Jul 2, 2024

@ctr26 Have you fixed the permission issue?

@ctr26
Copy link
Contributor Author

ctr26 commented Jul 2, 2024

Thanks for the reminder will fix by tomorrow

@ctr26 ctr26 force-pushed the docker_permissions branch from 2472a19 to c4e3f5a Compare August 20, 2024 12:05
@ctr26 ctr26 force-pushed the docker_permissions branch from c4e3f5a to f8b1f1b Compare October 3, 2024 08:31
build: .
image: amun-ai/hypha
container_name: hypha
command: --port 9520 --host=0.0.0.0
Copy link

@enolfc enolfc Oct 7, 2024

Choose a reason for hiding this comment

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

should this be more like the CMD in the Dockerfile ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are right, we have it already

CMD ["python", "-m", "hypha.server", "--host=0.0.0.0", "--port=9520"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah the entry point in the dockerfile has it already. This PR was going to add in the permissions fix as well, but I believe @oeway fixed that already during the time this PR has been open. I've rebased on the main branch and now this PR is mostly trying to put some container testing in place.

I'm now just checking to see if bumping the hypha version downstream fixes the permissions issues.

P.s
I think the default port on the original server this ran on was 9000 and that then became the port for the k8s cluster etc etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @ctr26 I think the latest one should work for non-privileged rancher cluster, we have tested it with the helm chart included in the repo: https://github.com/amun-ai/hypha/tree/main/helm-charts

So maybe we can close this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I saw that you tried to fix the permission. I'm now updating the bioengine image with the newest hypha to make the egi stuff work.

I think it's a good idea for the docker image testing that I've put here to still be added as it'll be useful for the future.

But otherwise this PR is now rebased to use your dockerfile

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.

3 participants