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

[Question] How to install Xcode on this docker?

Open amadeu01 opened this issue 5 years ago • 11 comments

This might be a stupid question, but I don't have much experience with docker. And, I would like to run some scripts which are basically to build an app inside the docker. I don't know if that would be possible. But, since the docker can run an osx, it might be possible to run Xcode and so run tests or build apps.

How could I install the xcode inside the container? I was thinking about using Ansible to configure the container like here

amadeu01 avatar Sep 16 '20 18:09 amadeu01

Yes you can docker commit the image when it's ready to ship.

It would be the same as duplicating your hard drive.

sickcodes avatar Sep 18 '20 22:09 sickcodes

Sorry for not answering your question 🤣

Yes it's possible, you can build your container. Once it's nice and ready, use docker commit or put the .img somewhere, I have updated the readme

sickcodes avatar Sep 20 '20 08:09 sickcodes

Feel free to close this when you have it working

sickcodes avatar Sep 21 '20 04:09 sickcodes

@sickcodes thanks! I'll give a try!

Just one more question to be clear if I understood. I could configure the mac image with all programs I like and then I make a copy of that image with docke commit? Therefore, if I had installed Xcode on the initial image, after the docker commit I'll have a new image with the xcode ready to be used ?

amadeu01 avatar Sep 21 '20 13:09 amadeu01

FYI you need to install Xcode from the App Store, which requires you to sign in with an Apple ID.

You can create one in OSX

sickcodes avatar Oct 05 '20 12:10 sickcodes

Hi @sickcodes is it possible to create an image with Xcode installed, commit it to the Docker hub, and then use it for the bitbucket pipelines for creating iOS builds? Thanks

yaroslavnikiforov avatar Nov 13 '20 16:11 yaroslavnikiforov

It certainly is. Be careful with your keys. You can also use fastlane I believe.

Or this https://github.com/zhlynn/zsign

sickcodes avatar Nov 13 '20 16:11 sickcodes

Great thanks!

yaroslavnikiforov avatar Nov 13 '20 16:11 yaroslavnikiforov

Hi @sickcodes is it possible to create an image with Xcode installed, commit it to the Docker hub, and then use it for the bitbucket pipelines for creating iOS builds? Thanks

FYI Working on this currently

sickcodes avatar Mar 07 '21 15:03 sickcodes

Hi @sickcodes is it possible to create an image with Xcode installed, commit it to the Docker hub, and then use it for the bitbucket pipelines for creating iOS builds? Thanks

@yaroslavnikiforov Did you find a way to run this docker image with bitbucket pipeline? Could you share some tips if so?

rafaldziuryk avatar Dec 23 '21 21:12 rafaldziuryk

You need to create your own image first and then you can automate usage with the naked image or naked-auto

sickcodes avatar Jan 05 '22 21:01 sickcodes