From 3adc5f24dc5e674b2010be123814655e04fab9a4 Mon Sep 17 00:00:00 2001 From: tunmx Date: Wed, 8 Mar 2023 17:32:57 +0800 Subject: [PATCH] docker --- Dockerfile | 21 ++++++++++++++++++++ command/docker_build_linux_x86_shared_lib.sh | 1 + docker-compose.yml | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 Dockerfile create mode 100644 command/docker_build_linux_x86_shared_lib.sh create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..82f4939 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:18.04 + +MAINTAINER tunm + +WORKDIR /work +COPY . /work +COPY 3rdparty_hyper_inspire_op/cmake-3.24.3.tar.gz /root/ + +# timezone +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +RUN echo 'Asia/Shanghai' >/etc/timezone + + +RUN ls 3rdparty_hyper_inspire_op + +# && tar -zxvf cmake-3.24.3.tar.gz \ +# && cd cmake-3.24.3 \ +# && ./bootstrap \ +# && make -j$(nproc) \ +# && sudo make install \ +# && cmake --version \ No newline at end of file diff --git a/command/docker_build_linux_x86_shared_lib.sh b/command/docker_build_linux_x86_shared_lib.sh new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/command/docker_build_linux_x86_shared_lib.sh @@ -0,0 +1 @@ + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2075be3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + build_linux_x86_shared_lib: + container_name: hlpr_b_x86 + image: ubuntu:18.04 + volumes: + - .:/work + working_dir: /work + command: bash command/docker_build_linux_x86_shared_lib.sh + tty: true