зеркало из https://github.com/microsoft/CCF.git
36 строки
1.1 KiB
Plaintext
36 строки
1.1 KiB
Plaintext
# Application Runtime image
|
|
# Contains the cchost binary and its runtime dependencies for target platform
|
|
|
|
ARG platform=sgx
|
|
|
|
# SGX
|
|
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:20.04 AS base-sgx
|
|
|
|
WORKDIR /
|
|
COPY ./docker/sgx_deps_pin.sh /
|
|
RUN ./sgx_deps_pin.sh && rm ./sgx_deps_pin.sh
|
|
|
|
# SNP
|
|
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:20.04 AS base-snp
|
|
|
|
# Virtual
|
|
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:20.04 AS base-virtual
|
|
|
|
# Final runtime image
|
|
FROM base-${platform} AS final
|
|
|
|
ARG platform=sgx
|
|
ARG ansible_vars
|
|
ARG clang_version=11
|
|
|
|
RUN echo "APT::Acquire::Retries \"5\";" | tee /etc/apt/apt.conf.d/80-retries
|
|
|
|
COPY getting_started/setup_vm/ /tmp/setup_vm/
|
|
RUN apt update \
|
|
&& apt install -y ansible software-properties-common curl bsdmainutils dnsutils \
|
|
&& cd /tmp/setup_vm \
|
|
&& ansible-playbook app-run.yml --extra-vars "$ansible_vars" --extra-vars "platform=${platform}" --extra-vars "clang_version=${clang_version}"\
|
|
&& rm -rf /tmp/* \
|
|
&& apt remove -y ansible software-properties-common curl \
|
|
&& apt -y autoremove \
|
|
&& apt -y clean |