Solidity开发工具Remix-IDE本地Docker安装

Remix-IDE是以太坊官方提供的智能合约开发IDE,可以在线调试。
效果如下:


Remix-IDE

下面就教大家如何在本地通过Docker来搭建Remix-IDE环境。

直接上Dockerfile:

FROM ubuntu:16.04

# install utilities
RUN \
  apt-get update && \
  apt-get install -y git curl wget screen && \
  apt-get install -y build-essential libssl-dev python && \
  apt-get install -y language-pack-zh-hans

RUN \
  apt-get install -y apt-file && \
  apt-file update && \
  apt-get install -y software-properties-common

RUN \ 
  apt-add-repository -y ppa:ethereum/ethereum && \
  apt-get update && \
  apt-get install -y solc

# set locale & timezone
RUN locale-gen zh_CN.UTF-8
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
ENV TZ Asia/Shanghai

# install remix
RUN \
  curl -sL https://deb.nodesource.com/setup_7.x | bash && \
  apt-get install -y nodejs

RUN git clone https://github.com/ethereum/remix-ide.git
WORKDIR /remix-ide
RUN npm install
RUN npm run setupremix 

EXPOSE 8080

CMD ["npm", "start"]

编译镜像

docker build -t remix:latest .

静静等待......

运行

docker run -p 8080:8080 --name remix remix

直接通过 http://localhost:8080 即可访问本地的Remix-IDE。

进入容器

docker exec -it remix /bin/bash
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 大家早上好!今天2月13日,星期二,农历腊月二十八 最怕你,什么都不做,还口口声声说:很想要。很多人都是言论的巨人...
    Kingofcool阅读 227评论 0 0
  • 〔蒲公英正面管家每日一学〕 忍住不说,孩子才有机会说 唯有父母忍住不说,孩子才有机会说,事情本来的样子才有机会呈现...
    海狸hl阅读 189评论 0 0