finish examples
This commit is contained in:
parent
3f900a2f75
commit
3a7518f2ef
6 changed files with 68 additions and 0 deletions
16
05_complex_run_with_compose/Dockerfile
Normal file
16
05_complex_run_with_compose/Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM ubuntu:22.04 AS base
|
||||
|
||||
RUN apt update \
|
||||
&& apt install -yq --no-install-recommends \
|
||||
wget \
|
||||
tar \
|
||||
xz-utils \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/list
|
||||
|
||||
ARG CMAKE_VERSION=3.16.5
|
||||
RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
|
||||
-q --no-verbose --show-progress --progress=bar:force:noscroll -O /tmp/cmake-install.sh \
|
||||
&& chmod u+x /tmp/cmake-install.sh \
|
||||
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/ \
|
||||
&& rm /tmp/cmake-install.sh
|
|
@ -0,0 +1,3 @@
|
|||
docker compose up
|
||||
|
||||
docker compose run example_container
|
12
05_complex_run_with_compose/docker-compose.yml
Normal file
12
05_complex_run_with_compose/docker-compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
version: '3'
|
||||
services:
|
||||
example_container:
|
||||
build:
|
||||
context: "."
|
||||
hostname: "example"
|
||||
tty: true
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./:/source
|
||||
environment:
|
||||
- HELLO=world
|
Loading…
Add table
Add a link
Reference in a new issue