summaryrefslogtreecommitdiffstats
path: root/rob/robot/ur/Dockerfile
blob: 91c2aa48e698639c0a7c52dfc019210ccaf4e814 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
###############################################################################
#        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 v0.6						\
	    https://github.com/alejandro-colomar/rob_cam.git		&& \
	make	-C rob_cam/rob/robot/ur/	-j 2

FROM	debian@sha256:e6a6f2625ec46aa6ce5c537208565cde16138e7963c341ff2a3ecbf9a6736060
WORKDIR	/app
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 ./
RUN	chmod +x ./ur-sim
CMD	["./ur-sim"]

# docker container run --tty --network rob_cam_network --name robot --rm alejandrocolomar/rob_cam:ur-sim