Skip to content

Commit

Permalink
Update wiregrid_actuator/Dockerfile for Ubuntu 22.04 (#759)
Browse files Browse the repository at this point in the history
* update wiregrid_actuator Dockerfile

* change the installation of gclib from setup.py to pip & add ENV setting to avoid warnings during the build
  • Loading branch information
sadachi5 authored Sep 27, 2024
1 parent 81e5916 commit 5dcf1a7
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions docker/wiregrid_actuator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@ FROM socs:latest

WORKDIR /home/ocs/

# This line is to avoid warnings during the build.
ENV DEBIAN_FRONTEND="noninteractive"

# Galil installation information:
# -https://www.galil.com/sw/pub/all/doc/global/install/linux/ubuntu/
# -https://www.galil.com/sw/pub/all/doc/gclib/html/python.html
RUN apt-get update \
&& apt-get install -y apt-utils \
&& apt-get install -y wget libavahi-common-dev libavahi-client-dev libavahi-core-dev libcap-dev libdaemon-dev avahi-daemon \
&& wget http://www.galil.com/sw/pub/all/crypto/GALIL-GPG-KEY-E29D0E4B.asc \
&& apt-key add GALIL-GPG-KEY-E29D0E4B.asc \
&& wget http://www.galil.com/sw/pub/ubuntu/20.04/galil.list \
&& cp galil.list /etc/apt/sources.list.d \
&& wget https://www.galil.com/sw/pub/apt/all/galil-release_1_all.deb \
&& apt-get install -y ./galil-release_1_all.deb \
&& rm ./galil-release_1_all.deb \
&& apt-get update \
&& apt-get install -y --download-only gclib \
&& dpkg -x $(find / -name "gclib*.deb") / \
&& apt-get install -y gclib \
&& apt install -y gclib \
&& apt-get install -y --download-only gcapsd \
&& dpkg -x $(find / -name "gcapsd*.deb") /tmp/gcapsd/ \
&& mv /tmp/gcapsd/usr/sbin/gcapsd /usr/sbin/ \
&& mv -v /tmp/gcapsd/usr/sbin/gcapsd /usr/sbin/ \
&& rm -r /tmp/gcapsd/ \
&& tar -xvf /usr/share/doc/gclib/src/gclib_python.tar.gz \
&& python3 setup.py install
&& cp /usr/share/gclib/src/wrappers/python/* . \
&& cp /usr/share/gclib/doc/examples/python/* . \
&& python3 -m pip install . \
&& python3 -c "import gclib; print(f'gclib location: {gclib.__file__}')"

COPY . .

Expand Down

0 comments on commit 5dcf1a7

Please sign in to comment.