Skip to content

Commit

Permalink
Merge branch 'develop' into fix-python-wrapper
Browse files Browse the repository at this point in the history
# Conflicts:
#	Dockerfile.release
  • Loading branch information
microstudi committed Sep 22, 2023
2 parents da28c73 + dcbd3da commit b92149e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ LABEL author="[email protected]"

ENV PYODIDE_PACKAGES "pyasn1,libgmp,gmpy2,micropip,attrs,sortedcontainers,hypothesis,jsons,typish,rsa"

# Install system dependencies
RUN apt-get update --allow-releaseinfo-change && apt-get install -y libgnutls28-dev

# Add base packages meta files
ADD packages /packages

Expand Down
19 changes: 14 additions & 5 deletions voting_schemes/electionguard/makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,23 @@ DOCKER_PYODIDE_IMAGE = decidim/pyodide-electionguard:pyodide-0.16.1-electionguar
electionguard_submodules:
git submodule init && git submodule update

electionguard_docker_base:
docker image build --build-arg ELECTIONGUARD_PYTHON_REF=${ELECTIONGUARD_PYTHON_VERSION} -t ${DOCKER_BASE_IMAGE} ${ELECTIONGUARD_DOCKER_PATH}/ruby-node-python-electionguard && \
electionguard_docker_base: build_electionguard_docker_base \
push_electionguard_docker_base

build_electionguard_docker_base:
docker image build --build-arg ELECTIONGUARD_PYTHON_REF=${ELECTIONGUARD_PYTHON_VERSION} -t ${DOCKER_BASE_IMAGE} ${ELECTIONGUARD_DOCKER_PATH}/ruby-node-python-electionguard

push_electionguard_docker_base:
docker image push ${DOCKER_BASE_IMAGE}

electionguard_docker_pyodide:
docker image build -t ${DOCKER_PYODIDE_IMAGE} ${ELECTIONGUARD_DOCKER_PATH}/pyodide-electionguard && \
docker image push ${DOCKER_PYODIDE_IMAGE}
electionguard_docker_pyodide: build_electionguard_docker_pyodide \
push_electionguard_docker_pyodide

build_electionguard_docker_pyodide:
docker image build -t ${DOCKER_PYODIDE_IMAGE} ${ELECTIONGUARD_DOCKER_PATH}/pyodide-electionguard

push_electionguard_docker_pyodide:
docker image push ${DOCKER_PYODIDE_IMAGE}

# COMMON TASKS

Expand Down

0 comments on commit b92149e

Please sign in to comment.