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
@@ -60,7 +62,6 @@ When you run the above command, the following takes place:
60
62
1. Retrieves the [GitHub Context](https://probot.github.io/api/latest/classes/context.Context.html) (or any other defined context) for all the resources listed in the resource config file.
61
63
1. Registers and listens for events, executes the `Tasks` defined in the operation config. These tasks will be executed sequentially when the corresponding events occur.
62
64
63
-
64
65
#### List of Environment Variables (You can use them directly in the startup command, export them, or add them to the `.env` file):
@@ -70,6 +71,10 @@ When you run the above command, the following takes place:
70
71
| ADDITIONAL_RESOURCE_CONTEXT | Boolean | false | Setting true will let each resource defined in RESOURCE_CONFIG to call GitHub Rest API and GraphQL for more detailed context (ex: node_id). Increase startup time. | true / false |
71
72
| SERVICE_NAME | String | 'default' | Set Service Name | 'My Service' |'
72
73
74
+
#### Start the Service with Docker
75
+
76
+
For detailed instructions on starting the service with Docker, refer to the project's [Docker Setup](./docker/README.md).
77
+
73
78
## Code of Conduct
74
79
75
80
This project has adopted [the Open Source Code of Conduct](CODE_OF_CONDUCT.md).
The GitHub Automation App can be deployed using Docker and Docker Compose to run as a service with configurable resource and operation settings. Multiple services can be run simultaneously using different configurations.
The `docker-compose.yml` is configured to use a Node.js image and to run the app. This mounts the project directory to the container for live reloading.
29
+
30
+
### Dockerfile
31
+
32
+
The [Dockerfile](Dockerfile) is used to create a Docker image for the app.
33
+
34
+
35
+
### Docker Compose File
36
+
37
+
The [compose.yml](compose.yaml) file sets up a service (automation-app) to run the app:
38
+
39
+
40
+
### Run multiple Services
41
+
42
+
This allows to run multiple instances of the service with different configurations and ports.
43
+
44
+
#### This will run the service on port 8080 with the sample-operation.yml configuration.
45
+
46
+
```bash
47
+
PORT=8080 RESOURCE_CONFIG=configs/resources/sample-resource.yml OPERATION_CONFIG=configs/operations/sample-operation.yml docker-compose -p automation-app-1 up -d
48
+
```
49
+
50
+
#### This will run the second service on port 8081 with the sample-operation-2.yml configuration.
51
+
52
+
```
53
+
PORT=8081 RESOURCE_CONFIG=configs/resources/sample-resource.yml OPERATION_CONFIG=configs/operations/sample-operation-2.yml docker-compose -p automation-app-2 up -d
0 commit comments