Skip to content
Snippets Groups Projects
Commit 5963cb89 authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Update README

parent 7e50584e
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ In order to deploy this app on Kubernetes we will need to complete the following
* Setup Gitlab CI in order to define the Continuous Delivery (CD)
## Step by step guide
1. Create Docker Registry Access Token
### Create Docker Registry Access Token
One of the many Gitlab feature is the ability to host docker images.
In order to permit Kubernetes to fetch those images, you need to provide an access token.
......@@ -32,7 +32,7 @@ Please follow the following steps in order to create the access token :
![alt text](img/access_token_3.png)
2. Declare the docker registry access token in variables
### Declare the docker registry access token in variables
We will reuse the previously created access token in order to reuse them in the Continuous Integration pipeline.
To do that we will store them in CI variables that we will use during our CI pipeline.
......@@ -45,7 +45,7 @@ To do that we will store them in CI variables that we will use during our CI pip
![alt text](img/access_token_6.png)
3. Create the Dockerfile
### Create the Dockerfile
In the root directory of your project create `Dockerfile` file and fill it like the following :
```docker
......@@ -79,7 +79,7 @@ ADD . /app
CMD gunicorn -b :$PORT mysite.wsgi
```
4. Setup Gitlab CI
### Setup Gitlab CI
At the root of your git repository create a `.gitlab-ci.yaml` file.
......@@ -115,7 +115,7 @@ Save, commit and push; you should be abble to see your first running pipeline
Once succesfully completed, you can see the docker image in the `Registry`section on the left pane.
5. Create manifest yaml file
### Create manifest yaml file
Create a file `manifest.yaml` at the root directory of your git repository and fill it with the following definition.
> Keep in mind that yaml formating require that you seperate each declaration with `---` line.
......@@ -358,7 +358,7 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
restartPolicy: Never
backoffLimit: 5
```
6. Setup Continuous Delivery in Gitlab CI
### Setup Continuous Delivery in Gitlab CI
```yaml
deploy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment