-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.incas-dev
60 lines (52 loc) · 1.41 KB
/
Dockerfile.incas-dev
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
56
57
58
59
60
#
# Dev image for Raspberry Pi development on Desktop PC
#
FROM debian:buster-slim
LABEL description="Dev system for INCAS"
LABEL url="https://github.com/cdeck3r/INCAS"
LABEL maintainer="cdeck3r"
#
# add other things if required
#
RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
wget \
bzip2 \
ca-certificates \
sudo \
locales \
fonts-liberation \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
#
# standard tools
#
RUN apt-get update && apt-get install -y \
git \
curl \
wget \
zip \
unzip \
kpartx \
iputils-ping \
sshpass \
python3 \
python3-pip \
shellcheck \
wpasupplicant \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
#
# Install other tools
#
RUN cd /usr/local/bin \
&& curl -L https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | /bin/bash \
&& pip3 install pytest-testinfra black isort doit
# shfmt version 3.2.0 binary release for linux amd64
RUN cd /usr/local/bin \
&& wget -c -O shfmt https://github.com/mvdan/sh/releases/download/v3.2.0/shfmt_v3.2.0_linux_amd64 \
&& chmod 755 shfmt
# install aliases
RUN echo 'alias doit="doit -f /INCAS/scripts/dodo.py"' >> ~/.bashrc \
&& echo 'alias ll="ls -l"' >> ~/.bashrc
CMD ["/bin/bash"]