Project

General

Profile

Docker » History » Version 40

Carsten Rose, 08.04.2023 11:51

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