Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

Light image ?

Open rockandska opened this issue 5 years ago • 19 comments

Hi,

Do you have plans to provide the ability to have a lightweight image containing only the terminal without X layer?

I'm looking for a way to test shell scripts on a native macos installation through docker but never found a project who provide this possibility.

Best regards,

rockandska avatar Nov 06 '20 13:11 rockandska

The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc?

sickcodes avatar Nov 07 '20 10:11 sickcodes

If so, and you think it's a good idea, i can create another image

sickcodes avatar Nov 07 '20 10:11 sickcodes

Just found this project, looks really interesting!

I would also be interested in a “light image” that I could use as a CI/CD machine to build apps.

Many thanks for your work and the great idea.

Edit: Saw a similar use-case is being tracked here: https://github.com/sickcodes/Docker-OSX/issues/83

L-U-C-K-Y avatar Nov 08 '20 20:11 L-U-C-K-Y

Unfortunately to run the OS you must accept the EULA.

After the EULA you can run docker commit and duplicate your custom image as many times as you like.

Then you can use that image as your CI/CD tool :)

sickcodes avatar Nov 09 '20 21:11 sickcodes

The recovery shell has a terminal with limited capabilities, have you tested the shell in the installation disc?

Did not try it yet. When you say with limited capabilities, what are they ? Long time ago I tried to build a minimal shell with tools from https://opensource.apple.com/ but I abandoned it and is the reason why I'm still looking for a way to test shell under macos in a convenient way.

rockandska avatar Nov 18 '20 17:11 rockandska

@rockandska Interesting, you can test the limited bash 3.0 shell inside the OSX recovery image in this project which might be able to do adapted to run a minimal environment.

sickcodes avatar Dec 04 '20 17:12 sickcodes

Working on this. Dropbear or something inside the recovery disk would be nice

sickcodes avatar Mar 13 '21 06:03 sickcodes

Working on slimming all images down currently.

Most importantly is an SSHable recovery image which is sub 1GB!

sickcodes avatar Mar 18 '21 17:03 sickcodes

Having MAJOR issues slimming APFS however on Big Sur.

sickcodes avatar Mar 18 '21 17:03 sickcodes

Thanks for the follow-up

rockandska avatar Mar 18 '21 18:03 rockandska

Having MAJOR issues slimming APFS however on Big Sur.

Is the issue that it doesn't properly support TRIM on VMs?

You can apparently run into a bug that causes it to boot really slowly https://forums.macrumors.com/threads/new-ssd-formatted-as-apfs-trim-always-slow-boot-and-performance.2237883/

weskerfoot avatar Mar 19 '21 14:03 weskerfoot

Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down?

sickcodes avatar Mar 19 '21 16:03 sickcodes

Not worried about speed, worried about cutting image size. The Big Sur is 40GB, were you able to cut it down?

I haven't updated to big sur yet, will see if I have time to try it out next week

weskerfoot avatar Mar 19 '21 17:03 weskerfoot

It's insane, APFS only and can't seem to shrink it. Might have to use non-qcow instead actually

sickcodes avatar Mar 19 '21 21:03 sickcodes

Lol

40gb

sickcodes avatar Mar 19 '21 21:03 sickcodes

Wow, quality software Apple :(

On Fri., Mar. 19, 2021, 5:54 p.m. sickcodes, @.***> wrote:

Lol

[image: 40gb] https://user-images.githubusercontent.com/65906298/111845885-a453f080-88fd-11eb-90db-06d218985d3c.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sickcodes/Docker-OSX/issues/103#issuecomment-803155732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC4L35CNNKDEWECNS5XIULTEPB2HANCNFSM4TMVE7MA .

weskerfoot avatar Mar 19 '21 23:03 weskerfoot

All good fixed it after installation in https://github.com/sickcodes/Docker-OSX/issues/210

sickcodes avatar Mar 21 '21 21:03 sickcodes

Some optimizations can be performed here to make your image smaller https://github.com/sickcodes/osx-optimizer

sickcodes avatar Jul 08 '21 09:07 sickcodes

Working on slimming all images down currently.

Most importantly is an SSHable recovery image which is sub 1GB!

Do you have an update on the latter @sickcodes ? Would be extremely useful if it has AOSKit and can login to iCloud to research anisette data!

biemster avatar Jun 07 '22 09:06 biemster