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

Including pip in the image #4

Merged
merged 2 commits into from
Feb 17, 2024
Merged
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: 14 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:23.04
FROM ubuntu:22.04

LABEL version="1.1.0"
LABEL version="1.3.0"
LABEL description="Image for building ARM embedded projects"

# Install common tools
Expand All @@ -11,7 +11,18 @@ RUN apt-get install -y \
curl \
wget \
libboost-all-dev \
libtool
libtool \
software-properties-common

RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && \
apt-get install -y python3.10 python3.10-distutils && \
apt-get install -y python3.10-venv python3.10-dev && \
apt-get install -y python3-pip

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
update-alternatives --set python3 /usr/bin/python3.10 && \
ln -s /usr/bin/python3.10 /usr/bin/python

# Install SRecord
ARG srecord_version="1.65"
Expand All @@ -30,12 +41,6 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cm
RUN sh cmake-${cmake_version}-${cmake_platform}.sh --prefix=/opt/cmake --skip-license
ENV PATH "$PATH:/opt/cmake/bin"

# Install Python
WORKDIR /
RUN apt-get install -y python3.11
RUN echo 'alias python="python3.11"' >> ~/.bashrc
RUN echo 'alias python3="python3.11"' >> ~/.bashrc

# Install ARM GCC
ARG arm_archive="13.2.rel1"
ARG arm_version="13.2.rel1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Tools

+ CMake 3.28.1
+ Python 3.11.4
+ Python 3.10
+ GCC 9.0
+ ARM GCC 13.2-rel1
+ SRecord 1.65
Expand Down