Getting Started with AWS

Getting Started with AWS
Amazon Web Services, AWS, the Powered by AWS logo are trademarks of Amazon.com, Inc. or its affiliates. See AWS Trademark Guidelines.

The Amazon Web Services world is an entire beast on its own, and I believe some knowledge around it should be useful to all tech related roles, from programmers to DevOps and system administrators. I am recently trying to explore AWS, so I will try to document my process along the way.

In this post I have gathered the steps for signing-up with AWS and the first configurations to make to your account before even starting an instance or a service. It is best to follow the official AWS documentation for each step (as it will be always up to date), but the main actions to do should remain pretty much the same.

Read more →

A simple URL shortener RESTful API written in Go

A simple URL shortener RESTful API written in Go
A screenshot of the API docs of the url shortener.

About

An simple URL shortener RESTful web service API written in Go, using the net/http package for the server, the HttpRouter for the router and Bolt DB for the database.

The Stoplight service was used to design and document the REST API. See below for the API Documentation

The API service is deployed on Heroku, and you can access it on url-shortener-thanoskoutr.herokuapp.com.

Because the Heroku Free plan is no longer available from November 28, 2022, the above link does not work. I wish to deploy the API in a Heroku free alternative service in the future.

Read more →

Portainer Install

Portainer Install
Screenshot of Portainer Container Stats.

In this post, we will see how we can run Portainer in order to manage our Docker containers. Portainer offers a Web UI that we can use to build and manage containers in Docker, Swarm, Kubernetes and Azure ACI. If you have not already, see how to install Docker on your Ubuntu/Debian server.

Portainer comes in two flavours Portainer CE and Portainer Business.

  • Portainer CE is open source, free forever and used by more than 500,000 developers worldwide.
  • Portainer Business builds on CE and adds business related functionality.

We will deploy Portainer CE on our Ubuntu Server using Docker containers. Portainer is comprised of two elements, the Portainer Server, and the Portainer Agent. We will run only the Portainer Server without the Portainer Agent for simplicity as we don’t need the features of the Agent right now.

Read more →

Docker Compose Install

Docker Compose Install
Docker Compose logo is licensed under Apache-2.0.

Install and Configure Docker Compose for Ubuntu. This guide assumes, that Docker is already installed in your system.

Compose is a tool for defining and running multi-container Docker applications. We can use Compose to create and start all services with one command from a single configuration YAML file.

It is a great tool to have a minimal orchestration of Docker containers, without adding the complexity that other tools have, like Kubernetes and Docker Swarm.

Read more →

Docker Install

Docker Install
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.

Install and Configure Docker for Ubuntu.

Installation

Prerequisites

To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:

  • Ubuntu Hirsute 21.04
  • Ubuntu Groovy 20.10
  • Ubuntu Focal 20.04 (LTS)
  • Ubuntu Bionic 18.04 (LTS)
  • Ubuntu Xenial 16.04 (LTS)

Uninstall old versions

Older versions of Docker were called docker, docker.io, or docker-engine. If these are installed, uninstall them:

sudo apt-get remove docker docker-engine docker.io containerd runc

Set up the repository

Update the apt package index and install packages to allow apt to use a repository over HTTPS:

Read more →