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
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Edit the config file and start by defining a new job which uses a docker image as the base, and docker-in-docker (dind) as the underlying service.
50
55
51
56
```yaml
52
-
deploy:
53
-
image: docker:24.0.5
54
-
services:
55
-
- docker:24.0.5-dind
57
+
image: docker:27
58
+
services:
59
+
- docker:27-dind
56
60
```
57
61
58
62
### Setup the workflow rules
@@ -91,19 +95,12 @@ Configure the environment variables required by Nitric and Nitric's dependency P
91
95
- AWS_SECRET_ACCESS_KEY
92
96
- You can obtain a key, including its ID and value, from the amazon console.
93
97
94
-
#### Nitric
95
-
96
-
- HOST_DOCKER_INTERNAL_IFACE
97
-
98
-
- The network interface that the Nitric CLI will temporarily run the containers on. Without this, the containers can't communicate with the Nitric server whilst gathering the resource definitions.
@@ -112,8 +109,19 @@ Within the before script, all the dependencies are added. Start by adding `curl`
112
109
113
110
```yaml
114
111
before_script:
115
-
- apk update
116
-
- apk add --no-cache curl bash
112
+
- apk update && apk add --no-cache curl bash
113
+
```
114
+
115
+
### Set the Docker host IP
116
+
117
+
The `NITRIC_DOCKER_HOST` environment variable is used to store the IP address of the docker internal host. This is required for docker in docker. Here we are getting the first IP address of the `eth0` interface.
118
+
119
+
```yaml
120
+
before_script:
121
+
- apk update && apk add --no-cache curl bash
122
+
123
+
# Retrieve the IP address of the docker host, required for docker in docker
0 commit comments