Help us understand the problem. What is going on with this article?

Linux 版 Swift を Mac 上で Docker を使って手っ取り早く試す

More than 3 years have passed since last update.

ついに Swift が OSS 化されました。
そして、Docker image も公開されているので、Mac で手っ取り早く動かしてみたい方向けにログを残しておきます。

必要なもの

VirtualBox

無ければ ここ から入れる

Docker & Docker Machine

無ければ

$ brew install docker
$ brew install docker-machine

で入れる

起動する

$ docker-machine create --driver virtualbox dev
$ eval "$(docker-machine env dev)"
$ docker pull swiftdocker/swift
$ docker run -i -t --name swiftfun swiftdocker/swift:latest /bin/bash
$ docker start swiftfun
$ docker attach swiftfun

以上です。
後は Swift で Repl が起動しますので色々試してみてください。

スクリーンショット 2015-12-04 19.49.33.png

一回 docker コンテナから抜けた場合は、start, attach を行えば OK です。

Enjoy Swift!

taketin
最近は iOSアプリケーション をメインに開発しています
https://github.com/taketin
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした