Docker » History » Version 64
Carsten Rose, 18.04.2023 14:15
1 | 1 | Benjamin Baer | h1. Docker |
---|---|---|---|
2 | 15 | Benjamin Baer | |
3 | 29 | Carsten Rose | {{toc}} |
4 | 28 | Carsten Rose | |
5 | 26 | Carsten Rose | Handout |
6 | |||
7 | 38 | Carsten Rose | | *Topic* | *Description* | |
8 | 58 | Carsten Rose | | GIT Repo ssh | @git@systemvcs.math.uzh.ch:it/typo3-docker.git@ | |
9 | | GIT Repo http | @https://systemvcs.math.uzh.ch/it/typo3-docker.git@ | |
||
10 | 56 | Carsten Rose | | Docker Host | @webwork20@ - alle Befehle werden als `root` ausgefuehrt | |
11 | 51 | Carsten Rose | | Docker Verzeichnis | @/var/docker/<username>@ | |
12 | 52 | Carsten Rose | | Konfiguration / Ports | @/var/docker/<username>/<username_instancename>/config.json @ | |
13 | 64 | Carsten Rose | | Save in kpdev | @Root > webwork20 > webwork20/crose_qfq [docker]@ | |
14 | 51 | Carsten Rose | | T3 FE, xdebug, PMA | @https://webwork20.math.uzh.ch:<port>@ | |
15 | | Start Docker | @docker compose up -d@ | |
||
16 | | Stop Docker | @docker compose down@ | |
||
17 | 60 | Carsten Rose | | *Update Docker Image* | @docker compose down; git pull; docker compose build; docker compose up -d@ | |
18 | 54 | Carsten Rose | |
19 | 26 | Carsten Rose | |
20 | |||
21 | 1 | Benjamin Baer | <pre> |
22 | 21 | Carsten Rose | [root@webwork20] |
23 | |||
24 | $ cd /var/docker/ |
||
25 | 40 | Carsten Rose | $ mkdir <username> |
26 | 1 | Benjamin Baer | $ cd /var/docker/<username> |
27 | |||
28 | 59 | Carsten Rose | # Checkout git repo - decide to if you like to use 'http' or 'ssh'. |
29 | # You can change later, check: https://wiki.math.uzh.ch/public/Git#Change_Repo:_http_.3E_ssh |
||
30 | 58 | Carsten Rose | |
31 | # http: you have to specify username/password for every remote GIT action. |
||
32 | 1 | Benjamin Baer | $ git clone https://systemvcs.math.uzh.ch/it/typo3-docker.git <username_instancename> |
33 | 58 | Carsten Rose | |
34 | # ssh: username/password is given automatically, login via ssh-agent forward: ssh -A root@webwork20 |
||
35 | 61 | Carsten Rose | $ git clone git@systemvcs.math.uzh.ch:it/typo3-docker.git <username_instancename> |
36 | 58 | Carsten Rose | |
37 | # Main Branch ist Typo3 V10 |
||
38 | 37 | Carsten Rose | |
39 | 39 | Carsten Rose | # In case T3 V11 should be used |
40 | 21 | Carsten Rose | $ git checkout typo11 |
41 | |||
42 | 40 | Carsten Rose | $ cd /var/docker/<username>/<username_instancename> |
43 | 21 | Carsten Rose | |
44 | # execute bootstrap.py |
||
45 | $ python3 bootstrap.py |
||
46 | 1 | Benjamin Baer | </pre> |
47 | 64 | Carsten Rose | |
48 | * Create a keepass entry in @kpdev@ under webwork20, incl. your instance password. |
||
49 | 15 | Benjamin Baer | |
50 | 30 | Carsten Rose | h1. Typo3 |
51 | 22 | Carsten Rose | |
52 | * Save personal links and ports. Best in @kpweb: webwork20/<user>@ |
||
53 | * Open mentioned T3/BE: https://webwork20:xxxx/typo3/install.php |
||
54 | |||
55 | 1 | Benjamin Baer | !typo3_1.png! |
56 | 22 | Carsten Rose | |
57 | 1 | Benjamin Baer | !typo3_2.png! |
58 | 22 | Carsten Rose | |
59 | 1 | Benjamin Baer | * Choose "take me straight to the backend" |
60 | 22 | Carsten Rose | |
61 | 63 | Carsten Rose | * Login > extension: add a) fluid styled content, b) typo3 edit highlighting |
62 | 22 | Carsten Rose | |
63 | !clipboard-202303281403-ewftg.png! |
||
64 | 1 | Benjamin Baer | |
65 | 63 | Carsten Rose | !t3editor.png! |
66 | |||
67 | |||
68 | 22 | Carsten Rose | * Install latest qfq (https://qfq.io/download/?dir=releases) and uzh_cd (https://www.math.uzh.ch/repo/?dir=uzhcd/v9) |
69 | 15 | Benjamin Baer | * Create first page: |
70 | 24 | Carsten Rose | |
71 | 1 | Benjamin Baer | !typo3_4.png! |
72 | 15 | Benjamin Baer | !typo3_5.png! |
73 | !typo3_6.png! |
||
74 | 24 | Carsten Rose | |
75 | 15 | Benjamin Baer | * Under access, set page visible to true |
76 | * Add template to home (via plus): |
||
77 | 1 | Benjamin Baer | !typo3_7_t1.png! |
78 | 16 | Benjamin Baer | !typo3_7_t2.png! |
79 | !typo3_7_t3.png! |
||
80 | |||
81 | * Add page content > QFQ to home |
||
82 | |||
83 | !qfq_1.png! |
||
84 | |||
85 | <pre> |
||
86 | 10.sql = SELECT "Hello world from QFQ, ", NOW() |
||
87 | </pre> |
||
88 | |||
89 | * Try view page on home for a first test: |
||
90 | !qfq2.png! |
||
91 | |||
92 | * As instructed, create a new page "Form" with pagecontent [QFQ] Form under Home and load the formEditor: |
||
93 | <pre> |
||
94 | file=_formEditor |
||
95 | 18 | Enis Nuredini | </pre> |
96 | |||
97 | * Reload the page |
||
98 | 17 | Benjamin Baer | !qfq3.png! |
99 | 1 | Benjamin Baer | |
100 | 17 | Benjamin Baer | * Done with typo3! |
101 | |||
102 | 30 | Carsten Rose | h1. PhpStorm |
103 | 17 | Benjamin Baer | |
104 | 43 | Carsten Rose | * You need the url of the page AND the xdebug port from the installation. If you do not remember them, check @/var/docker/<username>/<username_instancename>/config.json@. |
105 | 31 | Carsten Rose | * PhpStorm: @File > Settings > PHP > Debug@ |
106 | |||
107 | 1 | Benjamin Baer | !xdebug1.png! |
108 | 31 | Carsten Rose | |
109 | 17 | Benjamin Baer | * List all of the xdebug ports of your docker containers, comma separated. REMOVE 9000, else phpstorm will still stop webwork16. |
110 | 1 | Benjamin Baer | * Add Server: |
111 | 31 | Carsten Rose | |
112 | 1 | Benjamin Baer | !xdebug2.png! |
113 | 31 | Carsten Rose | |
114 | 17 | Benjamin Baer | ** Please give a detailed name, eg. webwork20 dev, there will be multiple deployments on the same server! |
115 | ** Use the port for the website, not the xdebug port! |
||
116 | ** You can already map the path of extension > /var/www/html/typo3conf/ext/qfq/ |
||
117 | 1 | Benjamin Baer | ** You may not see the typo3 sources: |
118 | 31 | Carsten Rose | |
119 | 1 | Benjamin Baer | !xdebug3.png! |
120 | 31 | Carsten Rose | |
121 | 17 | Benjamin Baer | ** If you see it, map typo3_src_10.4.34 to /var/www/typo3_src (see screenshot) |
122 | 1 | Benjamin Baer | ** If not, add additional sources to your phpstorm project, then do above: |
123 | 31 | Carsten Rose | |
124 | 1 | Benjamin Baer | !xdebug4.png! |
125 | 31 | Carsten Rose | |
126 | 17 | Benjamin Baer | *** Got to File > Settings > Directories and Add new Root Directory |
127 | *** Add /scratch/software/typo3 |
||
128 | *** Mark typo3_src_10.4.34 as Source Folder (also extension in the qfq folder, if you haven't) |
||
129 | 1 | Benjamin Baer | * Finally add a new xdebug setting: |
130 | 31 | Carsten Rose | |
131 | 17 | Benjamin Baer | !xdebug5.png! |
132 | 1 | Benjamin Baer | !xdebug6.png! |
133 | 31 | Carsten Rose | |
134 | 17 | Benjamin Baer | ** Here you can select the server you added before |
135 | ** Remove webwork16 if you didn't remove port 9000, to not stop webwork16 by accident. |
||
136 | * Deployment path: |
||
137 | 32 | Carsten Rose | ** Tools > Deployment > Configuration |
138 | 31 | Carsten Rose | |
139 | 17 | Benjamin Baer | !xdebug7.png! |
140 | 33 | Carsten Rose | |
141 | !clipboard-202303281446-d1okl.png! |
||
142 | |||
143 | 19 | Benjamin Baer | !xdebug8.png! |
144 | 30 | Carsten Rose | |
145 | 34 | Carsten Rose | * Wenn gewuenscht kann der automatische Upload aktiviert werden: |
146 | |||
147 | !clipboard-202303281501-vsrv2.png! |
||
148 | |||
149 | 49 | Carsten Rose | h1. Tipps |
150 | |||
151 | 50 | Carsten Rose | * If the FormEditor is broken and has problems to show note.gif, the baseUrl is probably not configure in QFQ setup. |
152 | 49 | Carsten Rose | * Configure correct Site entry point |
153 | |||
154 | !clipboard-202304081911-mfwna.png! |
||
155 | |||
156 | 1 | Benjamin Baer | h1. Issues |
157 | |||
158 | 36 | Carsten Rose | * #15745 |
159 | 62 | Carsten Rose | |
160 | h1. PHPUnit Tests |