Created
July 6, 2019 13:07
-
-
Save lduboeuf/0616030bb0291839ce684bf7a73cca48 to your computer and use it in GitHub Desktop.
QtCreator in clickable container 2
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
docker build -t ut-qtcreator:base . |
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
FROM clickable/ubuntu-sdk:16.04-amd64 | |
RUN apt-get update && apt-get install -y git qtcreator libxrender1 gdb | |
CMD ["/usr/bin/qtcreator"] |
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
#!/bin/bash | |
#set -ex | |
#SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | |
IMAGE="ut-qtcreator:base" | |
CONTAINER_NAME=ut-qtcreator | |
FAKE_HOME=/home/lionel/dev/ubuntutouch | |
xhost + | |
docker run --rm --net=host \ | |
-e QML_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt5/qml \ | |
-u `id -u`:`id -g` -e DISPLAY -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 \ | |
--volume="/etc/passwd:/etc/passwd:ro" \ | |
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ | |
--volume="$FAKE_HOME:/home/$(id -un)" \ | |
$IMAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment