-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Alternative unix power tools #9
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Test Docker image | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - latest | ||
| push: | ||
| branches: | ||
| - latest | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| platform: [linux/amd64, linux/arm64] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Install container-structure-test | ||
| run: | | ||
| if [ "${{ matrix.platform }}" == "linux/arm64" ]; then | ||
| ARCH="arm64" | ||
| else | ||
| ARCH="amd64" | ||
| fi | ||
| curl -LO "https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-${ARCH}" | ||
| chmod +x "container-structure-test-linux-${ARCH}" | ||
| sudo mv "container-structure-test-linux-${ARCH}" /usr/local/bin/container-structure-test | ||
|
|
||
| - name: Run tests | ||
| run: ./test.sh "${{ matrix.platform }}" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||||||||||||
| # syntax=docker/dockerfile:1 | ||||||||||||||||
| FROM ubuntu:24.04 AS base | ||||||||||||||||
| FROM ubuntu:25.10 AS base | ||||||||||||||||
|
|
||||||||||||||||
| ENV PYTHONDONTWRITEBYTECODE=1 | ||||||||||||||||
| ENV PYTHONUNBUFFERED=1 | ||||||||||||||||
|
|
@@ -29,6 +29,30 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ | |||||||||||||||
| jq \ | ||||||||||||||||
| zsh \ | ||||||||||||||||
| postgresql-client \ | ||||||||||||||||
| # Better alternative to grep | ||||||||||||||||
| ripgrep \ | ||||||||||||||||
| # Better alternative to find | ||||||||||||||||
| fd-find \ | ||||||||||||||||
| # Better alternative to top/htop | ||||||||||||||||
| btop \ | ||||||||||||||||
| # Better alternative to ls | ||||||||||||||||
| eza \ | ||||||||||||||||
| # Better alternative to du | ||||||||||||||||
| du-dust \ | ||||||||||||||||
| # Better alternative to cat | ||||||||||||||||
| bat \ | ||||||||||||||||
| # Pager for bat | ||||||||||||||||
| less \ | ||||||||||||||||
| # Fuzzy finder | ||||||||||||||||
| fzf \ | ||||||||||||||||
| # Code counter | ||||||||||||||||
| tokei \ | ||||||||||||||||
| # Benchmarking tool | ||||||||||||||||
| hyperfine \ | ||||||||||||||||
| # Linking preferred alternatives | ||||||||||||||||
| && ln -s /usr/bin/eza /usr/local/bin/ls \ | ||||||||||||||||
| && ln -s /usr/bin/batcat /usr/local/bin/bat \ | ||||||||||||||||
|
Comment on lines
+53
to
+54
|
||||||||||||||||
| && ln -s /usr/bin/eza /usr/local/bin/ls \ | |
| && ln -s /usr/bin/batcat /usr/local/bin/bat \ | |
| # Do NOT override ls with eza to avoid breaking scripts | |
| && ln -s /usr/bin/batcat /usr/local/bin/bat \ | |
| # Add alias for interactive shells | |
| && echo "alias ls='eza'" >> /etc/bash.bashrc \ | |
| && echo "alias ls='eza'" >> /etc/zsh/zshrc \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Ubuntu 25.10, which is an interim release, for a base image is not recommended. Interim releases have a short 9-month support cycle and are less stable than Long-Term Support (LTS) releases. For a development image that should be stable and reliable, it's much safer to stick with an LTS version like
ubuntu:24.04(the latest LTS) orubuntu:22.04. This ensures you get security updates and stability for a much longer period (5 years).