-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (32 loc) · 1.6 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
# syntax=docker/dockerfile:1
FROM ebloc/eblocbroker
WORKDIR /workspace/ebloc-broker
RUN git fetch --all --quiet >/dev/null 2>&1 \
&& git pull --all -r -v >/dev/null 2>&1 \
&& cp /workspace/ebloc-broker/docker/config/network-config.yaml ~/.brownie/ \
# && pip install --upgrade pip \
# && pip install -e . --use-deprecated=legacy-resolver \
&& /workspace/ebloc-broker/broker/bash_scripts/_folder_setup.sh \
&& /workspace/ebloc-broker/broker/python_scripts/add_bloxberg_into_network_config.py \
&& eblocbroker >/dev/null 2>&1 \
&& /workspace/ebloc-broker/broker/eblocbroker_scripts/get_owner.py
RUN eblocbroker init --base >/dev/null 2>&1
RUN ipfs init
RUN cp /workspace/ebloc-broker/docker/bashrc ~/.bashrc
RUN cp /workspace/ebloc-broker/docker/config/cfg.yaml ~/.ebloc-broker/cfg.yaml
RUN cp /workspace/ebloc-broker/docker/config/accounts.tar.gz ~/.brownie/accounts/accounts.tar.gz \
&& tar -xvf ~/.brownie/accounts/accounts.tar.gz -C ~/.brownie/accounts/
RUN /workspace/ebloc-broker/docker/scripts/select_user.py
COPY --chown=slurm docker/provider/slurm.conf /etc/slurm/slurm.conf
COPY --chown=slurm docker/provider/slurm_mail_prog.sh /var/ebloc-broker/slurm_mail_prog.sh
RUN apt-get update \
&& apt-get install -y --no-install-recommends --assume-yes \
acl \
iputils-ping
RUN sudo chown slurm -R /root
RUN echo "password" > /root/.ebloc-broker/.gpg_pass.txt
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Your Name"
COPY docker/provider/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY docker/provider/supervisord.conf /etc/
WORKDIR /workspace/ebloc-broker