##// END OF EJS Templates
init...
jeandet -
r0:d5deaede3a4f
parent child
Show More
@@ -0,0 +1,359
1 {
2 "cells": [
3 {
4 "cell_type": "code",
5 "execution_count": 1,
6 "metadata": {
7 "ExecuteTime": {
8 "end_time": "2018-01-08T23:20:39.306357Z",
9 "start_time": "2018-01-08T23:20:39.297432Z"
10 },
11 "init_cell": true
12 },
13 "outputs": [],
14 "source": [
15 "from traitlets.config.manager import BaseJSONConfigManager\n",
16 "from traitlets.config.manager import BaseJSONConfigManager\n",
17 "path = \"/home/jeandet/.jupyter/nbconfig\"\n",
18 "cm = BaseJSONConfigManager(config_dir=path)\n",
19 "cm.update(\"livereveal\", {\n",
20 " \"theme\": \"solarized\",\n",
21 " \"transition\": \"zoom\",\n",
22 " \"start_slideshow_at\": \"selected\"\n",
23 "});\n"
24 ]
25 },
26 {
27 "cell_type": "markdown",
28 "metadata": {
29 "slideshow": {
30 "slide_type": "slide"
31 }
32 },
33 "source": [
34 "# TeamCity\n",
35 "\n",
36 "<center>\n",
37 "<img src=\"resources/teamcity-logo.svg\" width=\"300px\" align=\"center\">\n",
38 "</center>"
39 ]
40 },
41 {
42 "cell_type": "markdown",
43 "metadata": {
44 "slideshow": {
45 "slide_type": "slide"
46 }
47 },
48 "source": [
49 "# TC Overview\n",
50 "\n",
51 "* A powerful distributed Continuous Integration tool\n",
52 "* Rich plugin ecosystem\n",
53 "* Really customizable system\n",
54 "* Not so complex...\n",
55 "* Mostly written in Java\n",
56 "* Closed source :("
57 ]
58 },
59 {
60 "cell_type": "markdown",
61 "metadata": {
62 "slideshow": {
63 "slide_type": "slide"
64 }
65 },
66 "source": [
67 "# TC Plugins (335 on [JetBrains website](https://plugins.jetbrains.com/teamcity) )\n",
68 "\n",
69 "* Web Hooks plugin \n",
70 "* AWS S3 Artifact Storage \n",
71 "* Google Cloud Agents \n",
72 "* Docker Cloud \n",
73 "* Debian Package Server \n",
74 "* Slack Build Notifier\n",
75 "\n",
76 "\n",
77 "** Installation as simple as uploading a zip file! **\n",
78 "\n"
79 ]
80 },
81 {
82 "cell_type": "markdown",
83 "metadata": {
84 "ExecuteTime": {
85 "end_time": "2018-01-02T20:14:04.757140Z",
86 "start_time": "2018-01-02T20:14:04.749828Z"
87 },
88 "slideshow": {
89 "slide_type": "slide"
90 }
91 },
92 "source": [
93 "# Vocabulary\n",
94 "\n",
95 "* **Agent**: <span style=\"color:blue\">where stuff is done</span>"
96 ]
97 },
98 {
99 "cell_type": "markdown",
100 "metadata": {
101 "slideshow": {
102 "slide_type": "fragment"
103 }
104 },
105 "source": [
106 "* **Build step**: <span style=\"color:blue\">the smallest build task subdivision</span> ( [example](https://hephaistos.lpp.polytechnique.fr/teamcity/admin/editBuildRunners.html?id=buildType:SciQLop_UnitTests) ) "
107 ]
108 },
109 {
110 "cell_type": "markdown",
111 "metadata": {
112 "slideshow": {
113 "slide_type": "fragment"
114 }
115 },
116 "source": [
117 "* **Build config**: <span style=\"color:blue\">a collection of build steps </span> ( [example](https://hephaistos.lpp.polytechnique.fr/teamcity/admin/editBuild.html?id=buildType:SciQLop_UnitTests) )"
118 ]
119 },
120 {
121 "cell_type": "markdown",
122 "metadata": {
123 "slideshow": {
124 "slide_type": "fragment"
125 }
126 },
127 "source": [
128 "* **VCS root**: <span style=\"color:blue\">a mostly a vcs URL + some options </span> ( [example](https://hephaistos.lpp.polytechnique.fr/teamcity/admin/editVcsRoot.html?action=editVcsRoot&vcsRootId=SciQLop_HttpsHephaistosLppPolytechniqueFrRhodecodeHgRepositoriesLppSciQLOPReposS&editingScope=buildType%3ASciQLop_UnitTests&cameFromUrl=%2Fteamcity%2Fadmin%2FeditBuildTypeVcsRoots.html%3Finit%3D1%26id%3DbuildType%253ASciQLop_UnitTests&cameFromTitle=Edit%20Build%20Configuration) )"
129 ]
130 },
131 {
132 "cell_type": "markdown",
133 "metadata": {
134 "slideshow": {
135 "slide_type": "fragment"
136 }
137 },
138 "source": [
139 "* **Project**: <span style=\"color:blue\">a collection of build configs + VCS + settings </span> ( [example](https://hephaistos.lpp.polytechnique.fr/teamcity/admin/editProject.html?projectId=SciQLop) )"
140 ]
141 },
142 {
143 "cell_type": "markdown",
144 "metadata": {
145 "slideshow": {
146 "slide_type": "fragment"
147 }
148 },
149 "source": [
150 "* **Build artifact**: <span style=\"color:blue\">a file or a folder produced during the build </span> ( [example](https://hephaistos.lpp.polytechnique.fr/teamcity/overview.html) )"
151 ]
152 },
153 {
154 "cell_type": "markdown",
155 "metadata": {
156 "slideshow": {
157 "slide_type": "slide"
158 }
159 },
160 "source": [
161 "# LPP goals (What we want)\n",
162 "\n",
163 "\n",
164 "* Being able to build on different OS"
165 ]
166 },
167 {
168 "cell_type": "markdown",
169 "metadata": {
170 "ExecuteTime": {
171 "end_time": "2018-01-08T19:36:05.070215Z",
172 "start_time": "2018-01-08T19:36:05.066706Z"
173 },
174 "slideshow": {
175 "slide_type": "fragment"
176 }
177 },
178 "source": [
179 "* Build inside a clean environment"
180 ]
181 },
182 {
183 "cell_type": "markdown",
184 "metadata": {
185 "ExecuteTime": {
186 "end_time": "2018-01-08T19:36:05.399625Z",
187 "start_time": "2018-01-08T19:36:05.394453Z"
188 },
189 "slideshow": {
190 "slide_type": "fragment"
191 }
192 },
193 "source": [
194 "* Produce compatibility matrices"
195 ]
196 },
197 {
198 "cell_type": "markdown",
199 "metadata": {
200 "slideshow": {
201 "slide_type": "fragment"
202 }
203 },
204 "source": [
205 "* Being faster than Travis"
206 ]
207 },
208 {
209 "cell_type": "markdown",
210 "metadata": {
211 "slideshow": {
212 "slide_type": "fragment"
213 }
214 },
215 "source": [
216 "* Customize workflow"
217 ]
218 },
219 {
220 "cell_type": "markdown",
221 "metadata": {
222 "slideshow": {
223 "slide_type": "slide"
224 }
225 },
226 "source": [
227 "# LPP Setup\n",
228 "<center>\n",
229 "<img src=\"resources/Setup LPP.png\" width=\"60%\" align=\"center\">\n",
230 "</center>"
231 ]
232 },
233 {
234 "cell_type": "markdown",
235 "metadata": {},
236 "source": [
237 "# Available build agents\n",
238 "\n",
239 "* Based on Docker cloud plugin\n",
240 "* Virtually anything that runs either inside **Docker** or **VirtualBox**(Vagrant)\n",
241 "* Spawn on demand\n",
242 "* For now **Windows**, **Linux**(Fedora, Ubuntu), **FreeBSD** and **Mac OSX** 10.12.2(Siera)\n"
243 ]
244 },
245 {
246 "cell_type": "markdown",
247 "metadata": {
248 "slideshow": {
249 "slide_type": "slide"
250 }
251 },
252 "source": [
253 "# I want to choose where I get built!\n",
254 "\n",
255 "**Team city introduce the notion of build requirements.**\n",
256 "\n",
257 "- Agents expose [parameters](https://hephaistos.lpp.polytechnique.fr/teamcity/agentDetails.html?agentTypeId=72&tab=agentParameters)(<=> properties). [sources](https://github.com/jeandet/teamcity-docker-complete-agent/blob/master/Dockerfile#L36)\n",
258 "\n",
259 "- So for each build config ones can declare some [requirements](https://hephaistos.lpp.polytechnique.fr/teamcity/admin/editRequirements.html?id=buildType:Miniphare_Build) that the agent has to match."
260 ]
261 },
262 {
263 "cell_type": "markdown",
264 "metadata": {
265 "slideshow": {
266 "slide_type": "slide"
267 }
268 },
269 "source": [
270 "# What about reports?\n"
271 ]
272 },
273 {
274 "cell_type": "markdown",
275 "metadata": {
276 "slideshow": {
277 "slide_type": "slide"
278 }
279 },
280 "source": [
281 "# API?"
282 ]
283 },
284 {
285 "cell_type": "markdown",
286 "metadata": {
287 "slideshow": {
288 "slide_type": "slide"
289 }
290 },
291 "source": [
292 "# Time to play!"
293 ]
294 }
295 ],
296 "metadata": {
297 "celltoolbar": "Slideshow",
298 "kernelspec": {
299 "display_name": "Python 3",
300 "language": "python",
301 "name": "python3"
302 },
303 "language_info": {
304 "codemirror_mode": {
305 "name": "ipython",
306 "version": 3
307 },
308 "file_extension": ".py",
309 "mimetype": "text/x-python",
310 "name": "python",
311 "nbconvert_exporter": "python",
312 "pygments_lexer": "ipython3",
313 "version": "3.6.3"
314 },
315 "toc": {
316 "nav_menu": {},
317 "number_sections": true,
318 "sideBar": true,
319 "skip_h1_title": false,
320 "title_cell": "Table of Contents",
321 "title_sidebar": "Contents",
322 "toc_cell": false,
323 "toc_position": {},
324 "toc_section_display": true,
325 "toc_window_display": false
326 },
327 "varInspector": {
328 "cols": {
329 "lenName": 16,
330 "lenType": 16,
331 "lenVar": 40
332 },
333 "kernels_config": {
334 "python": {
335 "delete_cmd_postfix": "",
336 "delete_cmd_prefix": "del ",
337 "library": "var_list.py",
338 "varRefreshCmd": "print(var_dic_list())"
339 },
340 "r": {
341 "delete_cmd_postfix": ") ",
342 "delete_cmd_prefix": "rm(",
343 "library": "var_list.r",
344 "varRefreshCmd": "cat(var_dic_list()) "
345 }
346 },
347 "types_to_exclude": [
348 "module",
349 "function",
350 "builtin_function_or_method",
351 "instance",
352 "_Feature"
353 ],
354 "window_display": false
355 }
356 },
357 "nbformat": 4,
358 "nbformat_minor": 2
359 }
1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
@@ -0,0 +1,1
1 <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128.01 128.01" width="2500" height="2500"><defs><linearGradient id="b" x1="66.73" y1="-662.84" x2="26.4" y2="-613.01" gradientTransform="matrix(1 0 0 -1 0 -585.01)" gradientUnits="userSpaceOnUse"><stop offset=".06" stop-color="#0cb0f2"/><stop offset=".21" stop-color="#10adf2"/><stop offset=".37" stop-color="#1ea5f3"/><stop offset=".54" stop-color="#3497f5"/><stop offset=".71" stop-color="#5283f7"/><stop offset=".88" stop-color="#796af9"/><stop offset=".97" stop-color="#905cfb"/></linearGradient><linearGradient id="a" x1="20.9" y1="-706.33" x2="41.11" y2="-659.59" gradientTransform="matrix(1 0 0 -1 0 -585.01)" gradientUnits="userSpaceOnUse"><stop offset=".06" stop-color="#0cb0f2"/><stop offset=".2" stop-color="#0db2ee"/><stop offset=".35" stop-color="#12b7e0"/><stop offset=".51" stop-color="#19c0ca"/><stop offset=".68" stop-color="#23ccac"/><stop offset=".85" stop-color="#30dc85"/><stop offset=".97" stop-color="#3bea62"/></linearGradient><linearGradient id="c" x1="48.62" y1="-644.91" x2="88.12" y2="-594.24" xlink:href="#a"/><linearGradient id="d" x1="63.99" y1="-609.92" x2="63.99" y2="-689.92" gradientTransform="matrix(1 0 0 -1 0 -585.01)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1"/></linearGradient></defs><title>icon_TeamCity</title><path d="M45.92 2.92a25 25 0 0 0-5.53-2c-25.7-6.1-44.8 19.1-34.3 42 .1.1 18.7 40.9 21.7 47.4 0 0 34.2-15.7 41.2-31.8 6.48-15-4.45-42.38-6.45-46.49z" fill="url(#b)"/><path d="M123.19 48.43a24.36 24.36 0 0 0-8.6-8c-.1 0-24.1-13.2-24.1-13.2S8.09 75 8 75.13c-9.3 10.6-11.4 27.4-.7 42a25.22 25.22 0 0 0 13 9.2c9.7 3 18.3 1.8 25.5-2 .2-.1 67.7-35.9 67.9-36.1 13.19-6.9 19.3-24.5 9.49-39.8z" fill="#0cb0f2"/><path d="M38.42 37.94l-22 27-8.53 10.19c-9.3 10.6-11.4 27.4-.7 42a25.22 25.22 0 0 0 13 9.2c9.7 3 18.4 1.8 25.6-2 0 0 1.7-.9 4.6-2.5 9.14-4.94 21.75-38.15 30.35-63.83z" fill="url(#a)"/><path d="M73 63.93L90.49 27a.1.1 0 0 1 .1-.1c.1-.3 1.5-3.9 1.6-4.1a17 17 0 0 0-1.8-15.9 14.29 14.29 0 0 0-8.9-6.3 16.4 16.4 0 0 0-17.1 5.7c-.1.1-3.9 4.5-3.9 4.5l-28 34.5z" fill="url(#c)"/><path fill="url(#d)" d="M23.99 23.93h80v80h-80z"/><path fill="#fff" d="M42.79 41.63h-10.8v-7h29.3v7h-10.7v27.59h-7.8V41.63zM61.29 52c0-10 7.4-18.1 18.1-18.1 6.5 0 10.5 2.2 13.7 5.4l-4.9 5.6c-2.7-2.4-5.4-3.9-8.9-3.9-5.8 0-10.1 4.9-10.1 10.8v.1c0 6 4.1 10.9 10.1 10.9 4 0 6.4-1.6 9.1-4.1l4.9 4.9c-3.6 3.8-7.5 6.2-14.2 6.2A17.41 17.41 0 0 1 61.29 52m-29.3 35.93h29.3v5.3h-29.3z"/></svg> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now