<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Something important to note, i have created an image from scratch installing emacs in place of vim.<div class=""><br class=""></div><div class="">But to get swift working we have to run the image with privilege access like this </div><div class=""><br class=""></div><div class="">docker run -ti --privileged=true theImageName</div><div class=""><br class=""></div><div class="">Unless we get an error when running the REPL</div><div class=""><br class=""></div><div class="">Regards</div><div class=""><br class=""></div><div class="">Gerard</div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Dec 2016, at 13:49, Alex Blewitt <<a href="mailto:alblue@apple.com" class="">alblue@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 12 Dec 2016, at 11:06, Gerard Iglesias via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:<br class=""><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div class="">Hi everybody,<br class=""><br class="">I would like to know if somebody use Docker with image of Ubuntu or Centos with swift 3 on them to make a working dev environment ? <br class=""><br class="">I just start to learn Docker use, which is not hard obviously, but I wonder if we can build a complete development environment with it …<br class=""><br class="">Any advices welcome.<br class=""></div></div></blockquote></div><br class=""><div class="">Yes, it's possible to build a Docker image with the necessary binaries installed. You can use a pre-built one from IBM:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/IBM-Swift/swift-ubuntu-docker" class="">https://github.com/IBM-Swift/swift-ubuntu-docker</a></div><div class=""><br class=""></div><div class="">It has more than is strictly necessary to get up and working but you can use it to get going. Alternatively, you can install your own by basing it on the following from Ubuntu 16.04:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">FROM ubuntu:16.04</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">RUN apt-get update && apt-get -y install vim wget git clang libicu-dev python2.7-dev libxml2-dev libcurl4-openssl-dev && apt-get clean</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">RUN wget --progress=bar:force:noscroll --output-document=- <a href="https://swift.org/builds/swift-3.0.1-release/ubuntu1604/swift-3.0.1-RELEASE/swift-3.0.1-RELEASE-ubuntu16.04.tar.gz" class="">https://swift.org/builds/swift-3.0.1-release/ubuntu1604/swift-3.0.1-RELEASE/swift-3.0.1-RELEASE-ubuntu16.04.tar.gz</a> | tar --strip-components=1 -zxf -</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div></div></blockquote></div><br class=""></div></div></div></body></html>