LoginSignup
1
4

More than 5 years have passed since last update.

remixをlocal(Docker)で起動

Posted at

合同会社kumanoteのTanakaです。

今回は、ethereum上のtokenを開発するにあたってのtipsを紹介したいと思います。

remix(browser-solidity)をdocker上で動かし、host上のブラウザで閲覧できるようにしたので、その紹介になります。

remix のローカルでの起動になります。

スクリーンショット 2017-06-25 22.05.47.png

Dockerfile

FROM ubuntu:16.04        # <- 容量重いので適時かえてください
MAINTAINER kumanote,LLC. # <- 適時かえてください

# 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-ja

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

# install remix
RUN \
  curl -sL https://deb.nodesource.com/setup_8.x | bash && \
  apt-get install -y nodejs && \
  git clone https://github.com/ethereum/browser-solidity.git

WORKDIR /browser-solidity

RUN \
  npm install && \
  npm run prepublish && \
  npm install

EXPOSE 8080

CMD ["npm", "start"]

ビルド

docker build -t kumanote/remix:v1.0.0 .

実行

docker run -p 8080:8080 kumanote/remix:v1.0.0

http://localhost:8080/ で利用できるようになります。

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4