chore: replace default ubuntu archive in docker

This commit is contained in:
Umut
2023-01-13 12:28:10 +01:00
parent 9976299f71
commit 2372ffe85c
3 changed files with 10 additions and 1 deletions

View File

@@ -213,7 +213,8 @@ jobs:
TZ=Europe/Paris
echo "TZ=${TZ}" >> "$GITHUB_ENV"
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
apt update && apt install git -y
sed -i 's|^deb http://archive|deb http://fr.archive|g' /etc/apt/sources.list
apt update && apt install git git-lfs -y
- name: Checkout Code
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b

View File

@@ -3,6 +3,10 @@ FROM ubuntu:20.04
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Replace default archive.ubuntu.com with fr mirror
# original archive showed performance issues and is farther away
RUN sed -i 's|^deb http://archive|deb http://fr.archive|g' /etc/apt/sources.list
COPY ./script/make_utils/setup_os_deps.sh ./setup_os_deps.sh
RUN ./setup_os_deps.sh --linux-install-python && rm ./setup_os_deps.sh

View File

@@ -3,6 +3,10 @@ FROM ubuntu:20.04
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Replace default archive.ubuntu.com with fr mirror
# original archive showed performance issues and is farther away
RUN sed -i 's|^deb http://archive|deb http://fr.archive|g' /etc/apt/sources.list
RUN mkdir /pkg && mkdir /app
WORKDIR /pkg
COPY docker/release_resources/release_requirements.txt .