diff --git a/README.md b/README.md index c176952c9..8c8d537ba 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ UAVCAN stack in C++ [![Build Status](https://badge.buildkite.com/af844974c06af6406e3b2192d98298b02b30f6ebebb5f8b16c.svg)](https://buildkite.com/uavcan/libuavcan-v1) [![Forum](https://img.shields.io/discourse/https/forum.uavcan.org/users.svg)](https://forum.uavcan.org) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5d487b332d99498699a0af687fa513a1)](https://www.codacy.com/app/UAVCAN/libuavcan_v1?utm_source=github.com&utm_medium=referral&utm_content=UAVCAN/libuavcan&utm_campaign=Badge_Grade) Portable reference implementation of the [UAVCAN protocol stack](https://new.uavcan.org) in C++ for embedded systems, Linux, and POSIX-compliant RTOSs. diff --git a/docker/Dockerfile b/docker/Dockerfile index 1f8fa180d..06e589488 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ # # Builds a docker image for test and validation builds. # -FROM uavcan/libuavcan +FROM uavcan/libuavcan:latest VOLUME /repo diff --git a/docker/README.md b/docker/README.md index 24f19cb6e..8ce58092d 100644 --- a/docker/README.md +++ b/docker/README.md @@ -7,7 +7,7 @@ for development, continuous-integration, and test automation. (these instructions assume you have docker installed and running) -``` +```bash cd /path/to/libuavcan docker pull uavcan/libuavcan:latest @@ -21,7 +21,7 @@ docker run --rm -t -v /path/to/libuavcan/build:/repo uavcan/libuavcan:latest /bi On macintosh you'll probably want to optimize osxfs with something like cached or delegated: -``` +```bash docker run --rm -t -v /path/to/libuavcan/build:/repo:delegated uavcan/libuavcan:latest /bin/sh -c 'cd build_docker && mkdir make -j8' ``` @@ -29,7 +29,7 @@ See ["Performance tuning for volume mounts"](https://docs.docker.com/docker-for- Finally, to enter an interactive shell in this container something like this should work: -``` +```bash docker run --rm -it -v /path/to/libuavcan:/repo uavcan/libuavcan:latest ``` @@ -37,7 +37,7 @@ docker run --rm -it -v /path/to/libuavcan:/repo uavcan/libuavcan:latest You can use this in your .travis.yml like this: -``` +```bash language: cpp services: @@ -55,16 +55,16 @@ script: These instructions are for maintainers with permissions to push to the [uavcan organization on Docker Hub](https://cloud.docker.com/u/uavcan). -``` +```bash docker build . ``` -``` +```bash docker images REPOSITORY TAG IMAGE ID CREATED SIZE 736647481ad3 About a minute ago 1GB ``` -``` +```bash docker tag 736647481ad3 uavcan/libuavcan:latest docker login --username=yourhubusername docker push uavcan/libuavcan:latest