Simple CI/CD pipeline using GitLab(self-hosted), docker (ubuntu)
Budget: $10 – $30 USD
Hi,
Need a setup for django app, that once code is committed, ci pipeline creates a docker container and copies the code inside and run the server with custom ports for the webserver so that my domain will work automatically. like mydomain:304 goes to dev-container, mydomain:305 goes to tst-container and so on.
Later we will add a more complex pipeline with tests, etc, but for now just the basic setup.
What I'm looking to work here is:
create a django project in my local machine
drop the gitlab-ci.yml (provided by you) on my project folder
commit with git to my selfhosted gitlab
gitlab executes ci script and creates a docker container, copies the project into it, instal python/django (or use image with them pre-isntalled), install dependencies (requirements.txt), and runs the server
I go to my url pointing to my docker server plus the custom port and the app shows.
Need a setup for django app, that once code is committed, ci pipeline creates a docker container and copies the code inside and run the server with custom ports for the webserver so that my domain will work automatically. like mydomain:304 goes to dev-container, mydomain:305 goes to tst-container and so on.
Later we will add a more complex pipeline with tests, etc, but for now just the basic setup.
What I'm looking to work here is:
create a django project in my local machine
drop the gitlab-ci.yml (provided by you) on my project folder
commit with git to my selfhosted gitlab
gitlab executes ci script and creates a docker container, copies the project into it, instal python/django (or use image with them pre-isntalled), install dependencies (requirements.txt), and runs the server
I go to my url pointing to my docker server plus the custom port and the app shows.