-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 15f98b9
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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とか) |