@@ -143,65 +143,8 @@ For more on writing filters see:
143
143
A Go-based CLI exists to create and export npm modules, share code,
144
144
and provide runtime of magnetic kernels.
145
145
146
- Download the [ latest binary release ] ( https://github.com/iopipe/iopipe/releases ) and chmod 755 the file .
146
+ Find this tool in the [ IOpipe-Golang repo ] ( https://github.com/iopipe/iopipe-golang ) .
147
147
148
- Building from source? See [ Build & Install from source] ( #build--install-from-source ) .
149
-
150
- Alternatively, download & alias our Docker image:
151
-
152
- ``` bash
153
- $ docker pull iopipe/iopipe:trunk
154
- $ docker run --name iopipe-data iopipe/iopipe:trunk
155
- $ eval $( echo " alias iopipe='docker run --rm --volumes-from iopipe-data iopipe/iopipe:trunk'" | tee -a ~ /.bashrc)
156
- $ iopipe --help
157
- ```
158
-
159
- OS-specific packages are forthcoming.
160
-
161
- ### Command-line Examples
162
-
163
- ``` sh
164
- # Import a kernel and name it com.example.SomeScript
165
- $ iopipe import --name com.example.SomeScript - <<< ' input'
166
-
167
- # List kernels
168
- $ iopipe list
169
-
170
- # Fetch response and process it with com.example.SomeScript
171
- $ iopipe --debug exec http://localhost/some-request com.example.SomeScript
172
-
173
- # Fetch response and convert it with SomeScript, sending the result to otherhost
174
- $ iopipe --debug exec http://localhost/some-request com.example.SomeScript \
175
- http://otherhost/request
176
-
177
- # Fetch response and convert it with SomeScript, send that result to otherhost,
178
- # & converting the response with the script ResponseScript
179
- $ iopipe --debug exec http://localhost/some-request com.example.SomeScript \
180
- http://otherhost/request some.example.ResponseScript
181
-
182
- # Export an NPM module:
183
- $ iopipe export --name my-module-name http://localhost/some-request com.example.SomeScript
184
- ```
185
-
186
- ---------------------------------------
187
- Build & Install from source
188
- ---------------------------------------
189
-
190
- With a functioning golang 1.5 development environment:
191
-
192
- ``` bash
193
- $ go build
194
- $ ./iopipe --help
195
- ```
196
-
197
- Alternatively use Docker to build & deploy:
198
-
199
- ``` bash
200
- $ docker build -t iopipe-dev .
201
- $ docker run --name iopipe-data iopipe-dev
202
- $ eval $( echo " alias iopipe='docker run --rm --volumes-from iopipe-data iopipe-dev'" | tee -a ~ /.bashrc)
203
- $ iopipe --help
204
- ```
205
148
---------------------------------------
206
149
Security
207
150
---------------------------------------
0 commit comments