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: README.md
+24-16Lines changed: 24 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
-[Dependencies](#dependencies)
12
12
-[Service API](#service-api)
13
13
-[Local Development](#local-development)
14
-
-[Docker](#docker)
14
+
-[Docker helpers](#docker-helpers)
15
15
-[Versioning](#versioning)
16
16
-[Deployment](#deployment)
17
17
@@ -123,17 +123,12 @@ To stop serving through containers,
123
123
make shutdown
124
124
125
125
Is the command you're looking for.
126
+
### Docker helpers
126
127
127
-
## Docker
128
+
From each github PR that is merged into `master` or into `develop`, one Docker image is built and pushed on AWS ECR with the following tag:
128
129
129
-
The service is encapsulated in a Docker image. Images are pushed on the public [Dockerhub](https://hub.docker.com/r/swisstopo/service-shortlink/tags) registry. From each github PR that is merged into develop branch, one Docker image is built and pushed with the following tags:
130
-
131
-
-`develop.latest`
132
-
-`CURRENT_VERSION-beta.INCREMENTAL_NUMBER`
133
-
134
-
From each github PR that is merged into master, one Docker image is built an pushed with the following tag:
135
-
136
-
-`VERSION`
130
+
-`vX.X.X` for tags on master
131
+
-`vX.X.X-beta.X` for tags on develop
137
132
138
133
Each image contains the following metadata:
139
134
@@ -143,12 +138,16 @@ Each image contains the following metadata:
143
138
- git.dirty
144
139
- version
145
140
146
-
These metadata can be seen directly on the dockerhub registry in the image layers or can be read with the following command
141
+
These metadata can be read with the following command
147
142
148
143
```bash
144
+
# NOTE: Currently we don't have permission to do docker pull on AWS ECR
To build a local docker image tagged as `service-shortcut:local-${USER}-${GIT_HASH_SHORT}` you can
160
+
use
161
+
162
+
```bash
163
+
make dockerbuild
164
+
```
165
+
166
+
To push the image on the ECR repository use the following two commands
161
167
162
-
This service uses [SemVer](https://semver.org/) as versioning scheme. The versioning is automatically handled by `.github/workflows/main.yml` file.
168
+
```bash
169
+
make dockerlogin
170
+
make dockerpush
171
+
```
163
172
164
-
See also [Git Flow - Versioning](https://github.com/geoadmin/doc-guidelines/blob/master/GIT_FLOW.md#versioning) for more information on the versioning guidelines.
165
173
166
174
## Deployment
167
175
@@ -181,4 +189,4 @@ The service is configured by Environment Variable:
181
189
| ALLOWED_DOMAINS | 'admin.ch,swisstopo.ch,bgdi.ch' | A comma separated list of allowed domains names |
182
190
| ALLOWED_HOSTS | 'api.geo.admin.ch,api3.geo.admin.ch' | a comma separated list of allowed hostnames |
183
191
| AWS_DYNAMODB_TABLE_NAME | 'shortlinks_test' | The dynamodb table name |
184
-
| AWS_DYNAMODB_TABLE_REGION | 'eu-central-1' | The AWS region in which the table is hosted. |
192
+
| AWS_DYNAMODB_TABLE_REGION | 'eu-central-1' | The AWS region in which the table is hosted. |
0 commit comments