Skip to content

Instantly share code, notes, and snippets.

View eyablokov's full-sized avatar

Evgenii Iablokov eyablokov

View GitHub Profile
@eyablokov
eyablokov / Dockerfile
Created August 26, 2020 14:32
Dockerfile
# maybe it's expected I mention to use alpine here. I don't think so (can
# explain).
FROM ubuntu:18.04
# avoid "upgrade", as many of the “essential” packages cannot upgrade inside an
# unprivileged container. if there is a particular package, that needs to be
# updated, use `apt-get install -y foo` to update automatically.
#RUN apt-get upgrade
# sort multi-line arguments alphanumerically. this helps to avoid duplication of
@eyablokov
eyablokov / task2.md
Last active January 15, 2018 10:48
Task 2

Dockerizing a Spring Boot Application

Overview

In this article we’ll focus on how to dockerize a Spring Boot Application to run it in a container. Furthermore I’ll show how to create a composition of containers, which depend on each other and are linked against each other in a virtual private network. We’ll also see how they can be managed together with single commands.

Let’s start by creating a Java-enabled, lightweight base image, running Alpine Linux.

Common Base Image