Skip to content

Creating a Docker container ksnip latest #343

@DamirPorobic

Description

@DamirPorobic

Maybe you should consider creating a Docker container based on e.g. https://github.com/fcwu/docker-ubuntu-vnc-desktop with all your dependencies and QtCreator installed to provide drive-by contributors a mean to build ksnip (in my case I would need to forward the x-session to be able to run ksnip on my dual monitor setup).

You could start with something like this Dockerfile:

# Dockerfile
# https://github.com/fcwu/docker-ubuntu-vnc-desktop
FROM dorowu/ubuntu-desktop-lxde-vnc

RUN sudo sed -i 's|http://tw.|http://de.|g' /etc/apt/sources.list
RUN sudo apt update
RUN sudo apt -y install dirmngr

RUN sudo add-apt-repository -y ppa:peek-developers/stable

RUN sudo apt -y upgrade
RUN sudo apt -y install less mc htop git qtcreator qt5-default g++ qttools5-dev build-essential qtdeclarative5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5websockets5-dev libqt5x11extras5-dev vim peek xscreensaver synaptic

# install smartgit
RUN cd /tmp && wget https://www.syntevo.com/downloads/smartgit/smartgit-20_1_2.deb && sudo dpkg -i smartgit-20_1_2.deb || sudo apt install -fy

# Run it
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

and a docker-compose.yml like:

#
# Installation:
# docker-compose build
# docker-compose up
#

version: '3'
services:
  # https://github.com/fcwu/docker-ubuntu-vnc-desktop
  desktop:
    build: .
    volumes:
      - /dev/shm:/dev/shm
      - ./home:/home
    environment:
      - TZ=Europe/Vienna

Originally posted by @pbek in #276 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions