Skip to content

Instantly share code, notes, and snippets.

@lduboeuf
Created July 6, 2019 13:07
Show Gist options
  • Save lduboeuf/0616030bb0291839ce684bf7a73cca48 to your computer and use it in GitHub Desktop.
Save lduboeuf/0616030bb0291839ce684bf7a73cca48 to your computer and use it in GitHub Desktop.
QtCreator in clickable container 2
docker build -t ut-qtcreator:base .
FROM clickable/ubuntu-sdk:16.04-amd64
RUN apt-get update && apt-get install -y git qtcreator libxrender1 gdb
CMD ["/usr/bin/qtcreator"]
#!/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