Skip to content

Commit

Permalink
Manual build processes fixes & toolchain option
Browse files Browse the repository at this point in the history
- Updates on naming for ThrowTheSwitch
- Added helpful `toolchain` build that includes all the of the gcc toolchain goodies for sake of debugging, etc. (release version tries to strip image down as much as possible)
  • Loading branch information
mkarlesky committed Jun 27, 2019
1 parent 9d4e4a3 commit ca88c0b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/base/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker build -t mkarlesky/drsurly-course2-base -f build/base/Dockerfile --squash .
docker build -t throwtheswitch/drsurly-course2-base -f build/base/Dockerfile --squash .
35 changes: 35 additions & 0 deletions build/toolchain/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM ubuntu:14.04.5

MAINTAINER Michael Karlesky <michael@karlesky.net>


# Update Ubuntu package management environment
# Nano is just a convenient text editor for use within the container
# Unzip is unarchives course materials
RUN set -ex \
&& apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y nano unzip --no-install-recommends

##
## Development environemnt: compiler toolchain & build tools
##

# Install packages needed for ARM-based cross-compiling
RUN apt-get install -y build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libglib2.0-0 --no-install-recommends

##
## Cleanup
##
RUN set -ex \
# Clean up apt-get leftovers and package lists
&& apt-get autoremove \
&& apt-get clean all \
&& apt-get autoclean all \
&& rm -rf /var/lib/apt/lists/* \
# Unneeded Debconf templates
&& rm /var/cache/debconf/*

# When the container launches, drop into a shell
ENTRYPOINT ["/bin/bash"]

3 changes: 3 additions & 0 deletions build/toolchain/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker build -t throwtheswitch/drsurly-course2-toolchain -f build/toolchain/Dockerfile .

0 comments on commit ca88c0b

Please sign in to comment.