Docker4xcode
Build, ship and run iOS apps like docker containers
Install / Use
/learn @jkingyens/Docker4xcodeREADME
Docker for iOS Development
Build and ship iOS apps with standard docker client. Just drop a Dockerfile into an XCode project and build+distribute using docker containers.
Getting Started
Requirements
- OSX (tested with 10.10.3)
- XCode (tested with 6.3.2)
- Node.js (tested with 0.10.32)
- ios-sim (npm install -g ios-sim)
Then drop a Dockerfile into your iOS app directory:
Example Dockerfile
FROM Xcode:7.0
WORKDIR /
COPY . /
RUN xcodebuild
HYDRATE /build/Debug-iphonesimulator/SampleApp.app
The HYDRATE command instructs the docker builder to transform raw bits into a new docker image as an artifact. The architecture is assumed to be iphonesimulator plaform right now. Hence, docker build will output two images:
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
test-build latest 9240d3d01481 Less than a second ago 8.884 MB
test latest dd5a93fcf2ad Less than a second ago 8.215 MB
test-build contains the full build directory from the OSX platform.
test contains just the ios container (app).
you can then docker run the test image to invoke th simulator
Usage
Start up the Daemon
npm install
npm start
export DOCKER_HOST=tcp://localhost:3000
build & run your apps from CLI:
docker build -t=test .
docker run test
Development
Running Tests
npm install
npm test
Running Sample Project
cd sample
docker build -t=sample-ios-app .
<buid output....>
docker images
<image list>
docker run <image_name>
Roadmap
- Complete the REST API
- Registery/store implementations
- docker-compose and docker-machine support
- Android development
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
