Project

General

Profile

Docker » History » Version 36

Carsten Rose, 05.04.2023 17:39

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
| Topic | Description |
8
| /var/docker/<user> | Per user docker installation(s) |
9
| /var/docker/<user>/<instance>/config.json | Ports |
10 27 Carsten Rose
| @https://webwork20.math.uzh.ch:<port>@ | T3 FE, xdebug, PMA |
11 26 Carsten Rose
12
13 1 Benjamin Baer
<pre>
14 21 Carsten Rose
[root@webwork20]
15
16
$ cd /var/docker/
17
$ mkdir <user>
18
$ cd /var/docker/<user>
19
20
# Checkout git repo: 
21
$ git clone https://systemvcs.math.uzh.ch/it/typo3-docker.git
22
23
# rename the typo3-docker folder! <instance>
24
$ mv typo3-docker <instance>
25
26
$ cd /var/docker/<user>/<instance>
27
28
# execute bootstrap.py
29
$ python3 bootstrap.py
30 1 Benjamin Baer
</pre>
31 15 Benjamin Baer
32 30 Carsten Rose
h1. Typo3 
33 22 Carsten Rose
34
* Save personal links and ports. Best in @kpweb: webwork20/<user>@
35
* Open mentioned T3/BE: https://webwork20:xxxx/typo3/install.php
36
37 1 Benjamin Baer
!typo3_1.png!
38 22 Carsten Rose
39 1 Benjamin Baer
!typo3_2.png!
40 22 Carsten Rose
41 1 Benjamin Baer
* Choose "take me straight to the backend"
42 22 Carsten Rose
43 24 Carsten Rose
* Login > extension: add fluid styled content:
44 22 Carsten Rose
45
!clipboard-202303281403-ewftg.png!
46 1 Benjamin Baer
47 22 Carsten Rose
* Install latest qfq (https://qfq.io/download/?dir=releases) and uzh_cd (https://www.math.uzh.ch/repo/?dir=uzhcd/v9)
48 15 Benjamin Baer
* Create first page:
49 24 Carsten Rose
50 1 Benjamin Baer
!typo3_4.png!
51 15 Benjamin Baer
!typo3_5.png!
52
!typo3_6.png!
53 24 Carsten Rose
54 15 Benjamin Baer
* Under access, set page visible to true
55
* Add template to home (via plus):
56 1 Benjamin Baer
!typo3_7_t1.png!
57 16 Benjamin Baer
!typo3_7_t2.png!
58
!typo3_7_t3.png!
59
60
* Add page content > QFQ to home
61
62
!qfq_1.png!
63
64
<pre>
65
10.sql = SELECT "Hello world from QFQ, ", NOW()
66
</pre>
67
68
* Try view page on home for a first test:
69
!qfq2.png!
70
71
* As instructed, create a new page "Form" with pagecontent [QFQ] Form under Home and load the formEditor:
72
<pre>
73
file=_formEditor
74
</pre>
75
76 1 Benjamin Baer
* Reload the page
77 18 Enis Nuredini
!qfq3.png!
78
79
* Activate typo3 edit highlighting
80 17 Benjamin Baer
!t3editor.png!
81 1 Benjamin Baer
82 17 Benjamin Baer
* Done with typo3!
83
84 30 Carsten Rose
h1. PhpStorm
85 17 Benjamin Baer
86
* You need the url of the page AND the xdebug port from the installation. If you do not remember them, see config.json in your docker folder.
87 31 Carsten Rose
* PhpStorm: @File > Settings > PHP > Debug@
88
89 1 Benjamin Baer
!xdebug1.png!
90 31 Carsten Rose
91 17 Benjamin Baer
* List all of the xdebug ports of your docker containers, comma separated. REMOVE 9000, else phpstorm will still stop webwork16.
92 1 Benjamin Baer
* Add Server:
93 31 Carsten Rose
94 1 Benjamin Baer
!xdebug2.png!
95 31 Carsten Rose
96 17 Benjamin Baer
** Please give a detailed name, eg. webwork20 dev, there will be multiple deployments on the same server!
97
** Use the port for the website, not the xdebug port!
98
** You can already map the path of extension > /var/www/html/typo3conf/ext/qfq/
99 1 Benjamin Baer
** You may not see the typo3 sources:
100 31 Carsten Rose
101 1 Benjamin Baer
!xdebug3.png!
102 31 Carsten Rose
103 17 Benjamin Baer
** If you see it, map typo3_src_10.4.34 to /var/www/typo3_src (see screenshot)
104 1 Benjamin Baer
** If not, add additional sources to your phpstorm project, then do above:
105 31 Carsten Rose
106 1 Benjamin Baer
!xdebug4.png!
107 31 Carsten Rose
108 17 Benjamin Baer
*** Got to File > Settings > Directories and Add new Root Directory
109
*** Add /scratch/software/typo3
110
*** Mark typo3_src_10.4.34 as Source Folder (also extension in the qfq folder, if you haven't)
111 1 Benjamin Baer
* Finally add a new xdebug setting:
112 31 Carsten Rose
113 17 Benjamin Baer
!xdebug5.png!
114 1 Benjamin Baer
!xdebug6.png!
115 31 Carsten Rose
116 17 Benjamin Baer
** Here you can select the server you added before
117
** Remove webwork16 if you didn't remove port 9000, to not stop webwork16 by accident.
118
* Deployment path:
119 32 Carsten Rose
** Tools > Deployment > Configuration
120 31 Carsten Rose
121 17 Benjamin Baer
!xdebug7.png!
122 33 Carsten Rose
123
!clipboard-202303281446-d1okl.png!
124
125 19 Benjamin Baer
!xdebug8.png!
126 30 Carsten Rose
127 34 Carsten Rose
* Wenn gewuenscht kann der automatische Upload aktiviert werden:
128
129
!clipboard-202303281501-vsrv2.png!
130
131 1 Benjamin Baer
h1. Issues
132
133 36 Carsten Rose
* #15745