Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add noble image to config #45

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- linux
- self-hosted
steps:
- uses: actions/checkout@v2.3.4
- uses: docker/login-action@v1.9.0
- uses: actions/checkout@v4.2.2
- uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v2.4.0
- uses: docker/build-push-action@v6.12.0
with:
context: . # See: https://github.com/docker/build-push-action/issues/182#issuecomment-814589666
file: ${{ matrix.os }}/Dockerfile
Expand All @@ -33,6 +33,7 @@ jobs:
- bionic
- focal
- jammy
- noble

manifest:
env:
Expand All @@ -43,7 +44,7 @@ jobs:
- linux
- self-hosted
steps:
- uses: docker/login-action@v1.9.0
- uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down Expand Up @@ -86,14 +87,15 @@ jobs:
- bionic
- focal
- jammy
- noble

readme:
needs: manifest
runs-on:
- self-hosted
steps:
- uses: actions/checkout@v2.3.4
- uses: peter-evans/dockerhub-description@v2.4.2
- uses: actions/checkout@v4.2.2
- uses: peter-evans/dockerhub-description@v4.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
context: .
dockerfile: jammy/Dockerfile
image: interaction/buildpack-deps:jammy
noble:
build:
context: .
dockerfile: noble/Dockerfile
image: interaction/buildpack-deps:noble
latest:
build:
context: .
Expand Down
4 changes: 2 additions & 2 deletions jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ RUN apt-get update \
supervisor \
tmux \
vim-tiny \
&& rm -rf rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*

# RUN git lfs install --skip-repo --system

ENV DOCKER_VERSION=20.10.17
ENV DOCKER_VERSION=20.10.24
RUN --mount=type=cache,id=buildpack-deps-${TARGETARCH},target=/var/lib/apt/lists,sharing=private curl -Ls https://get.docker.com | VERSION="${DOCKER_VERSION}" sh

# Do NOT use dockerize 0.6.1 due to https://github.com/jwilder/dockerize/issues/125
Expand Down
66 changes: 66 additions & 0 deletions noble/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# syntax = docker/dockerfile:experimental

# Dockerize releases use a different label for arm64 than ${TARGETARCH}, so we need to
# explicitly set ${DOCKERIZE_ARCH} in a base image for each platform.

FROM buildpack-deps:24.04 as base-amd64
ENV DOCKERIZE_ARCH=amd64
ENV TINI_ARCH=amd64

FROM buildpack-deps:24.04 as base-arm64
ENV DOCKERIZE_ARCH=armhf
ENV TINI_ARCH=arm64

FROM base-${TARGETARCH}
ARG TARGETARCH

RUN apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
atop \
apache2-utils \
apt-utils \
bsdmainutils \
dnsutils \
gettext \
`# git-lfs` \
htop \
iputils-ping \
jq \
less \
locales \
nano \
nginx \
postgresql-client \
pv \
python3-dev \
screen \
supervisor \
tmux \
vim-tiny \
&& rm -rf /var/lib/apt/lists/*

ENV DOCKER_VERSION=27.5.0
RUN --mount=type=cache,id=buildpack-deps-${TARGETARCH},target=/var/lib/apt/lists,sharing=private curl -Ls https://get.docker.com | VERSION="${DOCKER_VERSION}" sh

# Do NOT use dockerize 0.6.1 due to https://github.com/jwilder/dockerize/issues/125
ENV DOCKERIZE_VERSION=0.6.0
RUN wget -nv -O - "https://github.com/jwilder/dockerize/releases/download/v${DOCKERIZE_VERSION}/dockerize-linux-${DOCKERIZE_ARCH}-v${DOCKERIZE_VERSION}.tar.gz" | tar -xz -C /usr/local/bin/ -f -

ENV TINI_VERSION=0.19.0
RUN wget -nv -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static-${TINI_ARCH}"
RUN chmod +x /usr/local/bin/tini

RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

# Indicate that we are running in Docker.
ENV DOCKER=1

# Hide threads, highlight program "basename", enable tree view.
COPY htoprc /root/.config/htop/htoprc

# Append to bash history.
ENV PROMPT_COMMAND='history -a'