mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Use ENTRYPOINT so people can specify flags to etcd without providing the binary. Thanks to @hugod in IRC for pointing this out.
13 lines
228 B
Bash
Executable File
13 lines
228 B
Bash
Executable File
#!/usr/bin/bash
|
|
tar cv --files-from /dev/null | docker import - scratch
|
|
|
|
cat <<DF > Dockerfile
|
|
FROM scratch
|
|
ADD etcd /
|
|
ADD etcdctl /
|
|
EXPOSE 4001 7001 2379 2380
|
|
ENTRYPOINT ["/etcd"]
|
|
DF
|
|
|
|
docker build -t quay.io/coreos/etcd:${1} .
|