vagrant-turbo 0.0.2.pre-x86-mingw32 → 0.0.3.pre-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +46 -2
- data/lib/vagrant-turbo/config.rb +1 -0
- data/lib/vagrant-turbo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5acb33cd180c2827f9f14a67e265bf01ee3b1934
|
|
4
|
+
data.tar.gz: 85fde364b4eccfafd901b45044fde13439b7390a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4104aa67a9236368bb0bb536a1f19985959b3f515583e6a86318c1fe0c0b97d06f3a81ede56933f12dbed53709b665a8ebdbb3e4ab83e375e80a61168afda3d9
|
|
7
|
+
data.tar.gz: 272e0f4f21a5c40c1dade209f41d3ab4ae2061a371c7806aaebbdbef3f2e772f771169046c35cea1de87e5e6383e84bba69e7b686eaaa5693105dc1730b56399
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ The plugin supports a subset of features available in Turbo Console and Turbo Sh
|
|
|
5
5
|
* Install the latest version of the Turbo Plugin
|
|
6
6
|
* Login to the Turbo Hub
|
|
7
7
|
* Run a Turbo container
|
|
8
|
-
*
|
|
8
|
+
* Add an image to the local repository
|
|
9
9
|
* Build an image using Turbo Shell
|
|
10
10
|
* Manage quota for remote shells
|
|
11
11
|
|
|
@@ -90,7 +90,7 @@ turbo.run :r do |r|
|
|
|
90
90
|
end
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
`turbo run` parameters were explained in the [reference
|
|
93
|
+
`turbo run` parameters were explained in the [reference](https://turbo.net/docs/reference#run).
|
|
94
94
|
|
|
95
95
|
Vagrant extension offers extra arguments which simplify execution of bat and PowerShell scripts inside a container.
|
|
96
96
|
|
|
@@ -124,6 +124,50 @@ end
|
|
|
124
124
|
|
|
125
125
|
Using `path`, `inline`, `startup_file` parameters together in one run block is currently not supported.
|
|
126
126
|
|
|
127
|
+
### Add an image to the local repository
|
|
128
|
+
Define import block to build an image from the specified file on guest machine and add it to the local repository.
|
|
129
|
+
Supported file formats include exe, msi and svm.
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
turbo.import :i do |i|
|
|
133
|
+
i.name = "chocolatey/chocolatey"
|
|
134
|
+
i.path = "C:\\vagrant\\chocolatey.svm"
|
|
135
|
+
i.overwrite = true
|
|
136
|
+
i.format = "svm"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Detailed specification of turbo import is described in [reference](https://turbo.net/docs/reference/command-line#import).
|
|
141
|
+
|
|
142
|
+
### Build an image using Turbo Shell
|
|
143
|
+
shell block allows to specify Turbo Shell instructions which should be executed in provisioning.
|
|
144
|
+
Instructions can be defined in TurboScript or passed inline.
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
turbo.shell :s do |s|
|
|
148
|
+
s.path = "C:\\sources\\turbo.me"
|
|
149
|
+
end
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
TurboScript file should be available on host machine.
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
turbo.shell :s do |s|
|
|
156
|
+
s.inline = <<-EOS
|
|
157
|
+
layer clean
|
|
158
|
+
using wget
|
|
159
|
+
setworkdir C:\\
|
|
160
|
+
cmd wget.exe http://downloads.sourceforge.net/sevenzip/7z920.exe
|
|
161
|
+
env path="@PROGRAMFILESX86@\\7-zip"
|
|
162
|
+
startup file ("@PROGRAMFILESX86@\\7-zip\\7zFM.exe")
|
|
163
|
+
cmd del C:\\7z920.exe /Q
|
|
164
|
+
commit --no-base --overwrite 7zip
|
|
165
|
+
EOS
|
|
166
|
+
end
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Check [TurboScript reference](https://turbo.net/docs/reference/turboscript) to get the complete list of available commands.
|
|
170
|
+
|
|
127
171
|
### Manage quota for remote shells
|
|
128
172
|
Vagrant executes provisioning using Windows Remote Management (WinRM).
|
|
129
173
|
This environment is restricted by a set of quotas including maximum amount of memory allocated per shell.
|
data/lib/vagrant-turbo/config.rb
CHANGED