[swift-server-dev] Fwd: Announcement: Official Docker Image for Swift now available

Swizzlr me at swizzlr.co
Sun Jan 22 14:57:37 CST 2017


That's a great question. We're satisfied that the 400MB image size isn't _too_ onerous for the majority of users - especially since one of the benefits of Docker is that per host, that 400MB will only be used once (copy on write FS) - but there can never be enough done.

We have an issue open that addresses this exact topic: https://github.com/swiftdocker/docker-swift/issues/48. Of particular interest is how to export a Swift binary that is statically linked; perhaps a base image containing the Swift runtime support libs (ICU, Foundation, Core etc) would be ideal.

In case I haven't covered every base: the final benefit is a reproducible development environment, one that is the same on our machines and the server.

Tom

Sent from my iPhone

> On 22 Jan 2017, at 19:47, Helge Heß via swift-server-dev <swift-server-dev at swift.org> wrote:
> 
> Hi,
> 
> someone told me about this too. I don’t want to lower the work involved in that, but I suppose I just don’t understand what this is about. What does 'Dockerizing Swift’ mean? Isn’t that just
> 
>  wget <swift-tarball>
>  tar zxf <swift-tarball>
>  export PATH=$PATH:swift-tarball
> 
> ? Or does it anything extra?
> 
> I think something which would be really helpful is a docker setup that is separating the build and the deployment step. That is, if I deploy a Swift Server app the last thing I want is to ship Swift llvm or clang, etc, but just the app and the runtime. Is someone working on something like that already?
> 
> hh
> 
>> On 22 Jan 2017, at 19:18, Swizzlr via swift-server-dev <swift-server-dev at swift.org> wrote:
>> 
>> In case any you aren't/weren't subscribed to the Swift Users list. Link to thread: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20170116/004470.html
>> 
>> Sent from my iPhone
>> 
>> Begin forwarded message:
>> 
>>> From: Swizzlr <me at swizzlr.co>
>>> Date: 21 January 2017 at 22:10:59 GMT
>>> To: swift-users <swift-users at swift.org>
>>> Subject: Announcement: Official Docker Image for Swift now available
>>> 
>>> Hello all,
>>> 
>>> I'm pleased to announce that with the assistance of many, many people (see below), we have released an “official" Docker image for Swift. 
>>> 
>>> The image contains everything needed to compile and run a Swift application, reliably and reproducibly. It’s based on Ubuntu 16.04 and has been used in production for many months now. A Docker library image such as this one occupies the top level namespace, so that you can simply write “FROM swift” to refer to the image. It has received extensive auditing for best practices and security by Docker experts, and will be maintained by a dedicated team of volunteers.
>>> 
>>> I would like to encourage everyone interested to ask questions and offer improvements over on the Github repo. Personally, I want to offer my thanks to Haris Amin and Oliver Letterer for their early and pioneering work on Dockerizing Swift, Tianon Gravi for his patient and informative feedback while refining the image; and all those who have contributed to its development.
>>> 
>>> Happy coding – I hope you make something excellent with this.
>>> 
>>> Tom
>> _______________________________________________
>> swift-server-dev mailing list
>> swift-server-dev at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-server-dev
> 
> _______________________________________________
> swift-server-dev mailing list
> swift-server-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-server-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20170122/86730364/attachment.html>


More information about the swift-server-dev mailing list