File tree Expand file tree Collapse file tree 6 files changed +66
-0
lines changed Expand file tree Collapse file tree 6 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,27 @@ RUN apt-get update -y \
1616 && apt-get clean -y \
1717 && rm -rf /var/lib/apt/lists/*
1818
19+ # Install Docker
20+ RUN apt-get update -y \
21+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
22+ apt-transport-https \
23+ ca-certificates \
24+ curl \
25+ gnupg \
26+ lsb-release \
27+ && mkdir -p /etc/apt/keyrings \
28+ && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
29+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
30+ && apt-get update -y \
31+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
32+ docker-ce \
33+ docker-ce-cli \
34+ containerd.io \
35+ docker-buildx-plugin \
36+ docker-compose-plugin \
37+ && apt-get clean -y \
38+ && rm -rf /var/lib/apt/lists/*
39+
1940# Copy only requirements.txt first for better Docker layer caching.
2041COPY tutorials/${ACH_TUTORIAL}/brev/requirements.txt /opt/requirements.txt
2142
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ x-config:
2121 pull_policy : missing
2222 volumes :
2323 - accelerated-computing-hub:/accelerated-computing-hub
24+ - /var/run/docker.sock:/var/run/docker.sock
2425 environment :
2526 BREV_ENV_ID : ${BREV_ENV_ID:-}
2627 ACH_TUTORIAL : *tutorial-name
Original file line number Diff line number Diff line change @@ -24,6 +24,27 @@ RUN set -ex \
2424 && ln -fs /accelerated-computing-hub/brev/ipython-startup-add-cwd-to-path.py ~/.ipython/profile_default/startup/00-add-cwd-to-path.py \
2525 && python -m jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
2626
27+ # Install Docker
28+ RUN apt-get update -y \
29+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
30+ apt-transport-https \
31+ ca-certificates \
32+ curl \
33+ gnupg \
34+ lsb-release \
35+ && mkdir -p /etc/apt/keyrings \
36+ && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
37+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
38+ && apt-get update -y \
39+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
40+ docker-ce \
41+ docker-ce-cli \
42+ containerd.io \
43+ docker-buildx-plugin \
44+ docker-compose-plugin \
45+ && apt-get clean -y \
46+ && rm -rf /var/lib/apt/lists/*
47+
2748COPY . /accelerated-computing-hub
2849
2950WORKDIR /accelerated-computing-hub/tutorials/${ACH_TUTORIAL}/notebooks
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ x-config:
2222 pull_policy : missing
2323 volumes :
2424 - accelerated-computing-hub:/accelerated-computing-hub
25+ - /var/run/docker.sock:/var/run/docker.sock
2526 environment :
2627 BREV_ENV_ID : ${BREV_ENV_ID:-}
2728 ACH_TUTORIAL : *tutorial-name
Original file line number Diff line number Diff line change @@ -24,6 +24,27 @@ RUN set -ex \
2424 && ln -fs /accelerated-computing-hub/brev/ipython-startup-add-cwd-to-path.py ~/.ipython/profile_default/startup/00-add-cwd-to-path.py \
2525 && python -m jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
2626
27+ # Install Docker
28+ RUN apt-get update -y \
29+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
30+ apt-transport-https \
31+ ca-certificates \
32+ curl \
33+ gnupg \
34+ lsb-release \
35+ && mkdir -p /etc/apt/keyrings \
36+ && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
37+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
38+ && apt-get update -y \
39+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
40+ docker-ce \
41+ docker-ce-cli \
42+ containerd.io \
43+ docker-buildx-plugin \
44+ docker-compose-plugin \
45+ && apt-get clean -y \
46+ && rm -rf /var/lib/apt/lists/*
47+
2748COPY . /accelerated-computing-hub
2849
2950WORKDIR /accelerated-computing-hub/tutorials/${ACH_TUTORIAL}/notebooks
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ x-config:
2121 pull_policy : missing
2222 volumes :
2323 - accelerated-computing-hub:/accelerated-computing-hub
24+ - /var/run/docker.sock:/var/run/docker.sock
2425 environment :
2526 BREV_ENV_ID : ${BREV_ENV_ID:-}
2627 ACH_TUTORIAL : *tutorial-name
You can’t perform that action at this time.
0 commit comments