forked from seapath/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to Ubuntu 22.04. Except Ansible, install Ruby and Python packages from Ubuntu repository. Indent with spaces. Signed-off-by: Mathieu Dupré <[email protected]>
- Loading branch information
1 parent
8e2e95d
commit 728006c
Showing
3 changed files
with
61 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
# Copyright (C) 2021, RTE (http://www.rte-france.com) | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM ubuntu:20.04 | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
bash \ | ||
locales \ | ||
ruby \ | ||
git \ | ||
ssh \ | ||
python3-libvirt \ | ||
docker.io \ | ||
docker-compose \ | ||
python3-pip | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
bash \ | ||
docker.io \ | ||
docker-compose \ | ||
git \ | ||
locales \ | ||
python3-docutils \ | ||
python3-libvirt \ | ||
python3-netaddr \ | ||
python3-pip \ | ||
python3-pygments \ | ||
python3-sphinx \ | ||
python3-sphinx-notfound-page \ | ||
rstcheck \ | ||
ruby-asciidoctor-pdf \ | ||
ssh \ | ||
yamllint \ | ||
&& sed -i "s/# en_US\.UTF-8 UTF-8/en_US\.UTF-8 UTF-8/" /etc/locale.gen \ | ||
&& locale-gen \ | ||
&& dpkg-reconfigure locales \ | ||
&& pip install "ansible>=2.9,<2.10,!=2.9.10" \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/* | ||
|
||
RUN sed -i "s/# en_US\.UTF-8 UTF-8/en_US\.UTF-8 UTF-8/" /etc/locale.gen | ||
RUN locale-gen | ||
RUN dpkg-reconfigure locales | ||
# Asciidoctor PDF generator for generating the manual | ||
RUN gem install asciidoctor-pdf --pre -v 1.5.0.rc2 | ||
ADD check_yaml.sh /usr/bin/check_yaml | ||
ADD requirements.txt /tmp/requirements.txt | ||
RUN python3 -m pip install -r /tmp/requirements.txt | ||
COPY check_yaml.sh /usr/bin/check_yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.