You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docker.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
-[Introduction](#introduction)
4
4
-[Connect to Docker](#connect-to-docker)
5
+
-[Local Docker](#local-docker)
6
+
-[Docker over SSH](#docker-over-ssh)
5
7
-[Run Code](#run-code)
6
8
-[How it works?](#how-it-works)
7
9
@@ -13,12 +15,24 @@ TweakPHP enables you to run code inside docker containers.
13
15
14
16
After you opened a project, You can click on the docker icon at top toolbar and hit the connect item. Then a modal will apear to connect to any container you want.
15
17
16
-
Select the container and specify the working directory and hit the `connect` button.
18
+
### Local Docker
19
+
20
+
Select the `local` host and then it will load the containers running on your machine. Select a container and specify the working directory and hit the `connect` button.
17
21
18
22
::: warning
19
23
Make sure the docker service is running on your machine first
20
24
:::
21
25
26
+
### Docker over SSH
27
+
28
+
Select any other SSH connections that you already have and then it will load the containers running on that machine. Select a container and specify the working directory and hit the `connect` button.
29
+
30
+
If you don't have any SSH connectinos, click on the plus icon to add one.
31
+
32
+
::: warning
33
+
Make sure the docker service is running on your host first
34
+
:::
35
+
22
36
## Run Code
23
37
24
38
Just like running code on the [Local](./start.md#run-code) mode, You can run the code on docker as well.
TweakPHP enables you to run code inside Kubernetes pods.
12
+
13
+
## Requirements
14
+
15
+
`kubectl` must be installed on your system and executable using `kubectl` command.
16
+
17
+
Also you need to have kubernetes context already set up.
18
+
19
+
## Connect to Pod
20
+
21
+
After you opened a project, You can click on the kubernetes icon at top toolbar and hit the connect item. Then a modal will apear to connect to pods.
22
+
23
+
Fill the form by selecting the context and then a namespace and the working directory on the pod.
24
+
25
+
After creating the connection, you can click on the Connect icon (WiFi) and it will load the existing pods. Select a pod and then it will connect.
26
+
27
+
## Run Code
28
+
29
+
Just like running code on the [Local](./start.md#run-code) mode, You can run the code on kubernetes as well.
30
+
31
+
## How it works?
32
+
33
+
Everytime you connect to a kubernetes pod, TweakPHP detects the PHP version installed and then copies the bundled client file (`.phar`) into the pod and then runs the code.
0 commit comments