Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This branch adds a dockerized environment to reproduce the issues that the CI faced with Ubuntu 24.04 and secp256k1. #133

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"aiohttp>=3.8.3",
"aleph-message>=0.4.8",
"coincurve; python_version<\"3.11\"",
"coincurve>=19.0.0; python_version>=\"3.11\"",
"coincurve>=20.0.0; python_version>=\"3.11\"",
"eth_abi>=4.0.0; python_version>=\"3.11\"",
"eth_account>=0.4.0,<0.11.0",
"jwcrypto==1.5.6",
Expand Down
6 changes: 6 additions & 0 deletions tests/test-ubuntu-24.04-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -euo pipefail

podman build -t aleph-sdk-ubuntu:24.04 -f tests/ubuntu-24.04.dockerfile .
podman run -ti --rm -v $(pwd):/mnt aleph-sdk-ubuntu:24.04 bash
19 changes: 19 additions & 0 deletions tests/ubuntu-24.04.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM ubuntu:24.04

RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
libsecp256k1-dev \
git \
&& rm -rf /var/lib/apt/lists/*

# Create a working virtual environment \
RUN python3 -m venv /opt/venv
RUN /opt/venv/bin/python -m pip install --upgrade pip hatch

WORKDIR /mnt
VOLUME /mnt

# Make it easy to run the tests with the upper arrow
RUN echo "/opt/venv/bin/hatch run testing:test" >> /root/.bash_history
Loading