Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docker env for build image #1

Open
wants to merge 1 commit 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
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM focker.ir/ubuntu:18.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y \
build-essential \
bash \
bc \
binutils \
build-essential \
bzip2 \
cpio \
g++ \
gcc \
git \
gzip \
locales \
libncurses5-dev \
libdevmapper-dev \
libsystemd-dev \
make \
mercurial \
whois \
patch \
perl \
python \
rsync \
sed \
tar \
vim \
unzip \
wget \
bison \
flex \
libssl-dev \
libfdt-dev \
swig \
libncurses-dev \
libpython3-dev \
python3-distutils


RUN ["/bin/bash"]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ If you have a multicore CPU, you can try
make -j ${YOUR_CPU_COUNT}
```

## using docker environment for build
build docker image build execute below command
```shell
sudo docker build -t buildroot-ubuntu18:latest .
```
after build docker image create docker container with belo command and follow build instruction:
```shell
sudo docker run -it --rm \
-v $PWD/buildroot-sinux/:/buildroot-sinux \
buildroot-ubuntu18:latest



## Flashing firmware to target
### WARNING: Please be careful when running the following commands, as you might destroy essential data or disk.
Expand Down