-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
30 lines (21 loc) · 923 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# this dockerfile is for tests purposes only
# see e2e target in Makefile
#
FROM debian:bookworm
RUN useradd -ms /bin/bash test
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& update-ca-certificates
COPY bin/binenv /home/test/binenv
USER test
WORKDIR /home/test
RUN ./binenv update && ./binenv update -f binenv && ./binenv install binenv && rm binenv
RUN echo -e '\nexport PATH=~/.binenv:$PATH' >> ~/.bashrc
RUN echo 'source <(binenv completion bash)' >> ~/.bashrc
# COPY distributions/distributions_test.yaml /home/test/.config/binenv/distributions.yaml
COPY distributions/distributions.yaml /home/test/.config/binenv/distributions.yaml
# COPY DISTRIBUTIONS_test.md /home/test/.config/binenv/DISTRIBUTIONS.md
COPY DISTRIBUTIONS.md /home/test/.config/binenv/DISTRIBUTIONS.md
COPY scripts/e2e_tests.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/e2e_tests.sh"]