Nowadays everything is hosted in a cloud which make sense. Anybody can create environment from scratch in a blink of an eye, cloud provides flexibility and scalability, cloud providers make sure you have plenty of choice in terms of resources and they take over more and more maintenance duties from you. While all this is true, it is common to leverage cloud and at the same time use what you already been using until now.
In this blog post, I’ll show you how to use Gitlab to deploy application on AWS.
We will provision EC2 instance…
Post originally published at https://filip5114.github.io on June 28, 2021.
Gitlab allows seamlessly using docker image from public and private hubs. I bet that most of you uses docker executors. All works great and without a hassle until you need to build your own docker image. Fortunately, you can build your docker image automatically in pipeline by leveraging docker-in-docker image build.
I’ll show you how to include docker image build in Gitlab CI Pipeline, push it to Gitlab Repo and use it in another job.
When you think about deploying to remote server, SSH is first network protocol which comes to your mind. Adding on top GitLab CI/CD will let you take advantage of automation. To use GitLab CI/CD pipeline together with SSH connections it is necessary to firstly configure GitLab and I would like to show you how to configure it and run simple script.
As a first step we will create GitLab project.
Login into GitLab and navigate to
This Part 2 of creating development environment for web app using containers. You can find Part 1 here.
In first part we have created backend Go web server with hot-reloads support using docker compose. Part 2 introduces Vue.js frontend also supporting hot-reloads using docker compose.
Part 2 will focus on Vue.js frontend:
We will use Vue CLI to scaffold project. Firstly, let’s…
We will create bare minimum environment for developing web app. At the end of the series you will have containerized backend (Go), containerized frontend (Vue.js) which can communicate with each other and supports live reloading. All of it will start using single command —
docker compose up.
Part 1 will focus on Go backend and project structure: