diff options
Diffstat (limited to 'etc/docker/robot/ur-sim/Dockerfile')
-rw-r--r-- | etc/docker/robot/ur-sim/Dockerfile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/etc/docker/robot/ur-sim/Dockerfile b/etc/docker/robot/ur-sim/Dockerfile new file mode 100644 index 0000000..990381e --- /dev/null +++ b/etc/docker/robot/ur-sim/Dockerfile @@ -0,0 +1,53 @@ +############################################################################### +# Copyright (C) 2020 Sebastian Francisco Colomar Bauza # +# Copyright (C) 2020 Alejandro Colomar Andrés # +# SPDX-License-Identifier: GPL-2.0-only # +############################################################################### + +FROM debian@sha256:e6a6f2625ec46aa6ce5c537208565cde16138e7963c341ff2a3ecbf9a6736060 \ + AS build +RUN apt-get update && \ + apt-get upgrade -V --yes && \ + apt-get install -V \ + gcc \ + gcc-10 \ + make \ + git \ + pkg-config \ + libbsd-dev \ + deborphan \ + --yes && \ + apt-get autoremove --purge --yes && \ + apt-get purge $(deborphan) --yes && \ + apt-get autoclean && \ + apt-get clean +WORKDIR /tmp +RUN git clone \ + --single-branch \ + --branch v1.0-b23 \ + https://github.com/alejandro-colomar/libalx.git && \ + make base telnet-tcp robot -C libalx -j 8 && \ + make install-base -C libalx && \ + make install-telnet-tcp -C libalx && \ + make install-robot -C libalx && \ + rm -rf libalx +RUN git clone \ + --single-branch \ + --branch version-0.5 \ + https://github.com/alejandro-colomar/rob_cam.git && \ + make bin/ur-sim -j 2 + +FROM debian@sha256:e6a6f2625ec46aa6ce5c537208565cde16138e7963c341ff2a3ecbf9a6736060 +RUN apt-get update && \ + apt-get upgrade --yes && \ + apt-get install -V \ + telnet \ + --yes && \ + apt-get autoremove --purge --yes && \ + apt-get autoclean && \ + apt-get clean +COPY --from=build /tmp/rob_cam/rob/robot/ur/ur-sim /usr/local/bin/ur-sim +CMD ["ur-sim"] + +# docker container run --tty --network rob_cam_network --name robot --rm alejandrocolomar/rob_cam:ur-sim_0.5.6 + |