You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was experimenting with lucky, within an alpine container. This is for use within vscode remote containers/dev cycle. The lucky dev falls over during browsersync phase, within the tasks/watch cycle.
Alpine ships with a slimmed down version of ps and lsof.
For ps the -p and command flags aren't supported, instead you need ps -o comm
I think I've got a fix for this, but there are two possible approaches.
Alter the code to check for busybox os, run the alternative command (See below)
Add docs to detail installing procps && lsof when using alpine for full ps support
Possibly need both for the following code to work. Or simplify and don't try to show a list of processes, just say the port is in use. You'd still need the lsof package updating.
Sudo code for option 1, still work in progress, first lines of crystal ;)
Happy to produce a pr with some guidance as to direction/necessity.
Background, I was only exploring alpine in case I take it to production, for slimmer images. It works fine out of the box using a crystallang/crystal:0.35.1 image.
I've pushed an alpine branch on this repo.
The text was updated successfully, but these errors were encountered:
I'm wondering if maybe we should instead add some way to skip this check as mentioned in #1274. What do you think? Is this check helpful, or do you need this for a CI/Docker container? If so maybe skipping is the best option.
I was experimenting with lucky, within an alpine container. This is for use within vscode remote containers/dev cycle. The
lucky dev
falls over during browsersync phase, within the tasks/watch cycle.Alpine ships with a slimmed down version of
ps
andlsof
.For
ps
the-p
andcommand
flags aren't supported, instead you needps -o comm
I think I've got a fix for this, but there are two possible approaches.
procps
&&lsof
when using alpine for fullps
supportPossibly need both for the following code to work. Or simplify and don't try to show a list of processes, just say the port is in use. You'd still need the
lsof
package updating.Sudo code for option 1, still work in progress, first lines of crystal ;)
Happy to produce a pr with some guidance as to direction/necessity.
Background, I was only exploring alpine in case I take it to production, for slimmer images. It works fine out of the box using a
crystallang/crystal:0.35.1
image.I've pushed an alpine branch on this repo.
The text was updated successfully, but these errors were encountered: