@@ -20,22 +20,20 @@ Start a docker instance with the following command:
20
20
# install download tools
21
21
apt-get install -y git wget
22
22
# install a few useful utilities
23
- apt-get install -y vim sudo
24
- # install grpc build dependencies
25
- apt-get install -y build-essential autoconf libtool
23
+ apt-get install -y vim sudo unzip
26
24
# install swift dependencies
27
25
apt-get install -y clang libicu-dev libedit-dev python-dev libxml2-dev
28
26
# install networking dependencies
29
- apt-get install -y libcurl4-openssl-dev
27
+ apt-get install -y libcurl4-openssl-dev libssl-dev libnghttp2-dev
30
28
31
29
## Install Swift
32
30
33
31
# go to /root
34
- cd
32
+ cd /root
35
33
# download and unpack swift
36
- wget https://swift.org/builds/swift-3.0.2 -release/ubuntu1604/swift-3.0.2 -RELEASE/swift-3.0.2 -RELEASE-ubuntu16.04.tar.gz
37
- tar xzf swift-3.0.2 -RELEASE-ubuntu16.04.tar.gz
38
- ln -s swift-3.0.2 -RELEASE-ubuntu16.04 swift
34
+ wget https://swift.org/builds/swift-4.2.1 -release/ubuntu1604/swift-4.2.1 -RELEASE/swift-4.2.1 -RELEASE-ubuntu16.04.tar.gz
35
+ tar xzf swift-4.2.1 -RELEASE-ubuntu16.04.tar.gz
36
+ ln -s swift-4.2.1 -RELEASE-ubuntu16.04 swift
39
37
40
38
## Add Swift to your path
41
39
@@ -50,20 +48,11 @@ Start a docker instance with the following command:
50
48
git config --global user.email <your email address>
51
49
git config --global user.name "<your name>"
52
50
53
- ## Fetch and build grpc
51
+ ## Get and build Swift gRPC
54
52
55
- git clone https://github.com/grpc/grpc-swift
56
- cd grpc-swift/third_party
57
- git clone https://github.com/grpc/grpc.git
58
- cd grpc
59
- git submodule update --init
60
- make
61
- make install
62
-
63
- ## Build the Echo sample
64
-
65
- cd
66
- cd grpc-swift/Examples/Echo/PackageManager
53
+ cd /root
54
+ git clone https://github.com/grpc/grpc-swift.git
55
+ cd grpc-swift
67
56
make
68
57
69
58
## Run the test client and server
@@ -78,11 +67,11 @@ Start a docker instance with the following command:
78
67
79
68
## To test the plugin
80
69
81
- # build and install protoc
82
- cd
83
- cd grpc-swift/third_party/grpc/third_party/protobuf
84
- make install
70
+ # download and install protoc
71
+ cd /root
72
+ wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
73
+ unzip protoc-3.5.1-linux-x86_64.zip -d /usr
74
+
85
75
# build and test the plugin
86
- cd
87
- cd grpc-swift/Plugin
88
- make test
76
+ cd /root/grpc-swift
77
+ make test-plugin
0 commit comments