Skip to content

Commit

Permalink
fix archlinux and fedora dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Jul 16, 2023
1 parent ba8535b commit a54097e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ RUN pacman -Syu --noconfirm
RUN pacman-db-upgrade
# qt5-base skipped
# bluez skipped, can't be installed in docker
RUN pacman -S --noconfirm sudo git base-devel cmake libusb readline bzip2 arm-none-eabi-gcc arm-none-eabi-newlib python --needed
RUN pacman -S --noconfirm sudo git base-devel cmake libusb readline bzip2 lz4 arm-none-eabi-gcc arm-none-eabi-newlib python --needed

RUN pacman -S --noconfirm python-pip
RUN python3 -m pip install ansicolors sslcrypto

# OpenCL for hitag2crack
RUN pacman -S --noconfirm ocl-icd
Expand Down
6 changes: 6 additions & 0 deletions docker/archlinux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@ Or if you want to run single test,

```
make clean; make -j
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/pm3_tests.sh --long
deactivate
```
5 changes: 5 additions & 0 deletions docker/archlinux/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ pacman -Ss '^gcc$'
# sudo pacman -S testing/gcc
# sudo pacman -S gcc

python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/release_tests.sh
deactivate
2 changes: 1 addition & 1 deletion docker/fedora-36/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM fedora:36

ENV LANG C
# qt5-qtbase-devel skipped
RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel bluez-libs-devel python3-devel openssl-devel libatomic findutils
RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel lz4-devel bluez-libs-devel python3-devel openssl-devel libatomic findutils

RUN yum -y update
RUN yum -y install cmake python-pip
Expand Down
1 change: 1 addition & 0 deletions docker/fedora-36/docker_rm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

docker rm $(docker ps -aq --filter ancestor=pm3-fedora-36:1.0)
docker image rm pm3-fedora-36:1.0
docker image rm fedora:36
2 changes: 1 addition & 1 deletion docker/fedora-37/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM fedora:37

ENV LANG C
# qt5-qtbase-devel skipped
RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel bluez-libs-devel python3-devel openssl-devel libatomic findutils
RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel lz4-devel bluez-libs-devel python3-devel openssl-devel libatomic findutils

RUN yum -y update
RUN yum -y install cmake python-pip
Expand Down
1 change: 1 addition & 0 deletions docker/fedora-37/docker_rm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

docker rm $(docker ps -aq --filter ancestor=pm3-fedora-37:1.0)
docker image rm pm3-fedora-37:1.0
docker image rm fedora:37

0 comments on commit a54097e

Please sign in to comment.