Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
02c9d281
Commit
02c9d281
authored
Jun 09, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9446 from ArtfulCoder/etcd_busybox
Build etcd image from busybox
parents
c1e9a413
193e0788
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Dockerfile
cluster/images/etcd/Dockerfile
+1
-1
Makefile
cluster/images/etcd/Makefile
+7
-6
No files found.
cluster/images/etcd/Dockerfile
View file @
02c9d281
FROM
scratch
FROM
busybox
MAINTAINER
Dawn Chen <dawnchen@google.com>
MAINTAINER
Dawn Chen <dawnchen@google.com>
ADD
./etcd /usr/local/bin/etcd
ADD
./etcd /usr/local/bin/etcd
...
...
cluster/images/etcd/Makefile
View file @
02c9d281
.PHONY
:
clean build push
.PHONY
:
clean build push
IMAGE
=
etcd
IMAGE
=
etcd
TAG
=
2.0.9
TAG
=
2.0.9.1
OUTPUT_DIR
=
$(IMAGE)
-v
$(TAG)
-linux-amd64
ETCD_VERSION
=
2.0.9
OUTPUT_DIR
=
$(IMAGE)
-v
$(ETCD_VERSION)
-linux-amd64
clean
:
clean
:
rm
-rf
$(OUTPUT_DIR)
$(IMAGE)
-v
$(
TAG
)
-linux-amd64
.tar.gz etcd etcdctl
rm
-rf
$(OUTPUT_DIR)
$(IMAGE)
-v
$(
ETCD_VERSION
)
-linux-amd64
.tar.gz etcd etcdctl
build
:
clean
build
:
clean
curl
-L
-O
https://github.com/coreos/etcd/releases/download/v
$(
TAG)
/
$(IMAGE)
-v
$(TAG
)
-linux-amd64
.tar.gz
curl
-L
-O
https://github.com/coreos/etcd/releases/download/v
$(
ETCD_VERSION)
/
$(IMAGE)
-v
$(ETCD_VERSION
)
-linux-amd64
.tar.gz
tar
xzvf
$(IMAGE)
-v
$(
TAG
)
-linux-amd64
.tar.gz
tar
xzvf
$(IMAGE)
-v
$(
ETCD_VERSION
)
-linux-amd64
.tar.gz
cp
$(OUTPUT_DIR)
/etcd .
cp
$(OUTPUT_DIR)
/etcd .
cp
$(OUTPUT_DIR)
/etcdctl .
cp
$(OUTPUT_DIR)
/etcdctl .
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
push
:
build
push
:
build
gcloud preview docker push gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
gcloud preview docker push gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
all
:
push
all
:
push
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment