summaryrefslogtreecommitdiffstats
path: root/testing/docker/base-build/Dockerfile
blob: b5555cc948a135db69ede14433d6ff54361aa657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM          centos:centos6
MAINTAINER    Jonas Finnemann Jensen <jopsen@gmail.com>

# Run system setup script; this ensures taht the whole process
# boils down to a single docker layer
ADD           system-setup.sh   /tmp/system-setup.sh
RUN           ["/tmp/system-setup.sh"]

# Set variable normally configured at login, by the shells parent process, these
# are taken from GNU su manual
ENV           HOME          /home/worker
ENV           SHELL         /bin/bash
ENV           USER          worker
ENV           LOGNAME       worker

# Declare default working folder
WORKDIR       /home/worker

# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]