Menu

bacon-docker-apps-fltk

big-bass
Attachments
Dockerfile (319 bytes)
about-fltk.png (15200 bytes)
fltk-gui.png (26476 bytes)

BACONGUI-FLTK visually displayed compiled inside the docker container

and viewable in your current X display!

Dockerfile download Dockerfile

FROM debian:bullseye-slim

RUN apt-get update &&  apt-get install --no-install-recommends -y build-essential libtcmalloc-minimal4 flex indent ksh libfltk1.3-dev libfltk-images1.3

COPY . /usr/src/bacon
WORKDIR /usr/src/bacon

RUN LDFLAGS=-l:libtcmalloc_minimal.so.4 ./configure
RUN make
RUN  make install

WORKDIR /tmp

1.)We need the bacon source code 4.6

1.b)download it ,uncompress it and cd into the folder

2.) copy the Docker file above into the bacon folder (you just cd into)

3.) docker build -t bacon-fltk .

4.) First check to see if bacon is working only

docker run bacon-fltk:latest bacon -v

run the next command in your terminal to pass the X displays "magical code" to the docker image

xhost +local:

you should get this output in your terminal
non-network local connections being added to access control list

6.) lets simplify this long command to say $X2DOCKER

export X2DOCKER=" -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY bacon-fltk"

7.

docker run $X2DOCKER bacongui-fltk

now you can pass x to any app to test

if all went well you will see this


docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
bacon-fltk latest 7631e27361ad 12 hours ago 374MB