-
Notifications
You must be signed in to change notification settings - Fork 0
Leverage Docker For Your Development Environment Setup
This page describes the steps I took for setting up my development environment for Kitura:
-
Install Docker on your development system and start a Docker session/terminal.
-
From the Docker session, pull down the
swift-ubuntu
image from Docker Hub:
docker pull ibmcom/swift-ubuntu:latest
-
Create a Docker container using the
swift-ubuntu
image and mount the folder on your OS X system that contains the Kitura Swift package you are working on:docker run -i -t -v <absolute path to the swift package>:/root/<swift package name> ibmcom/swift-ubuntu:latest /bin/bash
For example:
docker run -i -t -v /Users/olivieri/git/Kitura/:/root/Kitura ibmcom/swift-ubuntu:latest /bin/bash
-
Now you have access to the same source code files from your OS X system and Docker container. You can compile and test your code on OS X and also on Linux with minimal effort.