-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump electionguard from 1.2.1 to 1.2.3 and fix build (#304)
* prepare Dockerfile * change dockerfile * fix compilation for pyodide and libgmp * Update docker-entrypoint.sh Co-authored-by: Andrés Pereira de Lucena <[email protected]> * Update Dockerfile.release Co-authored-by: Andrés Pereira de Lucena <[email protected]> * patch Pipfile.lock * Update voting_schemes/electionguard/docker/pyodide-electionguard/packages/libgmp/Makefile Co-authored-by: Andrés Pereira de Lucena <[email protected]> * update wget in dockerfile --------- Co-authored-by: Andrés Pereira de Lucena <[email protected]>
- Loading branch information
1 parent
e31dbe8
commit 6918074
Showing
20 changed files
with
424 additions
and
358 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,5 +1,5 @@ | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
LABEL author="[email protected]" | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
LABEL author="[email protected]" | ||
|
||
# [Option] Install zsh | ||
ARG INSTALL_ZSH="true" | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
name: Build electionguard | ||
runs-on: ubuntu-latest | ||
container: | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -86,7 +86,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: ${{ needs.check_python_to_js_cache.outputs.cache-hit != 'true' }} | ||
container: | ||
image: decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.1 | ||
image: decidim/pyodide-electionguard:pyodide-0.16.1-electionguard-1.2.3 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -133,7 +133,7 @@ jobs: | |
needs: build_python_to_js | ||
runs-on: ubuntu-latest | ||
container: | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
services: | ||
postgres: | ||
image: postgres:11 | ||
|
@@ -246,7 +246,7 @@ jobs: | |
needs: [check_python_to_js_cache, build_python_to_js] | ||
runs-on: ubuntu-latest | ||
container: | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
services: | ||
postgres: | ||
image: postgres:11 | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
name: Test code | ||
runs-on: ubuntu-latest | ||
container: | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
image: decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
steps: | ||
- uses: rokroskar/[email protected] | ||
if: "github.ref != 'refs/heads/develop'" | ||
|
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile.release |
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,5 +1,5 @@ | ||
# This stage builds the python-wrapper package | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 as python-wrapper-builder | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 as python-wrapper-builder | ||
LABEL author="[email protected]" | ||
|
||
# Add Makefiles | ||
|
@@ -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 decidim/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.3 as python-to-js-builder | ||
LABEL author="[email protected]" | ||
|
||
ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard" | ||
|
@@ -43,7 +43,7 @@ RUN make | |
RUN cp -rf /code/voting_schemes/electionguard/python-to-js/override/* /src/pyodide/build/ | ||
|
||
# This stage builds the bulletin-board application | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
LABEL author="[email protected]" | ||
|
||
# Dummy environment variables used to compile assets | ||
|
@@ -80,12 +80,6 @@ ADD bulletin_board/server/package.json /code/bulletin_board/server/package.json | |
ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock | ||
ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile | ||
|
||
# Prevent npm ERR! code ERR_SOCKET_TIMEOUT | ||
RUN npm install --global npm@latest && \ | ||
npm config set fetch-timeout 1800000 -g && \ | ||
npm config set fetch-retry-mintimeout 600000 -g && \ | ||
npm config set fetch-retry-maxtimeout 1800000 -g | ||
|
||
# Install all dependencies, build artifacts and remove unnecessary files | ||
RUN cd /code && make install && make build SKIP_PYODIDE=true && \ | ||
rm -rf /code/bulletin_board/js-client && \ | ||
|
@@ -102,5 +96,4 @@ RUN npm install --global yarn | |
RUN bundle | ||
RUN bundle exec rake assets:precompile | ||
|
||
# Migrate and seed database | ||
CMD ["bundle", "exec", "rake", "db:migrate"] | ||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] |
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,5 +1,5 @@ | ||
# This stage builds the python-wrapper package | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 as python-wrapper-builder | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 as python-wrapper-builder | ||
LABEL author="[email protected]" | ||
|
||
# Add Makefiles | ||
|
@@ -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 decidim/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.3 as python-to-js-builder | ||
LABEL author="[email protected]" | ||
|
||
ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard" | ||
|
@@ -43,7 +43,7 @@ RUN make | |
RUN cp -rf /code/voting_schemes/electionguard/python-to-js/override/* /src/pyodide/build/ | ||
|
||
# This stage builds the bulletin-board application | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
LABEL author="[email protected]" | ||
|
||
# Dummy environment variables used to compile assets | ||
|
@@ -80,12 +80,6 @@ ADD bulletin_board/server/package.json /code/bulletin_board/server/package.json | |
ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock | ||
ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile | ||
|
||
# Prevent npm ERR! code ERR_SOCKET_TIMEOUT | ||
RUN npm install --global npm@latest && \ | ||
npm config set fetch-timeout 1800000 -g && \ | ||
npm config set fetch-retry-mintimeout 600000 -g && \ | ||
npm config set fetch-retry-maxtimeout 1800000 -g | ||
|
||
# Install all dependencies, build artifacts and remove unnecessary files | ||
RUN cd /code && make install && make build SKIP_PYODIDE=true && \ | ||
rm -rf /code/bulletin_board/js-client && \ | ||
|
@@ -105,3 +99,4 @@ RUN bundle exec rake assets:precompile | |
# Run the entrypoint script | ||
COPY ./docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] |
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,5 +1,5 @@ | ||
# This stage builds the python-wrapper package | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 as python-wrapper-builder | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 as python-wrapper-builder | ||
LABEL author="[email protected]" | ||
|
||
# Add Makefile | ||
|
@@ -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 decidim/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.3 as python-to-js-builder | ||
LABEL author="[email protected]" | ||
|
||
ENV PYODIDE_PACKAGES "electionguard,bulletin_board-electionguard" | ||
|
@@ -43,7 +43,7 @@ RUN make | |
RUN cp -rf /code/voting_schemes/electionguard/python-to-js/override/* /src/pyodide/build/ | ||
|
||
# This stage builds the bulletin-board application | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.1 | ||
FROM decidim/ruby-node-python-electionguard:ruby-3.1.1-node-16-python-3.8.11-electionguard-1.2.3 | ||
LABEL author="[email protected]" | ||
|
||
# Dummy environment variables used to compile assets | ||
|
@@ -80,12 +80,6 @@ ADD bulletin_board/server/package.json /code/bulletin_board/server/package.json | |
ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock | ||
ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile | ||
|
||
# Prevent npm ERR! code ERR_SOCKET_TIMEOUT | ||
RUN npm install --global npm@latest && \ | ||
npm config set fetch-timeout 1800000 -g && \ | ||
npm config set fetch-retry-mintimeout 600000 -g && \ | ||
npm config set fetch-retry-maxtimeout 1800000 -g | ||
|
||
# Install all dependencies, build artifacts and remove unnecessary files | ||
RUN cd /code && make install && make build && \ | ||
rm -rf /code/bulletin_board/js-client && \ | ||
|
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
2 changes: 1 addition & 1 deletion
2
voting_schemes/electionguard/docker/pyodide-electionguard/Dockerfile
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,5 +1,5 @@ | ||
FROM iodide/pyodide:0.16.1 | ||
LABEL author="[email protected]" | ||
LABEL author="[email protected]" | ||
|
||
ENV PYODIDE_PACKAGES "pyasn1,libgmp,gmpy2,micropip,attrs,sortedcontainers,hypothesis,jsons,typish,rsa" | ||
|
||
|
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
Submodule electionguard-python
updated
from 9e11da to 2c29f4
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
4 changes: 2 additions & 2 deletions
4
voting_schemes/electionguard/python-to-js/packages/electionguard/meta.yaml
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.