From 4aa119fc7ca5d3df7750cf7f4fe5691f6b5dc839 Mon Sep 17 00:00:00 2001 From: Ruben Suarez Alvarez Date: Wed, 25 May 2022 10:29:12 +0200 Subject: [PATCH] Set image tag as 22.04 --- .github/workflows/main.yml | 2 +- Dockerfile | 3 ++- README.md | 6 +++--- build.sh | 2 +- run.sh | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1cfff5..1ad5623 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,5 +17,5 @@ jobs: with: DOCKER_REPOSITORY_NAME: rubensa DOCKER_IMAGE_NAME: ubuntu-tini - DOCKER_IMAGE_TAG: latest + DOCKER_IMAGE_TAG: 22.04 secrets: inherit diff --git a/Dockerfile b/Dockerfile index 499ce5e..4654758 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM ubuntu +# Ubuntu 22.04 LTS (Jammy Jellyfish) Release Build +FROM ubuntu:jammy LABEL author="Ruben Suarez " # Architecture component of TARGETPLATFORM (platform of the build result) diff --git a/README.md b/README.md index 21a1981..77a0045 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Docker image based on ubuntu and running tini init system +# Docker image based on ubuntu 22.04 and running tini init system This is a Docker image based on [ubuntu](https://hub.docker.com/_/ubuntu/) running [tini](https://github.com/krallin/tini) init system inside a container. @@ -11,7 +11,7 @@ You can build the image like this: DOCKER_REPOSITORY_NAME="rubensa" DOCKER_IMAGE_NAME="ubuntu-tini" -DOCKER_IMAGE_TAG="latest" +DOCKER_IMAGE_TAG="22.04" docker buildx build --platform=linux/amd64,linux/arm64 --no-cache \ -t "${DOCKER_REPOSITORY_NAME}/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" \ @@ -32,7 +32,7 @@ You can run the container like this (change --rm with -d if you don't want the c DOCKER_REPOSITORY_NAME="rubensa" DOCKER_IMAGE_NAME="ubuntu-tini" -DOCKER_IMAGE_TAG="latest" +DOCKER_IMAGE_TAG="22.04" prepare_docker_timezone() { # https://www.waysquare.com/how-to-change-docker-timezone/ diff --git a/build.sh b/build.sh index a786e09..574603d 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ DOCKER_REPOSITORY_NAME="rubensa" DOCKER_IMAGE_NAME="ubuntu-tini" -DOCKER_IMAGE_TAG="latest" +DOCKER_IMAGE_TAG="22.04" # see: https://github.com/docker/buildx/issues/495#issuecomment-761562905 #docker buildx build --platform=linux/amd64,linux/arm64 --no-cache --progress=plain --pull \ diff --git a/run.sh b/run.sh index 42d5e3a..030395b 100755 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ DOCKER_REPOSITORY_NAME="rubensa" DOCKER_IMAGE_NAME="ubuntu-tini" -DOCKER_IMAGE_TAG="latest" +DOCKER_IMAGE_TAG="22.04" prepare_docker_timezone() { # https://www.waysquare.com/how-to-change-docker-timezone/