HUB
Sign inSign up

eshnil2000/virtual_machine

By eshnil2000

•Updated over 7 years ago

Image
0

418

eshnil2000/virtual_machine repository overview

compile box virtual_machine Dockerfile

############################################################

⁠Dockerfile to build sandbox for executing user code

⁠Based on Ubuntu

############################################################

FROM chug/ubuntu14.04x64 #FROM ubuntu:16.04 MAINTAINER ASAD MEMON, OSMAN ALI

⁠Update the repository sources list

RUN echo "deb http://archive.ubuntu.com/ubuntu⁠ trusty main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get upgrade #RUN add-apt-repository ppa:deadsnakes/ppa #RUN apt-get update #RUN apt-get install -y python3.6 #RUN apt-get install lsb-release RUN apt-get install --reinstall -y software-properties-common python-software-properties #Install all the languages/compilers we are supporting. #RUN apt-get install -y python #RUN apt-get install -y python-software-properties RUN add-apt-repository ppa:deadsnakes/ppa RUN apt-get update RUN apt-get install -y python3.6 #RUN apt-get install -y python3.6 #RUN apt-get install -y python-software-properties #RUN apt-get install -y software-properties-common RUN apt-get install -y build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev RUN apt-get install -y python3-pip python3-dev RUN apt-get install -y npm RUN apt-get install -y nodejs RUN npm config set unsafe-perm=true RUN npm config set strict-ssl false

RUN npm install -g underscore request express jade shelljs passport http sys jquery lodash async mocha moment connect validator restify ej$

#prepare for Java download RUN apt-get install -y python-software-properties RUN apt-get install -y software-properties-common

RUN apt-get install -y gnustep-devel && sed -i 's/#define BASE_NATIVE_OBJC_EXCEPTIONS 1/#define BASE_NATIVE_OBJC_EXCEPTIONS 0/g' $

RUN apt-get install -y mysql-server

RUN apt-get install -y curl

RUN apt-get install -y sudo RUN apt-get install -y bc

RUN echo "mysql ALL = NOPASSWD: /usr/sbin/service mysql start" | cat >> /etc/sudoers #RUN alias python=python3.6 RUN /bin/bash -c "echo 'alias python=python3.6' >>~/.bashrc && source ~/.bashrc"

RUN /bin/bash -c "echo 'pip3 install virtualenv'" RUN /bin/bash -c "echo 'virtualenv -p /usr/bin/python3.6 my_projec'" RUN /bin/bash -c "echo 'pip3 install -t /usr/local/lib/python3.6/dist-packages ecdsa base58'" RUN /bin/bash -c "echo 'RUN alias python=/usr/bin/python3.6'" RUN /bin/bash -c "echo 'ENV PYTHONPATH="/usr/local/lib/python3.6/dist-packages"'"

#RUN /bin/bash -c "echo 'cd my_projec && source my_projec/bin/activate && pip3.6 install flask'"

#COPY entrypoint.sh /entrypoint.sh #ENTRYPOINT ["/entrypoint.sh"] RUN pip3 install -t /usr/local/lib/python3.6/dist-packages ecdsa base58 redis fakeredis ENV PYTHONPATH="/usr/local/lib/python3.6/dist-packages" RUN alias python=/usr/bin/python3.6 RUN apt-get -y install git RUN pip3 install -t /usr/local/lib/python3.6/dist-packages git+https://github.com/eshnil2000/pybitcointools⁠ RUN pip3 install -t /usr/local/lib/python3.6/dist-packages flask flask_cors requests Flask-Testing RUN touch blockchain.db RUN chmod a+w blockchain.db #These last few commands are to enable https://github.com/Tierion/pymerkletools⁠ RUN easy_install3 -U pip RUN pip3 install -t /usr/local/lib/python3.6/dist-packages --upgrade requests #RUN easy_install3 -U pip3 RUN pip3 install -t /usr/local/lib/python3.6/dist-packages merkletools RUN alias python=/usr/bin/python3.6 RUN pip3 install pysha3==1.0b1

Tag summary

Content type

Image

Digest

Size

729.4 MB

Last updated

over 7 years ago

docker pull eshnil2000/virtual_machine