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
|`build [tag]`| Build and tag an image ready for production. |
55
-
|`push [tag]`| Push the latest image to the container registry defined in `REGISTRY`. |
56
-
|`deploy [tag]`| Deploy to Kubernetes |
54
+
|`build <tag>`| Build and tag an image ready for production. |
55
+
|`push <tag>`| Push the latest image to the container registry defined in `REGISTRY`. |
56
+
|`deploy <tag>`| Deploy to Kubernetes |
57
57
|`exec [...]`| Run arbitrary commands inside the running application container. For example: `dock exec bash` to open an interactive shell in the running app container. |
58
58
|`kubectl [...]`| Run `kubectl` with the context defined in `KUBERNETES_CONTEXT`. |
59
59
|`test [...]`| Run `phpunit` inside the running application container. For example: `dock test --filter ExampleTest`. |
@@ -64,7 +64,7 @@ By default, Apache binds to port 80, MySQL to port 3306 and Redis to port 6379.
64
64
65
65
# Kubernetes
66
66
67
-
You can deploy the Laravel application, including MySQL, Redis, Horizon and a scheduler by applying the [`kubernetes.yaml`](https://github.com/jarnovanleeuwen/laravel-dock/blob/master/build/kubernetes.yaml) config. The example assumes that you are using external (managed) services for MySQL and Redis, but this can be modified to run your own containers using persistent volumes.
67
+
You can deploy the Laravel application, including MySQL, Redis, Horizon and a scheduler by applying the [`kubernetes.yaml`](https://github.com/jarnovanleeuwen/laravel-dock/blob/main/build/kubernetes.yaml) config. The example assumes that you are using external (managed) services for MySQL and Redis, but this can be modified to run your own containers using persistent volumes.
68
68
69
69
First, create secrets for the Docker registry and application keys and passwords.
70
70
```sh
@@ -74,7 +74,7 @@ First, create secrets for the Docker registry and application keys and passwords
74
74
75
75
Then, deploy the application.
76
76
```sh
77
-
./dock deploy [tag]
77
+
./dock deploy <tag>
78
78
```
79
79
80
80
Finally, you can run the migrations or any other artisan command.
@@ -85,4 +85,4 @@ Finally, you can run the migrations or any other artisan command.
85
85
# GitHub Actions
86
86
This repository includes and uses an example workflow that builds the image, starts the application, runs the tests and publishes the image to the GitHub Container Registry. Images are tagged with the SHA-hash of the commit that triggered the build. By default, the image is only published for builds in the `main` branch. However, the image is also published in other branches when the commit message includes the string `/publish`.
87
87
88
-
You can find the workflow at https://github.com/jarnovanleeuwen/laravel-dock/blob/main/.github/workflows/push.yml.
88
+
You can find the workflow at https://github.com/jarnovanleeuwen/laravel-dock/blob/main/.github/workflows/push.yml.
0 commit comments