Skip to content

Commit

Permalink
Add title and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mincong-h committed Jul 25, 2024
1 parent 70b3570 commit bd531b3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 74 deletions.
54 changes: 5 additions & 49 deletions docs/lab-1.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Introduction
# Dockerfiles

Lab Session 1 - 28 Oct, 2024

## Introduction

The goal of this lab session is to let you practice the creation of
Docker images using Dockerfiles, and the inspectation of Docker
Expand All @@ -11,54 +15,6 @@ markdown document to the `reports/` directory of this Git repository and
fill in your answers. This should be done before the beginning of the
next course.

# Prerequisite

This lab session requires the use of Docker Desktop. If you are using
the computer of ESIGELEC, the Docker Desktop is preinstalled. If you are
using your personal computer, please download Docker Desktop from the
official website of Docker, Inc.

<https://www.docker.com/products/docker-desktop/>

Run the command `docker -v` to ensure that the `docker` command line is
available in your terminal. Please paste the result below.



    *\[answer\]*





Tell M. Huang your GitHub accounts so that you can have access to the
target Git repository.

Clone the Git repository by replacing the `$TEAM` by your actual team in
lowercase.

``` sh
git clone [email protected]:mincong-h/containers-${TEAM}.git
```

For example, if you are in the `red` team:

``` sh
git clone [email protected]:mincong-h/containers-red.git
```



Perform the following actions to ensure that the project can be
installed on your machine.

``` sh
cd containers-red/weekend-server
mvn install
```

# Exercises

## Exercise 1: Create a Java image

Create a Java image. The image should be built on top of OpenJDK 21 and
Expand Down
22 changes: 11 additions & 11 deletions docs/lab-2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Introduction
# GitHub Actions

Lab Session 2 - 23 Oct, 2024

## Introduction

The goal of this lab session is to let you practice the development of a
continuous integration (CI) pipeline using GitHub Actions, including the
Expand All @@ -11,16 +15,12 @@ markdown document to the `reports/` directory of this Git repository and
fill in your answers. This should be done before the beginning of the
next course.

# Prerequisite

This lab session requires the use Docker Desktop and GitHub
(<https://github.com/>). It also assumes that you completed lab session
1, i.e. the Dockerfile for your Java application that is completely
working. If it’s not the case, please notify the teacher.

# Exercises
> \[!IMPORTANT\] This lab session assumes that you completed lab session
> 1, meaning that your Java application is containerized and published
> successfully to Docker Hub. If it’s not the case, please notify the
> teacher.
## Exercise 1: Run unit tests
## Exercise 1 - Run unit tests

Replace the existing job “hello-world” with the job
“weekend-server-test” which runs the unit tests of the Maven project
Expand All @@ -39,7 +39,7 @@ execution of the job.



## Exercise 2: Release a Docker image
## Exercise 2 - Release a Docker image

Create a second job “weekend-server-release” which builds and publishes
a Docker image of the Java application to Docker Hub. The final target
Expand Down
14 changes: 7 additions & 7 deletions docs/lab-3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Introduction
# Pod in Kubernetes

Lab Session 3 - 28 Oct, 2024

## Introduction

The goal of this lab session is to let you practice the basics of pod
and the command line tool `kubectl` in Kubernetes, which includes
Expand All @@ -10,12 +14,8 @@ markdown document to the `reports/` directory of this Git repository and
fill in your answers. This should be done before the beginning of the
next course.

# Prerequisite

You need to enable the Kubernetes feature in Docker Desktop. See the
README of the Git repository for more details.

# Exercises
> \[!NOTE\] You need to enable the Kubernetes feature in Docker Desktop.
> See the README of the Git repository for more details.
## Exercise 1 - Kubernetes Overview

Expand Down
10 changes: 6 additions & 4 deletions docs/lab-4.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Deployment and Networking in Kubernetes

Lab Session 4 - 4 Nov, 2024

# Introduction

The goal of this lab session is to let you practice the basics of
Expand Down Expand Up @@ -27,9 +31,7 @@ Cluster” in your Docker Desktop (Settings \> Kubernetes).

<!-- I don't add more details because they should already have the software installed. -->

## Exercises

### Exercise 1 - ReplicaSet
## Exercise 1 - ReplicaSet

Create a new ReplicaSet with 2 replicas and the Docker image
`nginx:1.26` and call this resource `nginx`. Use labels `app:nginx`,
Expand Down Expand Up @@ -69,7 +71,7 @@ now? Why?



### Exercise 2 - Deployment
## Exercise 2 - Deployment

Create a new Deployment with 2 replicas using the Docker image
`weekend-server` that you built in the previous lab session and call
Expand Down
8 changes: 5 additions & 3 deletions docs/lab-5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Introduction
# Configuration and Storage in Kubernetes

Lab Session 5 - 20 Nov, 2024

## Introduction

The goal of this lab session is to let you practice the basics of
configuration and storage in Kubernetes, which includes the creation of
Expand All @@ -12,8 +16,6 @@ fill in your answers. This should be done before the beginning of the
next course. This should be done before the end of next week (1 Dec,
2024 at midnight).

# Exercises

## Exercise 1 - ConfigMap

A ConfigMap is an API object used to store non-confidential data in
Expand Down

0 comments on commit bd531b3

Please sign in to comment.