-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
31 lines (25 loc) · 1.14 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
# The base image for circleci
FROM fedora:29
# install simengine-dnf packages
RUN dnf upgrade -y \
&& dnf install gzip ca-certificates openssh-server git libvirt libvirt-devel redhat-rpm-config OpenIPMI OpenIPMI-lanserv \
OpenIPMI-libs OpenIPMI-devel python3-libvirt gcc redis ipmitool python3-devel python2-devel net-snmp-utils -y \
&& dnf clean all -y \
&& python3 -m pip install --upgrade pip \
&& python2 -m pip install --upgrade pip
# install neo4j
RUN cd /tmp \
&& dnf install wget -y \
&& /usr/bin/wget http://debian.neo4j.org/neotechnology.gpg.key \
&& ls -l \
&& rpm --import neotechnology.gpg.key \
&& echo $'[neo4j]\nname=Neo4j RPM Repository\nbaseurl=https://yum.neo4j.org/stable\nenabled=1\ngpgcheck=1\n[neo4j]' >> /etc/yum.repos.d/neo4j.repo \
&& dnf install neo4j -y \
&& neo4j start \
&& sleep 5 \
&& neo4j status \
&& echo "CALL dbms.changePassword('neo4j-simengine'); CALL dbms.security.createUser('simengine', 'simengine', false);"| cypher-shell -u neo4j -p neo4j \
&& dnf clean all -y
# simengine installation:
WORKDIR /usr/src/app
LABEL com.circleci.preserve-entrypoint=true