Skip to content

Commit 5fb5579

Browse files
authored
Merge pull request #2333 from bjf893/focal
Use Ubuntu 20.04 as base image
2 parents c56b697 + 82630d2 commit 5fb5579

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:bionic-20210325
1+
FROM ubuntu:focal-20210325
22

33
ARG VERSION=13.10.2
44

@@ -25,19 +25,20 @@ ENV GITLAB_INSTALL_DIR="${GITLAB_HOME}/gitlab" \
2525
RUN apt-get update \
2626
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
2727
wget ca-certificates apt-transport-https gnupg2 \
28+
&& apt-get upgrade -y \
2829
&& rm -rf /var/lib/apt/lists/*
2930

3031
RUN set -ex && \
31-
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
32-
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main" >> /etc/apt/sources.list \
32+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
33+
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main" >> /etc/apt/sources.list \
3334
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \
34-
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu bionic main" >> /etc/apt/sources.list \
35+
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu focal main" >> /etc/apt/sources.list \
3536
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
36-
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu bionic main" >> /etc/apt/sources.list \
37+
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu focal main" >> /etc/apt/sources.list \
3738
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
38-
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
39+
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
3940
&& wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
40-
&& echo 'deb https://deb.nodesource.com/node_12.x bionic main' > /etc/apt/sources.list.d/nodesource.list \
41+
&& echo 'deb https://deb.nodesource.com/node_12.x focal main' > /etc/apt/sources.list.d/nodesource.list \
4142
&& wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
4243
&& echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
4344
&& set -ex \
@@ -46,9 +47,9 @@ RUN set -ex && \
4647
sudo supervisor logrotate locales curl \
4748
nginx openssh-server postgresql-client-12 postgresql-contrib-12 redis-tools \
4849
git-core ruby${RUBY_VERSION} python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
49-
libpq5 zlib1g libyaml-0-2 libssl1.0.0 \
50-
libgdbm5 libreadline7 libncurses5 libffi6 \
51-
libxml2 libxslt1.1 libcurl4 libicu60 libre2-dev tzdata unzip libimage-exiftool-perl \
50+
libpq5 zlib1g libyaml-0-2 libssl1.1 \
51+
libgdbm6 libreadline8 libncurses5 libffi7 \
52+
libxml2 libxslt1.1 libcurl4 libicu66 libre2-dev tzdata unzip libimage-exiftool-perl \
5253
libmagic1 \
5354
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
5455
&& locale-gen en_US.UTF-8 \

assets/build/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ${BUIL
4343
# only for simplicity.
4444
paxctl -cvm "$(command -v ruby${RUBY_VERSION})"
4545
# https://en.wikibooks.org/wiki/Grsecurity/Application-specific_Settings#Node.js
46-
paxctl -cvm "$(command -v nodejs)"
46+
paxctl -cvm "$(command -v node)"
4747

4848
# remove the host keys generated during openssh-server installation
4949
rm -rf /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub

0 commit comments

Comments
 (0)