Skip to content

Commit 29262ff

Browse files
committed
misc: Add simple containerfile to regenerate bindings
Signed-off-by: Jakub Jelen <[email protected]>
1 parent 98f269a commit 29262ff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Containerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Simple ubuntu container that can be used to regenerate bindings with the provided script
2+
# when one does not use ubuntu
3+
#
4+
# Instructions:
5+
# $ podman build -t rust-cryptoki .
6+
# $ podman run -v $PWD:/src:z rust-cryptoki
7+
#
8+
FROM ubuntu:latest
9+
RUN export DEBIAN_FRONTEND=noninteractive; \
10+
export DEBCONF_NONINTERACTIVE_SEEN=true; \
11+
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
12+
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
13+
apt-get update -q && apt-get install -y rustup clang && rustup default stable
14+
15+
WORKDIR /src/cryptoki-sys
16+
CMD [ "/bin/bash", "regenerate_bindings.sh" ]

0 commit comments

Comments
 (0)