-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual build processes fixes & toolchain option
- 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
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |