Comments (7)
Here are some rough notes I gathered over time.
$ export DOCKERENV=~/docker
$ mkdir -p $DOCKERENV/bin
$ cd $DOCKERENV
$ export GOPATH=$DOCKERENV
$ go get github.com/dotcloud/docker
$ ls -al
total 24
drwxrwxr-x 4 chooper chooper 4096 Mar 12 18:21 .
drwxrwxr-x 50 chooper chooper 12288 Mar 12 18:20 ..
drwxrwxr-x 3 chooper chooper 4096 Mar 12 18:21 bin
drwxrwxr-x 3 chooper chooper 4096 Mar 12 18:21 pkg
drwxrwxr-x 3 chooper chooper 4096 Mar 12 18:21 src
$ cd src/github.com/dotcloud/docker/
$ git checkout master
Switched to branch 'master'
$ git status
On branch master
nothing to commit (working directory clean)
#Show how to add a remote git repo to a fork
$ git remote add FEATURE_BRANCH ssh://[email protected]/USER/docker; git checkout remotes/USER/FEATURE_BRANCH
add the go post commit hook, to clean code (from solomon)
curl -o .git/hooks/pre-commit https://raw.github.com/edsrzf/gofmt-git-hook/master/fmt-check && chmod +x .git/hooks/pre-commit
Build docker
build docker
^^^^^^^^^^^^
$ cd $DOCKERENV/src/github.com/dotcloud/docker/docker
$ go build
$ ls
docker docker.go
from solomon
mkdir /go; export GOPATH=/go; go get github.com/dotcloud/docker; cd ~/go/src/github.com/dotcloud/docker; git remote add pquerna ssh://[email protected]/pquerna/docker; git checkout remotes/pquerna/FEATURE_BRANCH; sudo -E go run ./dockerd; dockerd.go
running tests:
sudo -E /usr/local/go/bin/go test
from moby.
For contribution guidelines we want something like
- Fork the repo
- Make changes on your fork in a feature branch
- Write unit tests for your changes (if needed)
- Run the full test suite against your change and master
- update/add any relevant documentation
- run gofmt to make sure code is formated correctly
- Add your name to the AUTHORS file
- submit a pull request explaining what changes you made as clearly as possible, including any issues this pull request might have fixed.
from moby.
I also suggest the following:
- If it's a bugfix branch, name it XXX-something where XXX is the number of the issue
- If it's a feature branch, create an enhancement issue to announce your intentions, and name it the same way
- If a pull request addresses multiple issues, reference them in the pull request (with #XXX)
(If the issues are already referenced in the individual commits, it's OK to not re-reference them in the pull request message)
from moby.
Volunteer wanted for a pull request incorporating all this
from moby.
@kencochrane I'm walking through the steps outlined and am on $ go get github.com/dotcloud/docker
. Should this repo be our own docker repo? If so, trying this yields the following:
$ go get github.com/johncosta/docker
Username for 'https://github.com': johncosta
Password for 'https://[email protected]':
Username for 'https://github.com': johncosta
Password for 'https://[email protected]':
cd .; git clone https://github.com/dotcloud/docker /Users/jcosta/docker/src/github.com/dotcloud/docker
Cloning into '/Users/jcosta/docker/src/github.com/dotcloud/docker'...
error: The requested URL returned error: 403 while accessing https://github.com/dotcloud/docker/info/refs
fatal: HTTP request failed
package github.com/johncosta/docker
imports github.com/dotcloud/docker/auth: exit status 128
package github.com/johncosta/docker
imports github.com/dotcloud/docker/fs
imports github.com/dotcloud/docker/fs
imports github.com/dotcloud/docker/fs: import "github.com/dotcloud/docker/fs": cannot find package
package github.com/johncosta/docker
imports github.com/dotcloud/docker/fs
imports github.com/dotcloud/docker/future
imports github.com/dotcloud/docker/future
imports github.com/dotcloud/docker/future: import "github.com/dotcloud/docker/future": cannot find package
package github.com/johncosta/docker
imports github.com/dotcloud/docker/fs
imports github.com/dotcloud/docker/future
imports github.com/dotcloud/docker/rcli
imports github.com/dotcloud/docker/rcli
imports github.com/dotcloud/docker/rcli: import "github.com/dotcloud/docker/rcli": cannot find package
Could you clarify?
from moby.
@johncosta
no it should be the master repo 'go get github.com/dotcloud/docker'
you should have access to dotcloud/docker after you put your github username and password
from moby.
I think this has been done reasonably well and can be closed.
from moby.
Related Issues (20)
- docker/client: support `DOCKER_HOST` with SSH protocol
- Show the total size and progress of the total downloaded size when pulling the image HOT 2
- Docker daemon reports invalid memory address or nil pointer dereference
- IPVLAN L3 is not forwarding non Docker DNS requests outside of the container anymore HOT 2
- Proposal: decompose --privileged into individual --security-opt options HOT 4
- --data-path-addr does not set listen address of VXLAN port HOT 4
- Requests from docker container to remote DB are slow HOT 1
- docker image ls does not show images loaded from a tar file HOT 12
- Default Nvidia CDI spec location on rootless kit seems to be unaccessible HOT 1
- WIP: containerd integration: Multi-platform images UX
- "Incorrect" host-gateway in case with Rootless Docker HOT 4
- docker compose fails to mount sub-directories of named volumes HOT 2
- Fail to start a development container HOT 3
- [v26] Build caching with `type=cache` mounts HOT 7
- Provide the ability to update the container's DeviceRequest
- Getting "error while resolving symlinks in base directory" when using subpath HOT 6
- Certain log configuration reliably triggers a segfault
- How to leverage VFP NAT rules for outbound connectivity for overlay networks created by Docker Swarm in Windows server 2022
- Executing 'docker exec' to enter a container does not generate any logs. HOT 1
- Resolving down Swarm service from service with `dns: "127.0.0.11"` results in hundreds of errors per second in syslog HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moby.