Skip to content

Commit b5f7d59

Browse files
committed
Initial insertion
1 parent 3b6357c commit b5f7d59

File tree

7 files changed

+70
-2
lines changed

7 files changed

+70
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# OS X junk
2+
.DS_Store

Dockerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM ruby:2.4.5-alpine3.8
2+
3+
MAINTAINER Michael Karlesky <[email protected]>
4+
5+
6+
RUN apk --no-cache add \
7+
coreutils \
8+
gcc \
9+
gcovr \
10+
valgrind \
11+
libc-dev
12+
13+
##
14+
## Copy assets for inclusion in image
15+
##
16+
17+
COPY assets/gems /assets/gems
18+
19+
# Install Ceedling, CMock, Unity
20+
RUN set -ex \
21+
# Prevent documentation installation taking up space
22+
echo -e "---\ngem: --no-ri --no-rdoc\n...\n" > .gemrc \
23+
# Install Ceedling and related gems
24+
&& gem install --force --local /assets/gems/*.gem \
25+
# Cleanup
26+
&& rm -rf /assets \
27+
&& rm .gemrc
28+
29+
30+
RUN mkdir /project
31+
32+
##
33+
## Add base project path to $PATH (for help scripts, etc.)
34+
##
35+
36+
ENV PATH "/project:$PATH"
37+
38+
39+
##
40+
## Programming environment setup
41+
##
42+
43+
# Create empty project directory (to be mapped by source code volume)
44+
WORKDIR /project
45+
46+
# When the container launches, run a shell that launches in WORKDIR
47+
CMD ["/bin/sh"]

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
1-
# throwtheswitch-madsciencelab-docker
2-
Cross-compilation C unit testing environment with Unity, CMock, and Ceedling
1+
# Mad Science Lab C Unit Testing Docker Image
2+
Cross-compilation C unit testing environment with Unity, CMock, and Ceedling.
3+
4+
## Contents
5+
* Testing tools
6+
* Ceedling 0.28.3
7+
* CMock 2.4.5
8+
* Unity 2.4.2
9+
* C support
10+
* CException 1.3.1
11+
* [libc-dev 0.7.1](https://pkgs.alpinelinux.org/package/v3.8/main/x86/libc-dev)
12+
* Environment
13+
* [coreutils 8.29](https://pkgs.alpinelinux.org/package/v3.8/main/x86/coreutils)
14+
* gcc 6.4.0
15+
* gcov 6.4.0
16+
* valgrind 3.13.0
17+
* Ruby 2.4.5
18+
19+
## Usage
20+
`docker run -it --rm -v <local project path>:/project throwtheswitch/madsciencelab[:tag]`
21+

assets/gems/ceedling-0.28.3.gem

1.46 MB
Binary file not shown.

assets/gems/constructor-2.0.0.gem

10 KB
Binary file not shown.

assets/gems/rake-12.3.2.gem

85 KB
Binary file not shown.

assets/gems/thor-0.20.3.gem

54.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)