Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Updated base image to ubuntu:20.04 #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

# ARGUMENTS
ARG SDK_MANAGER_VERSION=1.8.0-10363
ARG SDK_MANAGER_VERSION=1.9.1-10844
ARG SDK_MANAGER_DEB=sdkmanager_${SDK_MANAGER_VERSION}_amd64.deb
ARG GID=1000
ARG UID=1000
Expand All @@ -21,6 +21,8 @@ RUN useradd -m $USERNAME && \
groupmod --gid ${GID} $USERNAME

# install package
RUN echo "Acquire::GzipIndexes \"false\"; Acquire::CompressionTypes::Order:: \"gz\";" > /etc/apt/apt.conf.d/docker-gzip-indexes
ENV DEBIAN_FRONTEND noninteractive
RUN yes | unminimize && \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
Expand All @@ -42,10 +44,23 @@ RUN yes | unminimize && \
net-tools \
python \
sshpass \
chromium-browser \
qemu-user-static \
binfmt-support \
libxshmfence1 \
tzdata \
locales \
sudo \
wget \
ca-certificates \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# install Google Chrome
RUN sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN apt-get update && apt-get install -y --no-install-recommends \
google-chrome-stable \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -56,8 +71,6 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

# install SDK Manager
USER jetpack
COPY --chown=jetpack:jetpack ${SDK_MANAGER_DEB} /home/${USERNAME}/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ NVIDIA released official Docker image(<https://docs.nvidia.com/sdk-manager/docke

Please download the package of NVIDIA SDK Manager from <https://developer.nvidia.com/nvidia-sdk-manager>.
And, please put the package of NVIDIA SDK Manager in the same directory as the Dockerfile.
This time, I used `sdkmanager_1.8.0-10363_amd64.deb`.
This time, I used `sdkmanager_1.9.1-10844_amd64.deb`.

### Build Docker image

Expand All @@ -29,7 +29,7 @@ docker build --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack .
To build a Docker image with a specific SDK Manager version override the ``SDK_MANAGER_VERSION`` variable in the Docker command line

```
docker build --build-arg SDK_MANAGER_VERSION=1.8.0-10363 --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack .
docker build --build-arg SDK_MANAGER_VERSION=1.9.1-10844 --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack .
```

### Create Docker container
Expand Down