mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 00:31:15 -03:00
Cirrus builds fail with
error: failed to get `pcre2` as a dependency of package `fish v4.1.0-snapshot (/tmp/cirrus-ci-build)`
...
Caused by:
the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)
Likely introduced by b644fdbb04 (docker: do not install recommended
packages on Ubuntu, 2025-10-06). Some Ubuntu Dockerfiles already
install ca-certificates explicitly but others do not. Fix the latter.
41 lines
881 B
Docker
41 lines
881 B
Docker
FROM ubuntu:20.04
|
|
LABEL org.opencontainers.image.source=https://github.com/fish-shell/fish-shell
|
|
|
|
ENV LANG=C.UTF-8
|
|
ENV LC_ALL=C.UTF-8
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install --no-install-recommends \
|
|
build-essential \
|
|
ca-certificates \
|
|
cargo \
|
|
gettext \
|
|
git \
|
|
locales \
|
|
openssl \
|
|
pkg-config \
|
|
python3 \
|
|
python3-pexpect \
|
|
rustc \
|
|
sudo \
|
|
tmux \
|
|
&& locale-gen en_US.UTF-8 \
|
|
&& apt-get clean
|
|
|
|
RUN groupadd -g 1000 fishuser \
|
|
&& useradd -p $(openssl passwd -1 fish) -d /home/fishuser -m -u 1000 -g 1000 fishuser \
|
|
&& adduser fishuser sudo \
|
|
&& mkdir -p /home/fishuser/fish-build \
|
|
&& mkdir /fish-source \
|
|
&& chown -R fishuser:fishuser /home/fishuser /fish-source
|
|
|
|
USER fishuser
|
|
WORKDIR /home/fishuser
|
|
|
|
COPY fish_run_tests.sh /
|
|
|
|
ENV FISH_CHECK_LINT=false
|
|
|
|
CMD /fish_run_tests.sh
|