Skip to content

misc: Add simple containerfile to regenerate bindings #305

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Simple ubuntu container that can be used to regenerate bindings with the provided script
# when one does not use ubuntu
#
# Instructions:
# $ podman build -t rust-cryptoki .
# $ podman run -v $PWD:/src:z rust-cryptoki
#
FROM ubuntu:latest
RUN export DEBIAN_FRONTEND=noninteractive; \
export DEBCONF_NONINTERACTIVE_SEEN=true; \
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
apt-get update -q && apt-get install -y rustup clang && rustup default stable

WORKDIR /src/cryptoki-sys
CMD [ "/bin/bash", "regenerate_bindings.sh" ]
Loading