diff options
author | Miguel Luís <mkxpto@gmail.com> | 2017-07-17 17:36:23 +0000 |
---|---|---|
committer | Miguel Luís <mkxpto@gmail.com> | 2017-07-17 17:36:23 +0000 |
commit | cf22fc94aaa7032bec753fd07d0b83ded067dded (patch) | |
tree | 6abbedb7a87c2ab376a6ed3f105d56a4f0f9668e | |
parent | b90638d9f1d7a4cb6c2b1d7e17ed6a9ab6f955f4 (diff) | |
download | launchpad-polymaker-cf22fc94aaa7032bec753fd07d0b83ded067dded.tar.gz launchpad-polymaker-cf22fc94aaa7032bec753fd07d0b83ded067dded.zip |
Added support for Docker.
-rw-r--r-- | Dockerfile | 22 | ||||
-rw-r--r-- | README.md | 10 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..166ecc4 --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,22 @@ | |||
1 | # phusion | ||
2 | FROM phusion/baseimage:0.9.22 | ||
3 | |||
4 | # Use baseimage-docker's init system. | ||
5 | CMD ["/sbin/my_init"] | ||
6 | |||
7 | # Set Env | ||
8 | ENV DEBIAN_FRONTEND noninteractive | ||
9 | ENV path /launchpad-pro | ||
10 | |||
11 | # Set the working directory | ||
12 | WORKDIR ${path} | ||
13 | |||
14 | # Copy the current directory contents into the container at ${path} | ||
15 | #ADD . ${path} | ||
16 | |||
17 | # Distro management | ||
18 | RUN apt-get update && apt-get install -y build-essential gcc-arm-none-eabi && \ | ||
19 | apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
20 | |||
21 | # Run shell | ||
22 | CMD ["/bin/bash"] \ No newline at end of file | ||
@@ -22,6 +22,16 @@ I'm sure you'll have feedback for us, so please do get in touch! I'm [blogging | |||
22 | 22 | ||
23 | # Setup the Development Environment | 23 | # Setup the Development Environment |
24 | 24 | ||
25 | ## Using Docker | ||
26 | |||
27 | If your system is running docker you can easily setup the environment with: | ||
28 | |||
29 | ``` | ||
30 | docker build -t novation-launchpad-pro-dev . | ||
31 | docker run -it -v $(pwd):/launchpad-pro novation-launchpad-pro-dev | ||
32 | make | ||
33 | ``` | ||
34 | |||
25 | ## Using Vagrant | 35 | ## Using Vagrant |
26 | 36 | ||
27 | To use [Vagrant](https://www.vagrantup.com/) to manage the build environment you need to: | 37 | To use [Vagrant](https://www.vagrantup.com/) to manage the build environment you need to: |