# Keymaker
I can open doors.
## Quick start
```
$ export KEYMAKER_URL=https://github.com/ghmlee.keys
$ export KEYMAKER_PATH=~/.ssh/authorized_keys
$ cargo run
```
## Debug
### Rust
* Rust (>= v1.0.0-beta.2)
## Dockerfile
### Creating a Docker image with scratch
```
docker pull scratch
```
### Compiling the Keymaker inside google/golang
You can choose a platform and a Go language version without VMs and version control managers.
```
docker pull google/golang
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) -ti google/golang /bin/bash
```
### Creating Statically Linked Executables in Go
```
CGO_ENABLED=0 go get -a -tags netgo -ldflags '-w' github.com/ghmlee/keymaker
```
### To be sure
```
ldd $GOPATH/bin/keymaker
```
You will see *not a dynamic executable*.
### Building a Docker image
```
cp $GOPATH/src/github.com/ghmlee/keymaker/Dockerfile $GOPATH
docker build -t ghmlee/keymaker $GOPATH
```
### Only 5MB
<img src="https://raw.githubusercontent.com/ghmlee/keymaker/master/screenshot.png">
### Running the container
```
docker run -ti --name keymaker ghmlee/keymaker
```
### with systemd
You can run the container periodically.