20846: Merge branch '19213-ubuntu2204-support' into 20846-ubuntu2204
[arvados.git] / build / package-test-dockerfiles / ubuntu2204 / Dockerfile
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 FROM ubuntu:jammy
6 LABEL org.opencontainers.image.authors="Arvados Package Maintainers <packaging@arvados.org>"
7
8 ENV DEBIAN_FRONTEND noninteractive
9
10 # Install dependencies
11 RUN apt-get update && \
12     apt-get -y install --no-install-recommends curl ca-certificates gnupg2
13
14 # Install RVM
15 ADD generated/mpapis.asc /tmp/
16 ADD generated/pkuczynski.asc /tmp/
17 RUN gpg --import --no-tty /tmp/mpapis.asc && \
18     gpg --import --no-tty /tmp/pkuczynski.asc && \
19     curl -L https://get.rvm.io | bash -s stable && \
20     # Use custom 1.1 openssl -- see: https://github.com/rvm/rvm/issues/5209#issuecomment-1114159447
21     /usr/local/rvm/bin/rvm pkg install openssl && \
22     /usr/local/rvm/bin/rvm install 2.7 --with-openssl-dir=/usr/local/rvm/usr -j $(grep -c processor /proc/cpuinfo) && \
23     /usr/local/rvm/bin/rvm alias create default ruby-2.7 && \
24     /usr/local/rvm/bin/rvm-exec default gem install bundler --version 2.2.19
25
26 # udev daemon can't start in a container, so don't try.
27 RUN mkdir -p /etc/udev/disabled
28
29 RUN echo "deb [trusted=yes] file:///arvados/packages/ubuntu2204/ /" >>/etc/apt/sources.list