mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts: build-docker
Build docker images from the release tarballs. The default CMD is etcd.
This commit is contained in:
parent
94e4595af5
commit
e8302c8413
12
scripts/build-docker
Executable file
12
scripts/build-docker
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
CMD ["/etcd"]
|
||||
DF
|
||||
|
||||
docker build .
|
Loading…
x
Reference in New Issue
Block a user