CCF/docker/app_dev

35 строки
893 B
Plaintext
Исходник Обычный вид История

# Application Development image
# Contains a CCF release for platform and toolchain for target platform
2020-04-09 22:54:34 +03:00
ARG platform=sgx
# SGX
FROM 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 ubuntu:20.04 AS base-snp
# Virtual
FROM ubuntu:20.04 AS base-virtual
# Final dev image
FROM base-${platform} AS final
2021-07-13 23:00:18 +03:00
ARG platform=sgx
ARG ansible_vars
2021-07-13 23:00:18 +03:00
RUN echo "APT::Acquire::Retries \"5\";" | tee /etc/apt/apt.conf.d/80-retries
2021-07-13 23:00:18 +03:00
COPY getting_started/setup_vm/ /tmp/setup_vm/
RUN apt update \
&& apt install -y ansible software-properties-common bsdmainutils dnsutils \
&& cd /tmp/setup_vm \
&& ansible-playbook app-dev.yml --extra-vars "$ansible_vars" --extra-vars "platform=${platform}" \
&& rm -rf /tmp/* \
&& apt remove -y ansible software-properties-common \
&& apt -y autoremove \
&& apt -y clean