-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
65 lines (52 loc) · 2.17 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This file was generated by ansible for albandri-laptop-misys.misys.global.ad
FROM ubuntu:20.04
# Volume can be accessed outside of container
VOLUME [/usr/local/eclipse]
ENV DEBIAN_FRONTEND noninteractive
ENV ECLIPSE_HOME /usr/local/eclipse
ENV WORKDIR /home/vagrant
# Working dir
WORKDIR /home/vagrant
# Install ansible
RUN apt-get -q update &&\
apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends \
git bzip2 zip unzip python-yaml python-jinja2 rsyslog gpg-agent \
ocl-icd-libopencl1 ocl-icd-opencl-dev clinfo numactl libnuma1 pciutils \
apt-utils apt-transport-https ca-certificates software-properties-common \
locales xz-utils ksh wget tzdata sudo curl lsof sshpass \
systemd systemd-cron \
python3-setuptools python3 python3-pip python3-dev python3-apt \
openjdk-8-jdk maven gcc g++ make \
net-tools iputils-ping x11-apps \
gnome-keyring gnome-keyring gnupg2 pass \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip==20.0.2 \
&& pip3 install ansible==2.9.7 zabbix-api==0.5.4 docker-compose==1.25.3
# Install Ansible inventory file.
RUN mkdir -p /etc/ansible
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
ENV ANSIBLE_CONFIG=${JENKINS_USER_HOME}/ansible.cfg
# ADD
ADD defaults $WORKDIR/ansible-eclipse/defaults
ADD meta $WORKDIR/ansible-eclipse/meta
ADD files $WORKDIR/ansible-eclipse/files
ADD handlers $WORKDIR/ansible-eclipse/handlers
ADD tasks $WORKDIR/ansible-eclipse/tasks
ADD templates $WORKDIR/ansible-eclipse/templates
#ADD vars $WORKDIR/ansible-eclipse/vars
# Here we continue to use add because
# there are a limited number of RUNs
# allowed.
ADD eclipse.yml $WORKDIR/ansible-eclipse/eclipse.yml
# Execute
RUN ansible-playbook $WORKDIR/ansible-eclipse/eclipse.yml -c local \
-e "python_interpreter=python3" \
-vvvv
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN chmod +x /usr/local/eclipse/eclipse-4/eclipse
RUN ln -sf /dev/stdout /var/log/eclipse.log
# && ln -sf /dev/stderr hs_err_pid*.log
#EXPOSE 21:9999
ENTRYPOINT ["/usr/local/eclipse/eclipse-4/eclipse"]
CMD ["-g", "deamon off;"]