Package Index: Build in Dockerhub#13810
Conversation
55c04c2 to
778daa2
Compare
alalazo
left a comment
There was a problem hiding this comment.
Just a few comments from trying the commands in the description and failing to execute them.
52d8d93 to
102956e
Compare
Prepare to build the package index service, packages.spack.io, on Dockerhub. Local build (in spack root dir): ``` docker build -t spack/packages.spack.io:latest -f share/spack/docker/package-index/Dockerfile . ``` Local test: ``` docker run -p 8080:80 spack/packages.spack.io:latest ```
Remove leftover docker stages from Travis-CI.
102956e to
7d8b620
Compare
|
@alalazo thank you for the review, my last updates did not reach GitHub it seams. I am sorry for that. |
No need to be, happy to review your PRs 🤓 |
|
|
||
| The API is a simple, file-based JSON index. | ||
| A specific package can be queried via the URI syntax: | ||
| ``https://packages.spack.io/api/:firstLetter/:packageName.json`` |
There was a problem hiding this comment.
This is more curiosity on my part than anything else, but why the :firstLetter part? Is that part of some standard that this service is trying to adhere to?
There was a problem hiding this comment.
This is just me trying to implement a very naïve load balancing to split the cost of a 4k inode ls.
ls var/spack/repos/builtin/packages/ | wc -l
3695
There are probably simpler ways to hide this via nginx configs?
There was a problem hiding this comment.
I am anticipating 100k+ packages in Spack
Prepare to build the package index service, packages.spack.io, on Dockerhub.
Local build (in spack root dir):
Local test:
Follow-up to #11665 and #11621