forked from clarkzjw/mmsys24-starlink-livestreaming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-nginx-emulation
More file actions
29 lines (20 loc) · 917 Bytes
/
Copy pathDockerfile-nginx-emulation
File metadata and controls
29 lines (20 loc) · 917 Bytes
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
FROM --platform=$BUILDPLATFORM nginx:1.25.1
ARG TARGETPLATFORM
ARG BUILDPLATFORM
# No interactive frontend during docker build
ENV DEBIAN_FRONTEND=noninteractive \
DEBCONF_NONINTERACTIVE_SEEN=true
RUN apt-get update && apt-get install vim net-tools iputils-ping iproute2 python3 supervisor iperf3 -y
WORKDIR /etc/nginx
RUN openssl req -nodes -x509 -newkey rsa:2048 -days 365 \
-subj "/C=CA/ST=BC/L=Victoria/O=UVic/CN=us-west.gcp.clarkzjw.ca" \
-keyout server-key.pem -out server-cert.pem
COPY etc/nginx/conf.d/livesim2.conf /etc/nginx/conf.d/default.conf
COPY shaper/supervisord.conf /etc/supervisor/supervisord.conf
COPY runner/tc.py /tc.py
COPY runner/tc-trace.py /tc-trace.py
COPY shaper/entrypoint.sh /opt/bin/
RUN mkdir -p /var/run/supervisor /var/log/supervisor && chmod +x /opt/bin/entrypoint.sh
ENV PYTHONUNBUFFERED 1
ENTRYPOINT ["/opt/bin/entrypoint.sh"]
CMD ["/opt/bin/entrypoint.sh"]