From 3da1529a119965769729fd38b7c757c459eb3e1f Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 29 Mar 2021 17:03:38 +0200 Subject: [PATCH] Install software as root, so we can run processes in the container as any user and still have the software available to us. --- docker-compose/itango/Dockerfile | 2 +- docker-compose/lofar-device-base/Dockerfile | 2 +- docker-compose/pypcc-sim/Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose/itango/Dockerfile b/docker-compose/itango/Dockerfile index 0a8e915fa..5aa452c36 100644 --- a/docker-compose/itango/Dockerfile +++ b/docker-compose/itango/Dockerfile @@ -7,5 +7,5 @@ RUN sudo apt-get -y update && \ sudo aptitude -y install htop iftop iproute2 mc most net-tools tcpdump telnet tmux traceroute vim xterm && \ sudo aptitude clean && \ sudo aptitude autoclean && \ - pip3 install "opcua >= 0.98.9" asyncua astropy + sudo pip3 install "opcua >= 0.98.9" asyncua astropy diff --git a/docker-compose/lofar-device-base/Dockerfile b/docker-compose/lofar-device-base/Dockerfile index cd6b59511..f5eaf90ab 100644 --- a/docker-compose/lofar-device-base/Dockerfile +++ b/docker-compose/lofar-device-base/Dockerfile @@ -1,4 +1,4 @@ FROM nexus.engageska-portugal.pt/ska-docker/tango-itango:latest COPY lofar-requirements.txt /lofar-requirements.txt -RUN pip3 install -r /lofar-requirements.txt +RUN sudo pip3 install -r /lofar-requirements.txt diff --git a/docker-compose/pypcc-sim/Dockerfile b/docker-compose/pypcc-sim/Dockerfile index 4040339b1..ce7867150 100644 --- a/docker-compose/pypcc-sim/Dockerfile +++ b/docker-compose/pypcc-sim/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:20.04 -RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \ - pip3 install opcua numpy recordclass && \ +RUN sudo apt-get update && sudo apt-get install -y python3 python3-pip python3-yaml git && \ + sudo pip3 install opcua numpy recordclass && \ git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/pypcc WORKDIR /pypcc -- GitLab