Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-taro committed Jan 26, 2019
0 parents commit 15f98b9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
Binary file added nem-nis/.Makefile.swp
Binary file not shown.
6 changes: 6 additions & 0 deletions nem-nis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM debian
RUN apt-get update && apt-get install openjdk-8-jdk -y && apt-get install curl -y
RUN curl -o nis-0.6.96.tgz https://nem.ninja/nis-0.6.96.tgz \
&& tar zxvf nis-0.6.96.tgz
CMD cd package \
&& ./nix.runNis.sh
14 changes: 14 additions & 0 deletions nem-nis/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
docker/build:
docker build ./ -t nem-nis

docker/start:
docker run --rm -d -p 7890:7890 --name nis-container nem-nis

docker/exec:
docker exec -it nis-container /bin/bash

docker/stop:
docker kill nis-container

docker/rm:
docker rm nis-container
15 changes: 15 additions & 0 deletions nem-nis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# NISノードのdocker container

```
$ make docker/build
$ make docker/run
```

これで動くはず。

## 課題
- docker/runがこれで動くか怪しい
- docker/execとかでコンテナの中に入れるようにする
- 解放するポートの設定
- dbの同期の高速化
- Dockerfileを綺麗に書く(環境変数とかdebianのversionとか)

0 comments on commit 15f98b9

Please sign in to comment.