Skip to content

Commit

Permalink
Including pip in the image (#4)
Browse files Browse the repository at this point in the history
* Downgrading to Ubuntu 22 and Python 3.10
  • Loading branch information
c4deszes authored Feb 17, 2024
1 parent fcf4004 commit 3090998
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
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

0 comments on commit 3090998

Please sign in to comment.