Skip to content

Commit f671dd5

Browse files
gkalpakdylhunn
authored andcommitted
fix(docs-infra): update (and unpin) dependency versions for preview server (#45390)
Update the `Dockerfile` used to create the preview server to use the latest stable version of Debian (`bullseye`) and also update package versions to latest versions. Also, unpin the versions of installed packages (except for Node.js related ones) as pinning proved problematic due to many packages removing old versions from the official repositories. NOTE: This change will allow the preview server to be updated on the VM and take advantage of recent fixes, such as #45349. Currently, the update fails with the error: ``` E: Version '7.64.0-4+deb10u1' for 'curl' was not found The command '/bin/sh -c apt-get update -y && apt-get install -y curl=7.64.0-4+deb10u1' returned a non-zero code: 100 ``` PR Close #45390
1 parent f19b36f commit f671dd5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

aio/aio-builds-setup/dockerbuild/Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Image metadata and config
2-
FROM debian:buster
2+
FROM debian:bullseye
33

44
LABEL name="angular.io PR preview" \
55
description="This image implements the PR preview functionality for angular.io." \
@@ -72,29 +72,29 @@ RUN mkdir /var/log/aio
7272

7373

7474
# Add extra package sources
75-
RUN apt-get update -y && apt-get install -y curl=7.64.0-4+deb10u1
76-
RUN curl --silent --show-error --location https://deb.nodesource.com/setup_12.x | bash -
75+
RUN apt-get update -y && apt-get install -y curl
76+
RUN curl --silent --show-error --location https://deb.nodesource.com/setup_14.x | bash -
7777
RUN curl --silent --show-error https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
7878
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
7979

8080

8181
# Install packages
82-
# NOTE: Some packages (such as `nginx`, `nodejs`, `openssl`) make older versions unavailable on the
83-
# repositories, so we cannot pin to specific versions for these packages :(
84-
# See for example:
82+
# NOTE: Many packages make older versions unavailable on the repositories, so we cannot pin to
83+
# specific versions :(
84+
# See, for example:
8585
# - https://github.com/nodesource/distributions/issues/33
8686
# - https://askubuntu.com/questions/715104/how-can-i-downgrade-openssl-via-apt-get
8787
RUN apt-get update -y && apt-get install -y \
88-
cron=3.0pl1-134+deb10u1 \
89-
dnsmasq=2.80-1 \
90-
nano=3.2-3 \
88+
cron \
89+
dnsmasq \
90+
nano \
9191
nginx \
9292
nodejs \
9393
openssl \
94-
rsyslog=8.1901.0-1 \
95-
vim=2:8.1.0875-5 \
96-
yarn=1.22.4-1
97-
RUN yarn global add pm2@4.4.0
94+
rsyslog \
95+
vim \
96+
yarn=1.22.18-1
97+
RUN yarn global add pm2@5.2.0
9898

9999

100100
# Set up log rotation

0 commit comments

Comments
 (0)