Skip to content
Snippets Groups Projects
Commit 56a8509b authored by m-guberina's avatar m-guberina
Browse files

can run docker with root being the user, things work, just could be prettier

parent 4e33c361
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,10 @@ WORKDIR /usr/local/ur_simple_control ...@@ -4,6 +4,10 @@ WORKDIR /usr/local/ur_simple_control
# copy repo to workdir # copy repo to workdir
COPY . . COPY . .
# install pyhton3-tk without questions
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Stockholm
RUN apt update && apt upgrade RUN apt update && apt upgrade
RUN apt install -y python3 \ RUN apt install -y python3 \
python3-pip \ python3-pip \
......
...@@ -57,7 +57,7 @@ After installing Docker, navigate to this project's directory in your CLI. ...@@ -57,7 +57,7 @@ After installing Docker, navigate to this project's directory in your CLI.
Then: Then:
1. build the image with "docker build -t ur_simple_control ." 1. build the image with "docker build -t ur_simple_control ."
TODO: add volume mounting (copy Marcus' approach with a user and /home/user/) and networking (put it to host) TODO: add volume mounting (copy Marcus' approach with a user and /home/user/) and networking (put it to host)
2. run the image with "docker run --rm -it --user root ur_simple_control" 2. run the image FIRST RUN "xhost +", THEN RUN "docker run --rm -it --net=host -e DISPLAY=$DISPLAY -v /tmp:/tmp ur_simple_control"
#### option 2) Native installation #### option 2) Native installation
1. Either create a disk partition for Ubuntu on your hard drive, or use an external hard drive. In the first case, you might need to shrink your existing partition. Searching for "how to create a disk partition [your_OS]" or "install ubuntu on [your_OS]" will get you all the information you need. Ideally, back up your data before any of this (you should be doing this in general as it's good practice). 1. Either create a disk partition for Ubuntu on your hard drive, or use an external hard drive. In the first case, you might need to shrink your existing partition. Searching for "how to create a disk partition [your_OS]" or "install ubuntu on [your_OS]" will get you all the information you need. Ideally, back up your data before any of this (you should be doing this in general as it's good practice).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment