AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Unity cloud build install2/20/2023 Here we specify docker image for the executor. By default, GitLab runs CI/CD pipeline on shared runners hosted by GitLab using the docker executor. Let’s create django_aws/tests.py and add a simple test to check DB connection: venv/bin/activate $ docker-compose up -d Go to the Django project, activate venv and start a PostgreSQL Docker container: $ cd. See more info about testing a Django application here. Django’s unit tests use a Python standard library module unittest. Now let’s add unit tests check to the Django project. django-aws-infrastructure git remote add origin git push -set-upstream origin mainĬheck your GitLab projects in a browser and verify that the push is successful. django-aws-backend git remote add origin git push -set-upstream origin main # Push infrastructure cd. Now, let’s push both of our repositories to GitLab. It allows you to access your projects via Git. Be sure to remove the “Initialize repository with a README” option to create a clean repository.Īlso, add your ssh key to SSH Keys section. You can configure shared settings like access policy and CI variables for them.Ĭreate projects for Django and Terraform in this group. Let’s start with creating a GitLab group and projects. Add the deploy CI/CD stage to update the application on AWS.Add the build CI/CD stage to build a docker image and push it to the ECR.Create a GitLab group and projects for the backend and the infrastructure repositories.In this part, we are going to automate this process with the following steps: But now, we have to deploy application changes manually. In previous parts, we’ve deployed the Django web application to ECS and connected PostgreSQL to it. Deploying Django Application on AWS with Terraform.
0 Comments
Read More
Leave a Reply. |