diff options
author | pmikus <pmikus@cisco.com> | 2021-02-15 12:01:48 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-04-08 11:53:02 +0000 |
commit | d653bff621c44d0af1f4dcb786e9830362cdac38 (patch) | |
tree | 07f2deed1d0ef40c5e630a7f85e43c3e66ef3d5c /fdio.infra.pxe/docker-nginx/Dockerfile | |
parent | df5672b3d9c29b51397f4770eb992c9f3f3955ce (diff) |
Infra: UEFI PXE integrated infra
+ uefi
+ dnsmasq
+ nginx
+ ubuntu focal {arm64|amd64}
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I9974a5b9255d64ba8b8231cf81f59c048b52bbba
Diffstat (limited to 'fdio.infra.pxe/docker-nginx/Dockerfile')
-rw-r--r-- | fdio.infra.pxe/docker-nginx/Dockerfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/fdio.infra.pxe/docker-nginx/Dockerfile b/fdio.infra.pxe/docker-nginx/Dockerfile new file mode 100644 index 0000000000..c171f116e8 --- /dev/null +++ b/fdio.infra.pxe/docker-nginx/Dockerfile @@ -0,0 +1,31 @@ +FROM ubuntu:20.04 as ubuntu_focal + +LABEL Description="ubuntu intermediate image" +LABEL Version="2.0" + +RUN apt update \ + && apt install -y wget + +ENV ISO_FOCAL_AMD64 https://releases.ubuntu.com/20.04.2/ubuntu-20.04.2-live-server-amd64.iso +ENV ISO_FOCAL_ARM64 https://cdimage.ubuntu.com/releases/20.04/release/ubuntu-20.04.2-live-server-arm64.iso + +RUN echo "Preparing ISO Pre-cache" \ + && wget $ISO_FOCAL_AMD64 -O /ubuntu-20.04.2-live-server-amd64.iso \ + && wget $ISO_FOCAL_ARM64 -O /ubuntu-20.04.2-live-server-arm64.iso + + +FROM nginx:stable-alpine + +LABEL Description="nginx service image" +LABEL Version="2.0" + +ENV NGINX_FOCAL_AMD64 /usr/share/nginx/html/ubuntu_focal_amd64/ +ENV NGINX_FOCAL_ARM64 /usr/share/nginx/html/ubuntu_focal_arm64/ + +RUN mkdir -p $NGINX_FOCAL_AMD64 \ + && mkdir -p $NGINX_FOCAL_ARM64 + +COPY --from=ubuntu_focal /ubuntu-20.04.2-live-server-amd64.iso $NGINX_FOCAL_AMD64/ubuntu-20.04.2-live-server-amd64.iso +COPY --from=ubuntu_focal /ubuntu-20.04.2-live-server-arm64.iso $NGINX_FOCAL_ARM64/ubuntu-20.04.2-live-server-arm64.iso + +COPY html/ /usr/share/nginx/html/
\ No newline at end of file |