[Question] How to install Xcode on this docker? #69

Open
opened 2025-12-28 23:22:58 +01:00 by adam · 11 comments
Owner

Originally created by @amadeu01 on GitHub (Sep 16, 2020).

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

Originally created by @amadeu01 on GitHub (Sep 16, 2020). 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](https://fuzzyblog.io/blog/mac/2017/07/31/configuring-your-mac-with-ansible-take-2.html)
Author
Owner

@sickcodes commented on GitHub (Sep 19, 2020):

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

It would be the same as duplicating your hard drive.

@sickcodes commented on GitHub (Sep 19, 2020): Yes you can `docker commit` the image when it's ready to ship. It would be the same as duplicating your hard drive.
Author
Owner

@sickcodes commented on GitHub (Sep 20, 2020):

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 commented on GitHub (Sep 20, 2020): 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
Author
Owner

@sickcodes commented on GitHub (Sep 21, 2020):

Feel free to close this when you have it working

@sickcodes commented on GitHub (Sep 21, 2020): Feel free to close this when you have it working
Author
Owner

@amadeu01 commented on GitHub (Sep 21, 2020):

@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 commented on GitHub (Sep 21, 2020): @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 ?
Author
Owner

@sickcodes commented on GitHub (Oct 5, 2020):

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 commented on GitHub (Oct 5, 2020): 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
Author
Owner

@yaroslavnikiforov commented on GitHub (Nov 13, 2020):

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 commented on GitHub (Nov 13, 2020): 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
Author
Owner

@sickcodes commented on GitHub (Nov 13, 2020):

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

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

@sickcodes commented on GitHub (Nov 13, 2020): It certainly is. Be careful with your keys. You can also use fastlane I believe. Or this https://github.com/zhlynn/zsign
Author
Owner

@yaroslavnikiforov commented on GitHub (Nov 13, 2020):

Great thanks!

@yaroslavnikiforov commented on GitHub (Nov 13, 2020): Great thanks!
Author
Owner

@sickcodes commented on GitHub (Mar 7, 2021):

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 commented on GitHub (Mar 7, 2021): > 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
Author
Owner

@rafaldziuryk commented on GitHub (Dec 23, 2021):

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 commented on GitHub (Dec 23, 2021): > 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?
Author
Owner

@sickcodes commented on GitHub (Jan 5, 2022):

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

@sickcodes commented on GitHub (Jan 5, 2022): You need to create your own image first and then you can automate usage with the naked image or naked-auto
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#69