Skip to content

Commit 3090998

Browse files
authored
Including pip in the image (#4)
* Downgrading to Ubuntu 22 and Python 3.10
1 parent fcf4004 commit 3090998

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

Dockerfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM ubuntu:23.04
1+
FROM ubuntu:22.04
22

3-
LABEL version="1.1.0"
3+
LABEL version="1.3.0"
44
LABEL description="Image for building ARM embedded projects"
55

66
# Install common tools
@@ -11,7 +11,18 @@ RUN apt-get install -y \
1111
curl \
1212
wget \
1313
libboost-all-dev \
14-
libtool
14+
libtool \
15+
software-properties-common
16+
17+
RUN add-apt-repository ppa:deadsnakes/ppa
18+
RUN apt-get update && \
19+
apt-get install -y python3.10 python3.10-distutils && \
20+
apt-get install -y python3.10-venv python3.10-dev && \
21+
apt-get install -y python3-pip
22+
23+
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
24+
update-alternatives --set python3 /usr/bin/python3.10 && \
25+
ln -s /usr/bin/python3.10 /usr/bin/python
1526

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

33-
# Install Python
34-
WORKDIR /
35-
RUN apt-get install -y python3.11
36-
RUN echo 'alias python="python3.11"' >> ~/.bashrc
37-
RUN echo 'alias python3="python3.11"' >> ~/.bashrc
38-
3944
# Install ARM GCC
4045
ARG arm_archive="13.2.rel1"
4146
ARG arm_version="13.2.rel1"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Tools
88

99
+ CMake 3.28.1
10-
+ Python 3.11.4
10+
+ Python 3.10
1111
+ GCC 9.0
1212
+ ARM GCC 13.2-rel1
1313
+ SRecord 1.65

0 commit comments

Comments
 (0)