summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-06-05 01:17:01 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2019-07-19 10:05:10 +0900
commitc98d65fd03a1da134f79bf2b67f28bdf7648b95e (patch)
tree57d5b288244236cfd770cd4fdca53cd86dfb55d9
parentecf353a1d5e93ba74cfb3ffb8124a414c18d5a97 (diff)
Update docker util script and travis to use new base container
-rw-r--r--.travis.yml2
-rw-r--r--Dockerfile20
-rwxr-xr-xutil/docker_build.sh4
-rwxr-xr-xutil/travis_build.sh2
-rw-r--r--util/travis_test.sh2
5 files changed, 5 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index 841e44dd45..0b2f46dd7a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,8 +13,6 @@ env:
- MAKEFLAGS="-j3 --output-sync"
services:
- docker
-before_install:
- - docker build -t qmkfm/qmk_firmware .
install:
- npm install -g moxygen
script:
diff --git a/Dockerfile b/Dockerfile
index 43c84d3e35..1c17f38e83 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,22 +1,4 @@
-FROM debian:9
-
-RUN apt-get update && apt-get install --no-install-recommends -y \
- avr-libc \
- avrdude \
- binutils-arm-none-eabi \
- binutils-avr \
- build-essential \
- dfu-programmer \
- dfu-util \
- gcc \
- gcc-avr \
- git \
- libnewlib-arm-none-eabi \
- software-properties-common \
- unzip \
- wget \
- zip \
- && rm -rf /var/lib/apt/lists/*
+FROM qmkfm/base_container
# upgrade gcc-arm-none-eabi from the default 5.4.1 to 6.3.1 due to ARM runtime issues
RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -O - | \
diff --git a/util/docker_build.sh b/util/docker_build.sh
index 35839ac41e..1e17bfbedc 100755
--- a/util/docker_build.sh
+++ b/util/docker_build.sh
@@ -46,5 +46,5 @@ fi
dir=$(pwd -W 2>/dev/null) || dir=$PWD # Use Windows path if on Windows
# Run container and build firmware
-docker run --rm -it $usb_args -v "$dir":/qmk_firmware qmkfm/qmk_firmware \
- /bin/bash -c "make git-submodule; make \"$keyboard${keymap:+:$keymap}${target:+:$target}\""
+docker run --rm -it $usb_args -w /qmk_firmware/ -v "$dir":/qmk_firmware qmkfm/base_container \
+ make "$keyboard${keymap:+:$keymap}${target:+:$target}"
diff --git a/util/travis_build.sh b/util/travis_build.sh
index ed80d52f56..ec059b2982 100755
--- a/util/travis_build.sh
+++ b/util/travis_build.sh
@@ -3,7 +3,7 @@
# if docker is installed - call make within the qmk docker image
if command -v docker >/dev/null; then
function make() {
- docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/qmk_firmware make "$@"
+ docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/base_container make "$@"
}
fi
diff --git a/util/travis_test.sh b/util/travis_test.sh
index 3be4afff7a..e6a50ac165 100644
--- a/util/travis_test.sh
+++ b/util/travis_test.sh
@@ -22,7 +22,7 @@ fi
# if docker is installed - call make within the qmk docker image
if command -v docker >/dev/null; then
function make() {
- docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/qmk_firmware make "$@"
+ docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/base_container make "$@"
}
fi