-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 844 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 844 Bytes
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
FROM ev3dev/ev3dev-stretch-ev3-generic
# Add non-root user for QEMU
RUN adduser --disabled-password --gecos '' docker && \
adduser docker sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Copy qemu & scripts to the container
COPY mktest.sh /opt/jdktest/
RUN mkdir -p /opt/jdktest && \
chown docker:docker -R /opt/jdktest && \
chmod +x /opt/jdktest/mktest.sh
# Use this when there is a need for input during docker image building process
ENV DEBIAN_FRONTEND noninteractive
# Install required OS and testing tools
RUN apt-get update && \
apt-get install -qq -y --no-install-recommends \
make curl apt-utils git ant ant-contrib libtext-csv-perl libjson-perl sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set startup script
USER docker
CMD [ "/bin/bash", "/opt/jdktest/mktest.sh" ]