Skip to content

Commit 5d1c4bf

Browse files
updating toxic (#34)
1 parent ad18a79 commit 5d1c4bf

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ is based on Ubuntu and provides all modern Python3 distributions, pip, tox, and
7777
| tag | Base Python | Python Versions | Tox | Nox | pip | Other Utilities |
7878
|----------|-------------|-----------------|-----|-----|-----|-----------------|
7979
| [tx20.4.1](https://github.com/OpenCyphal/docker_toolchains/pkgs/container/toxic) | 3.8 | 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | 4.4.5 | (not available) | 20.0.2 | <ul><li>sonar-scanner</li></ul> |
80+
| [tx22.4.1](https://github.com/OpenCyphal/docker_toolchains/pkgs/container/toxic) | 3.8 | 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 | 4.4.5 | (not available) | 20.0.2 | |
8081

8182
You can use this in your workflow yaml like this:
8283

toxic/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
2-
# Builds a docker image to use for tox runs.
2+
# Builds a docker image to use for development and CI.
33
#
4-
FROM ubuntu:20.04
4+
FROM ubuntu:22.04
55

66
LABEL org.opencontainers.image.description "Provides a consistent build and test environment for development, continuous-integration, and test automation of OpenCyphal Python based projects."
77

@@ -14,14 +14,9 @@ ARG DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get update && apt-get -y install apt-utils && apt-get -y install locales
1515
RUN locale-gen en_US.UTF-8
1616

17-
ENV SONAR_SCANNER_VERSION 4.8.0.2856
1817
ENV LANG=en_US.UTF-8
1918
ENV LANGUAGE=en_US:en
2019
ENV LC_ALL=en_US.UTF-8
21-
ENV SONAR_SCANNER_HOME=/sonar-scanner-${SONAR_SCANNER_VERSION}-linux
22-
ENV SONAR_SCANNER_OPTS="-server"
23-
24-
ENV PATH="${SONAR_SCANNER_HOME}/sonar-scanner-${SONAR_SCANNER_VERSION}-linux/bin:${PATH}"
2520

2621
COPY provision.sh /
2722

toxic/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ for development, continuous-integration, and test automation of Python based pro
77

88
To release a new build of this container simply create a [new github release](https://github.com/OpenCyphal/docker_toolchains/releases/new)
99
that starts with `tx`, uses the Ubuntu major and minor version, and uses an monotonically increasing "patch" version.
10-
For example `tx20.4.1`will cause the Github workflow to rebuild and push the `opencyphal/toxic` container with the
11-
tag `tx20.4.1`.
10+
For example `tx22.4.1`will cause the Github workflow to rebuild and push the `opencyphal/toxic` container with the
11+
tag `tx22.4.1`.
1212

1313
***PLEASE UPDATE THE TOP-LEVEL README.md FOR EACH NEW RELEASE***
1414

@@ -32,19 +32,19 @@ echo $FGP | docker login ghcr.io -u (github username) --password-stdin
3232
... now build (where x is the next version number for the container):
3333

3434
```bash
35-
docker build -t ghcr.io/opencyphal/toxic:tx20.4.x .
35+
docker build -t ghcr.io/opencyphal/toxic:tx22.4.x .
3636
```
3737

3838
... and finally, push.
3939

4040
```bash
41-
docker push ghcr.io/opencyphal/toxic:tx20.4.x
41+
docker push ghcr.io/opencyphal/toxic:tx22.4.x
4242
```
4343

4444
## Testing out the container
4545

4646
To login to an interactive session do:
4747

4848
```bash
49-
docker run --rm -it -v ${PWD}:/repo ghcr.io/opencyphal/toxic:tx20.4.x
49+
docker run --rm -it -v ${PWD}:/repo ghcr.io/opencyphal/toxic:tx22.4.x
5050
```

toxic/provision.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,26 @@ apt-get -y install unzip
2828
# deadsnakes maintains a bunch of python versions for Ubuntu.
2929
add-apt-repository -y ppa:deadsnakes/ppa
3030
apt-get update
31-
apt-get -y install python3.6
31+
apt-get -y install python3.10
32+
apt-get -y install python3-pip
33+
3234
apt-get -y install python3.7
35+
apt-get -y install python3.7-distutils
3336
apt-get -y install python3.8
37+
apt-get -y install python3.8-distutils
3438
apt-get -y install python3.9
35-
apt-get -y install python3.10
39+
apt-get -y install python3.9-distutils
3640
apt-get -y install python3.11
41+
apt-get -y install python3.11-distutils
3742
apt-get -y install python3.12
38-
apt-get -y install python3-pip
39-
pip3 install tox
43+
apt-get -y install python3.12-distutils
4044

41-
# Sonarqube
42-
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
43-
unzip -o $HOME/.sonar/sonar-scanner.zip -d $SONAR_SCANNER_HOME
4445

45-
rm -rf $HOME/.sonar
46+
pip3 install tox
47+
pip3 install nox
4648

4749
echo "export PATH=$PATH" >> ~/.bashrc
4850
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
4951
echo "export LANGUAGE=en_US:en" >> ~/.bashrc
5052
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
53+
echo "alias la=\"ls -lah\"" >> ~/.bashrc

0 commit comments

Comments
 (0)