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
80f81d50
Unverified
Commit
80f81d50
authored
Nov 13, 2019
by
Erik Wilson
Committed by
GitHub
Nov 13, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1043 from davidnuzik/building
Add new BUILDING.md with "Building from Source" content from k3s docs
parents
19e64c88
9739d996
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
BUILDING.md
BUILDING.md
+39
-0
No files found.
BUILDING.md
0 → 100644
View file @
80f81d50
See the
[
release
](
https://github.com/rancher/k3s/releases/latest
)
page for pre-built releases.
The clone will be much faster on this repo if you do
git clone --depth 1 https://github.com/rancher/k3s.git
This repo includes all of Kubernetes history so
`--depth 1`
will avoid most of that.
To build the full release binary run
`make`
and that will create
`./dist/artifacts/k3s`
.
Optionally to build the binaries without running linting or building docker images:
```
sh
./scripts/download
&&
./scripts/build
&&
./scripts/package-cli
```
For development, you just need go 1.12 and a proper GOPATH. To compile the binaries run:
```
bash
go build
-o
k3s
go build
-o
kubectl ./cmd/kubectl
go build
-o
hyperkube ./vendor/k8s.io/kubernetes/cmd/hyperkube
```
This will create the main executable at
`./dist/artifacts`
, but it does not include the dependencies like containerd, CNI,
etc. To run a server and agent with all the dependencies for development run the following
helper scripts:
```
bash
# Server
./scripts/dev-server.sh
# Agent
./scripts/dev-agent.sh
```
Kubernetes Source
-----------------
The source code for Kubernetes is in
`vendor/`
and the location from which that is copied
is in
`./vendor.conf`
. Go to the referenced repo/tag and you'll find all the patches applied
to upstream Kubernetes.
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