<aighearach>
splud: if you're not also on the same private network how would you upload a script? It seems odd to have an appliance running Ruby that lets you upload scripts and create sockets but not execute binaries.
<splud>
what binary are you suggesting? I'm working with what is in the rootfs of the device, and am not at liberty to change that.
<splud>
adam12 - I should have been clear - I'm already able to take the req and dump it into a file. This happens AFTER the WEBrick is already holding (at this time) over 60MB in RAM due to the ENTIRE package having been POSTed
<splud>
I was rather hoping there was a mechanism to have WEBrick _supply_ the req as a stream. Allowing for it to be written as it is received (after the HTTPServer has processed the headers, though yes, I get that multipart affords some complications)
<adam12>
Are you sure that's not what's happening? How are you measuring memory use?
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
drincruz has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<aighearach>
splud: I was thinking a web server
<aighearach>
But there were some fairly robust WEBrick setups once upon a time, like 2005, it can be done
<splud>
watching the process grow in memory consumption with top. or checking in /proc/{pid}/ for memory statistics.
<splud>
once do_POST has those variables, they are x size, not a stream - they're IN RAM.
<splud>
Anyway, I have some meetings here (and have been doing further investigations at a different workstation and checking here, thus lag).
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 272 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
lunarkitty has joined #ruby
ur5us has joined #ruby
drincruz has joined #ruby
[jamez] has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
drincruz has quit [Ping timeout: 252 seconds]
lucf117 has quit [Remote host closed the connection]
<nakilon>
havenwood you say it because it is relevant to something I asked?
jwr has joined #ruby
<jwr>
We have a need to build our docker images using a vanilla ubuntu:20.04 image instead of the offical ruby images on docker hub. Then, to be able to install whichever ruby version we want, I'm thinking of using rvm in the vanilla 20.04 image. Is rvm inside of docker a terrible idea?
dvgorod has quit [Ping timeout: 258 seconds]
<nakilon>
I believe docker tells you that you can do the same things inside it that you usually do outside so there should be nothing wrong
<jwr>
Right, but IIRC rvm will compile from source, so I need gcc and probably a bunch of other dependencies. I'm wondering how messy it would be to install rvm in a build image and then copy the desired ruby version into a slimmed down image without build deps.
goldfish has joined #ruby
chonkbit has joined #ruby
<adam12>
jwr: rvm might _not_ compile from source. It will try to use a binary. Depends on platform.
<adam12>
jwr: aarch64 or mips, probably source. But for x86_64, probably binary.
<adam12>
jwr: And don't forget about multi-stage build files, tho I'm not sure they'd help you here a lot.
<jwr>
adam12: oh, if rvm will attempt to use a binary then maybe this is all way easier than i thought. that's good to know.
<jwr>
adam12: it did use a binary, that's cool. is there a way that i can know which files rvm installed when it installed ruby? eg so that i can do `COPY --from=builder /usr/local/rvm /usr/local/rmv`?
vos has joined #ruby
sdfuiojklqaz has joined #ruby
<adam12>
jwr: I'm not sure to be honest.
<jwr>
looks like `rvm info` shows most of that, and it does appear to have installed everything inside /usr/local/rvm.
vos has quit [Quit: WeeChat 3.2]
Garb0 has joined #ruby
vos has joined #ruby
Garb0 has quit [Ping timeout: 256 seconds]
jamesmartinez has joined #ruby
Guest49 has joined #ruby
[jamez] has quit [Ping timeout: 258 seconds]
Guest49 has quit [Client Quit]
Toledo is now known as TomNook
AriT93 has joined #ruby
lucf117 has joined #ruby
MalkbabY has joined #ruby
MalkbabY_ has quit [Ping timeout: 240 seconds]
<jidar>
why would you have a COPY command that you're really trying to just do a RUN command?
<jidar>
is_confused
<jidar>
> Is rvm inside of docker a terrible idea?
<jidar>
so it's not that it's a terrible idea, it's that the use of a container negates any need for it
<jidar>
ie: containers are entirely about setting up an environment (just one) to run or execute something, using rvm on top of a container is or at least to me, feels dirty because why not just install whatever you're going to use, why install something that's going to install something else
AriT93 has quit [Remote host closed the connection]