Skip to content

Commit f324e87

Browse files
committed
[docker] colorizer tests
1 parent 04f70fd commit f324e87

2 files changed

Lines changed: 324 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ubuntu
2+
MAINTAINER Kimbro Staken
3+
4+
RUN apt-get install -y software-properties-common python
5+
RUN add-apt-repository ppa:chris-lea/node.js
6+
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
7+
RUN apt-get update
8+
RUN apt-get install -y nodejs
9+
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
10+
RUN mkdir /var/www
11+
12+
ADD app.js /var/www/app.js
13+
14+
CMD ["/usr/bin/node", "/var/www/app.js"]
Lines changed: 310 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
[
2+
{
3+
"c": "FROM",
4+
"t": "keyword.other.special-method.dockerfile",
5+
"r": {
6+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
7+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
8+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
9+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
10+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
11+
}
12+
},
13+
{
14+
"c": " ubuntu",
15+
"t": "",
16+
"r": {
17+
"dark_plus": ".vs-dark .token",
18+
"light_plus": ".vs .token",
19+
"dark_vs": ".vs-dark .token",
20+
"light_vs": ".vs .token",
21+
"hc_black": ".hc-black .token"
22+
}
23+
},
24+
{
25+
"c": "MAINTAINER",
26+
"t": "keyword.other.special-method.dockerfile",
27+
"r": {
28+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
29+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
30+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
31+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
32+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
33+
}
34+
},
35+
{
36+
"c": " Kimbro Staken",
37+
"t": "",
38+
"r": {
39+
"dark_plus": ".vs-dark .token",
40+
"light_plus": ".vs .token",
41+
"dark_vs": ".vs-dark .token",
42+
"light_vs": ".vs .token",
43+
"hc_black": ".hc-black .token"
44+
}
45+
},
46+
{
47+
"c": "RUN",
48+
"t": "keyword.other.special-method.dockerfile",
49+
"r": {
50+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
51+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
52+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
53+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
54+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
55+
}
56+
},
57+
{
58+
"c": " apt-get install -y software-properties-common python",
59+
"t": "",
60+
"r": {
61+
"dark_plus": ".vs-dark .token",
62+
"light_plus": ".vs .token",
63+
"dark_vs": ".vs-dark .token",
64+
"light_vs": ".vs .token",
65+
"hc_black": ".hc-black .token"
66+
}
67+
},
68+
{
69+
"c": "RUN",
70+
"t": "keyword.other.special-method.dockerfile",
71+
"r": {
72+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
73+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
74+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
75+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
76+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
77+
}
78+
},
79+
{
80+
"c": " add-apt-repository ppa:chris-lea/node.js",
81+
"t": "",
82+
"r": {
83+
"dark_plus": ".vs-dark .token",
84+
"light_plus": ".vs .token",
85+
"dark_vs": ".vs-dark .token",
86+
"light_vs": ".vs .token",
87+
"hc_black": ".hc-black .token"
88+
}
89+
},
90+
{
91+
"c": "RUN",
92+
"t": "keyword.other.special-method.dockerfile",
93+
"r": {
94+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
95+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
96+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
97+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
98+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
99+
}
100+
},
101+
{
102+
"c": " echo ",
103+
"t": "",
104+
"r": {
105+
"dark_plus": ".vs-dark .token",
106+
"light_plus": ".vs .token",
107+
"dark_vs": ".vs-dark .token",
108+
"light_vs": ".vs .token",
109+
"hc_black": ".hc-black .token"
110+
}
111+
},
112+
{
113+
"c": "\"deb http://us.archive.ubuntu.com/ubuntu/ precise universe\"",
114+
"t": "dockerfile.string.quoted.double",
115+
"r": {
116+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string",
117+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string",
118+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.string",
119+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.string",
120+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.string"
121+
}
122+
},
123+
{
124+
"c": " >> /etc/apt/sources.list",
125+
"t": "",
126+
"r": {
127+
"dark_plus": ".vs-dark .token",
128+
"light_plus": ".vs .token",
129+
"dark_vs": ".vs-dark .token",
130+
"light_vs": ".vs .token",
131+
"hc_black": ".hc-black .token"
132+
}
133+
},
134+
{
135+
"c": "RUN",
136+
"t": "keyword.other.special-method.dockerfile",
137+
"r": {
138+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
139+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
140+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
141+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
142+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
143+
}
144+
},
145+
{
146+
"c": " apt-get update",
147+
"t": "",
148+
"r": {
149+
"dark_plus": ".vs-dark .token",
150+
"light_plus": ".vs .token",
151+
"dark_vs": ".vs-dark .token",
152+
"light_vs": ".vs .token",
153+
"hc_black": ".hc-black .token"
154+
}
155+
},
156+
{
157+
"c": "RUN",
158+
"t": "keyword.other.special-method.dockerfile",
159+
"r": {
160+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
161+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
162+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
163+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
164+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
165+
}
166+
},
167+
{
168+
"c": " apt-get install -y nodejs",
169+
"t": "",
170+
"r": {
171+
"dark_plus": ".vs-dark .token",
172+
"light_plus": ".vs .token",
173+
"dark_vs": ".vs-dark .token",
174+
"light_vs": ".vs .token",
175+
"hc_black": ".hc-black .token"
176+
}
177+
},
178+
{
179+
"c": "#",
180+
"t": "dockerfile.comment.line.number-sign.punctuation.definition",
181+
"r": {
182+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.comment",
183+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.comment",
184+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.comment",
185+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.comment",
186+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.comment"
187+
}
188+
},
189+
{
190+
"c": "RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1",
191+
"t": "dockerfile.comment.line.number-sign",
192+
"r": {
193+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.comment",
194+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.comment",
195+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.comment",
196+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.comment",
197+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.comment"
198+
}
199+
},
200+
{
201+
"c": "RUN",
202+
"t": "keyword.other.special-method.dockerfile",
203+
"r": {
204+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
205+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
206+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
207+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
208+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
209+
}
210+
},
211+
{
212+
"c": " mkdir /var/www",
213+
"t": "",
214+
"r": {
215+
"dark_plus": ".vs-dark .token",
216+
"light_plus": ".vs .token",
217+
"dark_vs": ".vs-dark .token",
218+
"light_vs": ".vs .token",
219+
"hc_black": ".hc-black .token"
220+
}
221+
},
222+
{
223+
"c": "ADD",
224+
"t": "keyword.other.special-method.dockerfile",
225+
"r": {
226+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
227+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
228+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
229+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
230+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
231+
}
232+
},
233+
{
234+
"c": " app.js /var/www/app.js",
235+
"t": "",
236+
"r": {
237+
"dark_plus": ".vs-dark .token",
238+
"light_plus": ".vs .token",
239+
"dark_vs": ".vs-dark .token",
240+
"light_vs": ".vs .token",
241+
"hc_black": ".hc-black .token"
242+
}
243+
},
244+
{
245+
"c": "CMD",
246+
"t": "keyword.other.special-method.dockerfile",
247+
"r": {
248+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword",
249+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword",
250+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.keyword",
251+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.keyword",
252+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.keyword"
253+
}
254+
},
255+
{
256+
"c": " [",
257+
"t": "",
258+
"r": {
259+
"dark_plus": ".vs-dark .token",
260+
"light_plus": ".vs .token",
261+
"dark_vs": ".vs-dark .token",
262+
"light_vs": ".vs .token",
263+
"hc_black": ".hc-black .token"
264+
}
265+
},
266+
{
267+
"c": "\"/usr/bin/node\"",
268+
"t": "dockerfile.string.quoted.double",
269+
"r": {
270+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string",
271+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string",
272+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.string",
273+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.string",
274+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.string"
275+
}
276+
},
277+
{
278+
"c": ", ",
279+
"t": "",
280+
"r": {
281+
"dark_plus": ".vs-dark .token",
282+
"light_plus": ".vs .token",
283+
"dark_vs": ".vs-dark .token",
284+
"light_vs": ".vs .token",
285+
"hc_black": ".hc-black .token"
286+
}
287+
},
288+
{
289+
"c": "\"/var/www/app.js\"",
290+
"t": "dockerfile.string.quoted.double",
291+
"r": {
292+
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string",
293+
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string",
294+
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.string",
295+
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.string",
296+
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.string"
297+
}
298+
},
299+
{
300+
"c": "] ",
301+
"t": "",
302+
"r": {
303+
"dark_plus": ".vs-dark .token",
304+
"light_plus": ".vs .token",
305+
"dark_vs": ".vs-dark .token",
306+
"light_vs": ".vs .token",
307+
"hc_black": ".hc-black .token"
308+
}
309+
}
310+
]

0 commit comments

Comments
 (0)