-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathe2e.dockerfile
More file actions
56 lines (44 loc) · 1.63 KB
/
e2e.dockerfile
File metadata and controls
56 lines (44 loc) · 1.63 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ----------------------------------------------------------------------------------------
# Kubernetes kubectl
# ----------------------------------------------------------------------------------------
FROM debian:bullseye AS kubectl
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
RUN apt update -q \
&& apt dist-upgrade -q -y \
&& apt install -y apt-utils apt-transport-https
RUN apt install -y \
curl
ENV ARCH=$(arch)
WORKDIR /bin
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl"
# ----------------------------------------------------------------------------------------
# E2E TEST RUNTIME
# ----------------------------------------------------------------------------------------
FROM node:20-bullseye
ARG VERSION=0.0.0
LABEL maintainer="aus der Technik"
LABEL Description="Uitsmijter e2e"
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
RUN apt update -q \
&& apt dist-upgrade -q -y \
&& apt install -y apt-utils apt-transport-https
RUN apt install -y \
yamllint
# Kubernetes & Helm
COPY --from=kubectl /bin/kubectl /usr/bin/kubectl
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
WORKDIR /tests
#ADD src/package.json .
# Tests have to modify root data
USER root
# Install dependencies
RUN yarn global add playwright@1.42.1; \
yarn global add @playwright/test@1.42.1; \
npx playwright install-deps; \
npx playwright install
ADD src/entrypoint-test.sh /entrypoint.sh
RUN sed -i 's/<VERSION>/${VERSION}/g' /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD [ "bash" ]