Comments (4)
I understand that the doc build is executed inside the kellnr docker container, so these dependencies are only needed to build docs hosted on kellnr?
This will only become more and more.
docs.rs and crater are using our own
crates-build-env
container, see also https://docs.rs/about/builds, and the list of installed packages is long.
from kellnr.
Thanks for reporting. I see a general conflict of interest in what Kellnr wants to achieve.
- It should be very easy to setup and use. Just one
docker run
-> That speaks for a build-in doc.rs build - It should be small enough to run on low-end hardware -> This speaks for a separat builder
The only option which would solve both is to split Kellnr into three images.
- The full image with a build in doc.rs builder (what we have now)
- A minimal Kellnr image without the doc.rs build
- A builder container which can be used as a sidecar for the 2. to build if needed
With this option, a user can decide if he needs the docs.rs build and if he wants one large image or two smaller one. Unfortunately that is a lot of work to implement.
from kellnr.
another factor I can imagine:
if kellnr is used more as a private registry, it's totally fine to just extend the main kellnr docker container with the system dependencies your packages need.
If you use kellnr more as a mirror of crates.io, you'll need the full image over time.
from kellnr.
two other things to add because I just had to look it up for another question:
- we also have a
linux-micro
container which just includes build-essential packages: https://github.com/rust-lang/crates-build-env/blob/master/linux-micro/packages.txt rustwide
(the library that docs.rs & crater use to run the builds) has an example how a containerized doc-build could work: https://github.com/rust-lang/rustwide/blob/master/examples/docs-builder.rs
from kellnr.
Related Issues (20)
- [feature request] list dependees in addition to dependencies
- UI bug in search view HOT 3
- Doc build in kellnr docker container fails with: Invalid cross-device link HOT 3
- Public crates registry HOT 3
- Feature Improvement Request: Simplifying Documentation URL Format and Adding Latest Version Link HOT 4
- Cannot upload doc HOT 7
- ldap support HOT 1
- Disabaling the crates.io proxy will not disable the sparse index HOT 1
- private registry hosting cratesio setup HOT 2
- Kellnr calculates wrong checksum [CRITICAL] HOT 17
- Doc build in kellnr docker container fails with: Invalid cross-device link HOT 5
- Can't autogenerate docs when using docker image HOT 2
- Failed to verify checksum HOT 4
- Timezone problem within webui HOT 3
- Click re-build / build button (for document) in web UI return 401 Unauthorized HOT 1
- example config should contains `credential-provider` setting HOT 1
- doc build error HOT 7
- Align version between workspace version and docker image tags
- Unable to download index of package "download"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kellnr.