-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not install Python distro packages that are also installed through…
… requirements.txt: Also - virtualenv is not venv and not needed (but Ubuntu needs python-venv); - split RUN lines - move ADD lines early: these files rarely change - remove commented lines - use venv throughout all (current) distros.
- Loading branch information
1 parent
7a4b0fb
commit 436169b
Showing
20 changed files
with
76 additions
and
192 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,21 +1,18 @@ | ||
FROM gitlab-registry.cern.ch/linuxsupport/alma8-base | ||
|
||
COPY packages.txt packages.txt | ||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN dnf update -q -y \ | ||
RUN dnf update -y \ | ||
&& dnf install -y epel-release \ | ||
&& dnf install -y --setopt=install_weak_deps=False $(cat packages.txt) \ | ||
&& dnf autoremove \ | ||
&& dnf clean all \ | ||
&& rm -f packages.txt \ | ||
&& curl -O -L https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.sh \ | ||
&& sh ./cmake-*.sh --skip-license --prefix=/usr/local/ \ | ||
&& rm ./cmake-*.sh | ||
|
||
|
||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
RUN python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install -r requirements-root.txt -r requirements-roottest.txt 'openstacksdk<=1.2.0' \ | ||
RUN mkdir -p /py-venv \ | ||
&& python3 -m venv /py-venv/ROOT-CI \ | ||
&& /py-venv/ROOT-CI/bin/pip install --upgrade pip \ | ||
&& /py-venv/ROOT-CI/bin/pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
&& rm -f requirements-root.txt requirements-roottest.txt |
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 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,21 +1,18 @@ | ||
FROM gitlab-registry.cern.ch/linuxsupport/alma9-base | ||
|
||
COPY packages.txt packages.txt | ||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN dnf update -q -y \ | ||
RUN dnf update -y \ | ||
&& dnf install -y epel-release \ | ||
&& dnf install -y --setopt=install_weak_deps=False $(cat packages.txt) \ | ||
&& dnf autoremove \ | ||
&& dnf clean all \ | ||
&& rm -f packages.txt \ | ||
&& curl -O -L https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.sh \ | ||
&& sh ./cmake-*.sh --skip-license --prefix=/usr/local/ \ | ||
&& rm ./cmake-*.sh | ||
|
||
|
||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
RUN python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install -r requirements-root.txt -r requirements-roottest.txt 'openstacksdk<=1.2.0' \ | ||
RUN mkdir -p /py-venv \ | ||
&& python3 -m venv /py-venv/ROOT-CI \ | ||
&& /py-venv/ROOT-CI/bin/pip install --upgrade pip \ | ||
&& /py-venv/ROOT-CI/bin/pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
&& rm -f requirements-root.txt requirements-roottest.txt |
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 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,22 +1,17 @@ | ||
|
||
FROM fedora:37 | ||
|
||
# RUN useradd -s /bin/bash sftnight | ||
|
||
RUN dnf update -y \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
COPY packages.txt packages.txt | ||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN dnf install $(cat packages.txt) -y --setopt=install_weak_deps=False \ | ||
RUN dnf update -y \ | ||
&& dnf install $(cat packages.txt) -y --setopt=install_weak_deps=False \ | ||
&& rm -f packages.txt \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
RUN mkdir -p /py-venv \ | ||
&& python3 -m venv /py-venv/ROOT-CI \ | ||
&& /py-venv/ROOT-CI/bin/pip install --upgrade pip \ | ||
&& /py-venv/ROOT-CI/bin/pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
&& rm -f requirements-root.txt requirements-roottest.txt |
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 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,22 +1,17 @@ | ||
|
||
FROM fedora:37 | ||
|
||
# RUN useradd -s /bin/bash sftnight | ||
|
||
RUN dnf update -y \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
COPY packages.txt packages.txt | ||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN dnf install $(cat packages.txt) -y --setopt=install_weak_deps=False \ | ||
RUN dnf update -y \ | ||
&& dnf install -y --setopt=install_weak_deps=False $(cat packages.txt) \ | ||
&& rm -f packages.txt \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
RUN mkdir -p /py-venv \ | ||
&& python3 -m venv /py-venv/ROOT-CI \ | ||
&& /py-venv/ROOT-CI/bin/pip install --upgrade pip \ | ||
&& /py-venv/ROOT-CI/bin/pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
&& rm -f requirements-root.txt requirements-roottest.txt |
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 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,21 +1,17 @@ | ||
FROM fedora:38 | ||
|
||
# RUN useradd -s /bin/bash sftnight | ||
|
||
RUN dnf update -y \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
COPY packages.txt packages.txt | ||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN dnf install $(cat packages.txt) -y --setopt=install_weak_deps=False \ | ||
RUN dnf update -y \ | ||
&& dnf install -y --setopt=install_weak_deps=False $(cat packages.txt) \ | ||
&& rm -f packages.txt \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
ADD https://raw.githubusercontent.com/root-project/root/master/requirements.txt requirements-root.txt | ||
ADD https://raw.githubusercontent.com/root-project/roottest/master/requirements.txt requirements-roottest.txt | ||
|
||
RUN python3 -m pip install --upgrade pip \ | ||
&& python3 -m pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
RUN mkdir -p /py-venv \ | ||
&& python3 -m venv /py-venv/ROOT-CI \ | ||
&& /py-venv/ROOT-CI/bin/pip install --upgrade pip \ | ||
&& /py-venv/ROOT-CI/bin/pip install -r requirements-root.txt -r requirements-roottest.txt openstacksdk \ | ||
&& rm -f requirements-root.txt requirements-roottest.txt |
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 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 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 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 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 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 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
Oops, something went wrong.