Skip to content

Commit

Permalink
Migrate docker image to Decidim organization (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored Jun 1, 2023
1 parent 2ac6776 commit e31dbe8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/server-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ needs.check_python_to_js_cache.outputs.cache-hit != 'true' }}
container:
image: codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1
image: decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1
steps:
- uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ADD voting_schemes/electionguard/python-wrapper /code/voting_schemes/electiongua
RUN cd /code && make build_electionguard_python_wrapper

# This stage builds the pyodide packages for the previous python packages
FROM codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
FROM decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
LABEL author="[email protected]"

ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ADD voting_schemes/electionguard/python-wrapper /code/voting_schemes/electiongua
RUN cd /code && make build_electionguard_python_wrapper

# This stage builds the pyodide packages for the previous python packages
FROM codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
FROM decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
LABEL author="[email protected]"

ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ADD bulletin_board/server.mk /code/bulletin_board/server.mk
RUN cd /code && make build_electionguard_python_wrapper

# This stage builds the pyodide packages for the previous python packages
FROM codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
FROM decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 as python-to-js-builder
LABEL author="[email protected]"

ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard"
Expand Down
2 changes: 1 addition & 1 deletion voting_schemes/electionguard/makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ VOTING_SCHEME_ELECTIONGUARD_JS_LIBRARY_OUTPUT = \
VERIFIER_ELECTIONGUARD_PATH = voting_schemes/electionguard/verifier

DOCKER_BASE_IMAGE = decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-${ELECTIONGUARD_PYTHON_VERSION}
DOCKER_PYODIDE_IMAGE = codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-${ELECTIONGUARD_PYTHON_VERSION}
DOCKER_PYODIDE_IMAGE = decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-${ELECTIONGUARD_PYTHON_VERSION}

# SPECIFIC TASKS

Expand Down
2 changes: 1 addition & 1 deletion voting_schemes/electionguard/python-to-js/build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rm -rf $SHARED_FOLDER/electionguard/*
cp -rf .. $SHARED_FOLDER/electionguard/

# Build packages with Pyodide
docker run --rm --mount type=bind,source=$HOST_SHARED_FOLDER/electionguard,target=/electionguard -e PYODIDE_PACKAGES="electionguard,bulletin_board-electionguard" -it codegram/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 /electionguard/python-to-js/build-pyodide
docker run --rm --mount type=bind,source=$HOST_SHARED_FOLDER/electionguard,target=/electionguard -e PYODIDE_PACKAGES="electionguard,bulletin_board-electionguard" -it decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 /electionguard/python-to-js/build-pyodide

# Move generated files to the vendor folder of the js-adapter
cp -rf $SHARED_FOLDER/electionguard/python-to-js/output/* ../ruby-adapter/public/assets/electionguard/
Expand Down

0 comments on commit e31dbe8

Please sign in to comment.