Created
December 31, 2015 14:50
-
-
Save encodeering/53b851256a856c66972e to your computer and use it in GitHub Desktop.
Travis configuration to be capable of running the docker command inside a docker container by a host-share; you need to bind libapparmor due: /usr/bin/docker: error while loading shared libraries: libapparmor.so.1: cannot open shared object file: No such file or directory
This file contains hidden or 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
sudo: required | |
# any language should do it | |
language: bash | |
services: | |
- docker | |
# libapparmor1 should be already installed due a running service, but just in case | |
install: | |
- sudo apt-get update | |
- sudo apt-get install -y libapparmor1 | |
# mounts the current directory under /usr/local/src and triggers docker build /usr/local/src | |
# note the :ro mount option for libapparmor.so.1 | |
script: | |
- docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) -v $(dpkg -L libapparmor1 | grep libapparmor.so.1$):/usr/lib/libapparmor.so.1:ro -v $(pwd):/usr/local/src debian:jessie $(which docker) build /usr/local/src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment