Skip to content

Commit

Permalink
Updated base system to Debian "unstable" (aka "Sid").
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Trick authored and lordmulder committed Sep 2, 2024
1 parent da35d90 commit 863a27c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 35 deletions.
21 changes: 1 addition & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## r4 - 2024-08-31

### Changed
- Switched base system from `debian:bookworm-slim` to `bitnami/minideb:bookworm`.

### Added
- Added example Rust/Cargo project to the container image.

## r3 - 2024-08-30

### Changed
- Implemented multi-stage build to further reduce image size.

## r2 - 2024-08-29

### Changed
- Install Rust and Cargo to the *default* locations.
- Install Rust toolchain with the `minimal` profile.

## r1 - 2024-08-27
## r1 - 2024-09-03

- This is the first public release of this project.
27 changes: 16 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Debian Version
ARG DEBIAN_VERS=bitnami/minideb:bookworm
ARG DEBIAN_VERS=debian:sid-slim

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Stage #1
Expand All @@ -12,10 +12,12 @@ ARG RUST_VERSION=1.80.0
ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies
RUN install_packages \
ca-certificates \
curl \
rdfind
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
rdfind \
&& rm -r /var/lib/apt/lists /var/cache/apt/archives

# Install Rust
RUN curl https://sh.rustup.rs -sSf | \
Expand All @@ -31,12 +33,15 @@ FROM $DEBIAN_VERS
ENV DEBIAN_FRONTEND=noninteractive

# Install runtime dependencies
RUN install_packages \
ca-certificates \
gcc \
libclang-dev \
libtss2-dev \
pkg-config
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
ca-certificates \
gcc \
libclang-dev \
libtss2-dev \
pkg-config \
uuid-dev \
&& rm -r /var/lib/apt/lists /var/cache/apt/archives

# Copy Rust/Cargo files
COPY --from=build /opt/rust/ /opt/rust/
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Ready to use development environment with [Rust/Cargo](https://www.rust-lang.org
Version history
---------------

| **Release** | **Date** | **Base system** | **Rust toolchain** | **TPM2 Software Stack** |
| ----------- | ---------- | ------------------------------ | ------------------ | ----------------------- |
| r4 | 2024-08-31 | Minideb "Bookworm", 2024-08-31 | 1.80.0 | 3.2.1-3 |
| r3 | 2024-08-30 | Debian 12, 2024-08-12 | 1.80.0 | 3.2.1-3 |
| **Release** | **Date** | **Base system** | **Rust toolchain** | **TPM2 Software Stack** |
| ----------- | ---------- | --------------------------------- | ------------------ | ----------------------- |
| r1 | 2024-09-03 | Debian Unstable (Sid), 2024-08-13 | 1.80.0 | 4.1.3-1 |

0 comments on commit 863a27c

Please sign in to comment.