-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra] Infra for ubuntu 24.04 (#12978)
This commit includes - Dockerfile for ubuntu 24.04 - Rootfs script for ubuntu 24.04 ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
- Loading branch information
Showing
9 changed files
with
138 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM ubuntu:noble | ||
|
||
# Install 'add-apt-repository' | ||
RUN apt-get update && apt-get -qqy install software-properties-common | ||
|
||
# Install tzdata without user input | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -qqy install tzdata | ||
|
||
# Build tool | ||
RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu | ||
|
||
# Debian build tool | ||
RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python | ||
|
||
# Install extra dependencies (Caffe, nnkit) | ||
RUN apt-get update && apt-get -qqy install libboost-all-dev libgflags-dev libgoogle-glog-dev libatlas-base-dev libhdf5-dev | ||
|
||
# Additonal tools | ||
RUN apt-get update && \ | ||
apt-get -qqy install doxygen graphviz wget zip unzip python3 python3-pip python3-venv python3-dev hdf5-tools pylint curl | ||
RUN python3 -m pip install yapf==0.22.0 --break-system-packages | ||
|
||
# Install clang-format | ||
RUN apt-get update && apt-get -qqy install clang-format-16 | ||
|
||
# TODO: Install gbs & sdb | ||
# gbs & sdb are not support ubuntu noble yet | ||
|
||
# Setup user ubuntu: give superuser permissions without password | ||
RUN apt-get update && apt-get -qqy install sudo | ||
RUN usermod -aG sudo ubuntu | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Clean archives (to reduce image size) | ||
RUN apt-get clean -y | ||
|
||
# Set user to ubuntu(1000) | ||
USER ubuntu | ||
WORKDIR /home/ubuntu | ||
RUN python3 -m venv ~/.local | ||
ENV PATH=~/.local/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM ubuntu:noble | ||
|
||
# Install tzdata without user input | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata | ||
|
||
# Install 'add-apt-repository' | ||
RUN apt-get update && apt-get -qqy install software-properties-common | ||
|
||
# Build tool | ||
RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf | ||
|
||
# Debian build tool | ||
RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python | ||
|
||
# Install extra dependencies (Caffe, nnkit) | ||
RUN apt-get update && apt-get -qqy install libboost-all-dev libgflags-dev libgoogle-glog-dev libatlas-base-dev libhdf5-dev | ||
|
||
# Additonal tools | ||
RUN apt-get update && \ | ||
apt-get -qqy install doxygen graphviz wget zip unzip python3 python3-pip python3-venv python3-dev hdf5-tools pylint curl | ||
RUN python3 -m pip install yapf==0.22.0 --break-system-packages | ||
|
||
# Install clang-format | ||
RUN apt-get update && apt-get -qqy install clang-format-16 | ||
|
||
# TODO: Install gbs & sdb | ||
# gbs & sdb are not support ubuntu jammy yet | ||
|
||
# Setup user ubuntu: give superuser permissions without password | ||
RUN apt-get update && apt-get -qqy install sudo | ||
RUN usermod -aG sudo ubuntu | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Clean archives (to reduce image size) | ||
RUN apt-get clean -y | ||
|
||
# Set user to ubuntu(1000) | ||
USER ubuntu | ||
WORKDIR /home/ubuntu | ||
RUN python3 -m venv ~/.local | ||
ENV PATH=~/.local/bin:$PATH |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://ports.ubuntu.com/ubuntu-ports/ noble main restricted universe | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble main restricted universe | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-updates main restricted universe | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-updates main restricted universe | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://ports.ubuntu.com/ubuntu-ports/ noble main restricted universe | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble main restricted universe | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-updates main restricted universe | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-updates main restricted universe | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-backports main restricted | ||
|
||
deb http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse | ||
deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters