-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (32 loc) · 1.31 KB
/
Dockerfile
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
FROM ubuntu:16.04
LABEL maintainer="Philipp Wagner <[email protected]>"
LABEL description="Base image for CI builds at TUM LIS with GitLab Runner"
# Install common dependencies, including EDA-tool specific dependencies
# and build tools to avoid fetching them again for every build.
#
# Tested tools:
# - Xilinx Vivado 2017.4, 2018.2
# - Synopsys VCS M-2017.3
# - Synopsys Spyglass N-2017.12
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git-core libtcl8.5 curl gosu sudo \
build-essential automake autoconf pkg-config tcl \
python python-pip \
python3 python3-dev python3.5-venv python3-pip libffi-dev \
dc fontconfig libaudio2 libc6 libfontconfig1 libfreetype6 libgcc1 \
libglib2.0-0 libice6 libjpeg8 libmng2 libpng12-0 libsm6 libstdc++6 \
libtiff5 libx11-6 libxext6 libxi6 libxrender1 zlib1g libxrandr2 \
libelf1 lsb-release \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# use bash as default shell
RUN ln -sf /bin/bash /bin/sh
# add service account user (UID/GID to be replaced)
RUN groupadd sa \
&& useradd --create-home -g sa sa \
&& usermod -p '*' sa \
&& passwd -u sa
COPY start.sh /start.sh
COPY sudoconf /etc/sudoers.d/sa
COPY env_modules /bashenv.sh
ENTRYPOINT [ "/start.sh" ]