-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
54 lines (40 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ruby:2.7.1-alpine3.11
MAINTAINER Michael Karlesky <[email protected]>
RUN apk --no-cache add \
coreutils \
gcc \
gcovr \
valgrind \
libc-dev \
gdb
##
## Copy assets for inclusion in image
##
## Notes:
## - Gems must be downloaded manually to the vendored assets/gems directory.
## - To find the list of gems and versions needed, visit
## https://rubygems.org/gems/ceedling/versions/0.31.0/dependencies
## - The easiest way to vendor a gem is `gem fetch <name> -v <version>` in assets/gems.
##
COPY assets/gems /assets/gems
# Install Ceedling, CMock, Unity
RUN set -ex \
# Prevent documentation installation taking up space
echo -e "---\ngem: --no-ri --no-rdoc\n...\n" > .gemrc \
# Install Ceedling and related gems
&& gem install --force --local /assets/gems/*.gem \
# Cleanup
&& rm -rf /assets \
&& rm .gemrc
RUN mkdir /project
##
## Add base project path to $PATH (for help scripts, etc.)
##
ENV PATH "/project:$PATH"
##
## Programming environment setup
##
# Create empty project directory (to be mapped by source code volume)
WORKDIR /project
# When the container launches, run a shell that launches in WORKDIR
CMD ["/bin/sh"]