Skip to content

Commit f1e88ca

Browse files
fix for #29, update nodejs (#30)
Also removes sonar-scanner. It's better to pull that is as a github action (SonarSource/sonarcloud-github-c-cpp@v1 ) so it stays up to date without re-publishing the container.
1 parent b31b9e6 commit f1e88ca

File tree

6 files changed

+482
-72
lines changed

6 files changed

+482
-72
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ like [libcanard](https://github.com/OpenCyphal/libcanard) and
2727
|----------|--------|-----|-------|-------|-----------------|
2828
| [ts20.4.1](https://github.com/OpenCyphal/docker_toolchains/pkgs/container/toolshed) | 3.10 | 9.3.0 | 10.0.0 | 3.16.3 | <ul><li>qemu</li><li>can-utils</li><li>sonar-scanner</li></ul> |
2929
| [ts22.4.1](https://github.com/OpenCyphal/docker_toolchains/pkgs/container/toolshed) | 3.10 | 11.3.0 | 15.0.7 | 3.22.1 | <ul><li>qemu</li><li>can-utils</li><li>sonar-scanner</li><li>doxygen 1.9.6</li></ul>
30+
| [ts22.4.2](https://github.com/OpenCyphal/docker_toolchains/pkgs/container/toolshed) | 3.10 | 11.3.0 | 15.0.7 | 3.22.1 | <ul><li>qemu</li><li>can-utils</li><li>~~sonar-scanner~~</li><li>doxygen 1.9.6</li><li>nvm</li><li>node 16.20.0</li></ul>
3031

3132
You can use this in your workflow yaml like this:
3233

3334
```none
3435
jobs:
3536
my-job:
3637
runs-on: ubuntu-latest
37-
container: ghcr.io/opencyphal/toolshed:ts22.4.1
38+
container: ghcr.io/opencyphal/toolshed:ts22.4.2
3839
```
3940

4041

toolshed/Dockerfile

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ ENV LC_ALL=en_US.UTF-8
1919
COPY provision.sh /
2020
RUN /provision.sh
2121

22+
# +---------------------------------------------------------------------------+
23+
# | NVM/nodejs
24+
# +---------------------------------------------------------------------------+
25+
WORKDIR /tmp
26+
ADD nvm-install.sh ./nvm-install.sh
27+
RUN . ./nvm-install.sh
28+
ENV NVM_DIR="~/.nvm"
29+
RUN . ~/.nvm/nvm.sh && nvm install v16.20.0
30+
2231
# +---------------------------------------------------------------------------+
2332
# | LLVM
2433
# +---------------------------------------------------------------------------+
@@ -92,28 +101,18 @@ ENV PATH="/usr/share/${GCC_ARM_NONE_LINUX_BASENAME}/bin:${PATH}"
92101

93102
RUN ${GCC_ARM_NONE_LINUX_TRIPLE}-gcc --version
94103

95-
96-
# +---------------------------------------------------------------------------+
97-
# | INSTALL SONAR SCANNER
98-
# +---------------------------------------------------------------------------+
99-
ENV SONAR_SCANNER_VERSION 4.7.0.2747
100-
ENV SONAR_SCANNER_HOME=/sonar-scanner-${SONAR_SCANNER_VERSION}-linux
101-
ENV SONAR_SCANNER_OPTS="-server"
102-
103-
ENV PATH="${SONAR_SCANNER_HOME}/build-wrapper-linux-x86:${PATH}"
104-
ENV PATH="${SONAR_SCANNER_HOME}/sonar-scanner-${SONAR_SCANNER_VERSION}-linux/bin:${PATH}"
105-
106-
COPY sonar_qube.sh /
107-
RUN /sonar_qube.sh
108-
109104
# +---------------------------------------------------------------------------+
110105
# | INSTALL THE PATH FOR INTERATIVE SESSIONS
111106
# +---------------------------------------------------------------------------+
112107
RUN echo "export PATH=$PATH" >> ~/.bashrc
113108

114109
# +---------------------------------------------------------------------------+
115-
# | INSTALL PYTHON AND NPM STUFF
110+
# | INSTALL PYTHON STUFF
116111
# +---------------------------------------------------------------------------+
117112
RUN pip3 install virtualenv
118113
RUN pip3 install tox
119-
RUN cd /tmp && npm install -g gh-pages
114+
115+
# +---------------------------------------------------------------------------+
116+
# | LEAVE THE WORKDIR AS /repo
117+
# +---------------------------------------------------------------------------+
118+
WORKDIR /repo

toolshed/README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,3 @@ To login to an interactive session do:
4848
```bash
4949
docker run --rm -it -v ${PWD}:/repo ghcr.io/opencyphal/toolshed:ts22.4.x
5050
```
51-
52-
## Toolchain Documentation
53-
54-
### Sonarqube
55-
56-
Wrap yer build:
57-
58-
```bash
59-
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory cmake --build build/
60-
```
61-
62-
Upload the results:
63-
64-
```bash
65-
sonar-scanner \
66-
-Dsonar.organization=OpenCyphal \
67-
-Dsonar.projectKey=OpenCyphal_myproject \
68-
-Dsonar.sources=. \
69-
-Dsonar.host.url=https://sonarcloud.io \
70-
-Dsonar.cfamily.build-wrapper-output=bw-output \
71-
-Dsonar.login=TOKEN
72-
```
73-
74-
A [CMake example on github](https://github.com/SonarSource/sonarcloud_example_cpp-cmake-linux-otherci)

0 commit comments

Comments
 (0)