From the course: NetOps (DevOps for Network Engineers): Automating Networks
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Network API integration with GitLab
From the course: NetOps (DevOps for Network Engineers): Automating Networks
Network API integration with GitLab
- [Instructor] Let's go ahead and see how we could push the API application we built into production. More often than not, nowadays, we'll deploy our servers as microservers in the Docker container. So for our deployment, we'll go ahead and ask the application developer, in this case, it's us to build the application as a Docker container so we could upload to our Docker Hub. In doing the prep work, we need to first make sure our Flask app is up for production and in this case, I'm not going to be very careful about it. I'm just going to say debug equals to False to prep that into a production package. Then I'm going to build my Dockerfile. This is the sync file that we've seen before and I'll also attach all the resources and these configurations along with the course if you want to take a closer look but basically, we put together the Dockerfile and we could build the Docker image via this Dockerfile by using…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.