This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract Docker Swarm code from OpenFaaS/faas repo.
- switch to dep for vendoring Signed-off-by: Alex Ellis <[email protected]>
- Loading branch information
Showing
4,772 changed files
with
1,300,776 additions
and
6 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
maintainers: | ||
- alexellis | ||
- rgee0 | ||
- johnmccabe | ||
- jockdarock | ||
- ericstoekl | ||
- austinfrey | ||
- itscaro | ||
- rorpage | ||
- kenfdev | ||
- BurtonR | ||
|
||
features: | ||
- dco_check | ||
- comments | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
## Expected Behaviour | ||
<!--- If you're describing a bug, tell us what should happen --> | ||
<!--- If you're suggesting a change/improvement, tell us how it should work --> | ||
|
||
## Current Behaviour | ||
<!--- If describing a bug, tell us what happens instead of the expected behavior --> | ||
<!--- If suggesting a change/improvement, explain the difference from current behavior --> | ||
|
||
## Possible Solution | ||
<!--- Not obligatory, but suggest a fix/reason for the bug, --> | ||
<!--- or ideas how to implement the addition or change --> | ||
|
||
## Steps to Reproduce (for bugs) | ||
<!--- Provide a link to a live example, or an unambiguous set of steps to --> | ||
<!--- reproduce this bug. Include code to reproduce, if relevant --> | ||
1. | ||
2. | ||
3. | ||
4. | ||
|
||
## Context | ||
<!--- How has this issue affected you? What are you trying to accomplish? --> | ||
<!--- Providing context helps us come up with a solution that is most useful in the real world --> | ||
|
||
## Your Environment | ||
<!--- Include as many relevant details about the environment you experienced the bug in --> | ||
* Docker version `docker version` (e.g. Docker 17.0.05 ): | ||
|
||
* Are you using Docker Swarm or Kubernetes (FaaS-netes)? | ||
|
||
* Operating System and version (e.g. Linux, Windows, MacOS): | ||
|
||
* Link to your project or a code example to reproduce issue: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- If it fixes an open issue, please link to the issue here. --> | ||
- [ ] I have raised an issue to propose this change ([required](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md)) | ||
|
||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> | ||
|
||
## Types of changes | ||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist: | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] I've read the [CONTRIBUTION](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md) guide | ||
- [ ] I have signed-off my commits with `git commit -s` | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] All new and existing tests passed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
faas-swarm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
addons: | ||
apt: | ||
packages: | ||
- docker-ce | ||
|
||
before_install: | ||
- ./contrib/ci.sh | ||
|
||
script: | ||
- make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Contributing | ||
|
||
### License | ||
|
||
This project is licensed under the MIT License. | ||
|
||
## Guidelines | ||
|
||
See guide for [FaaS](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md) here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM golang:1.9.2 | ||
|
||
RUN mkdir -p /go/src/github.com/openfaas/faas-swarm/ | ||
|
||
WORKDIR /go/src/github.com/openfaas/faas-swarm | ||
|
||
COPY vendor vendor | ||
COPY handlers handlers | ||
|
||
COPY server.go . | ||
|
||
RUN curl -sL https://github.com/alexellis/license-check/releases/download/0.2.2/license-check > /usr/bin/license-check \ | ||
&& chmod +x /usr/bin/license-check | ||
RUN license-check -path ./ --verbose=false "Alex Ellis" "OpenFaaS Project" | ||
|
||
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*") \ | ||
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o faas-swarm . | ||
|
||
FROM alpine:3.6 | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /root/ | ||
|
||
EXPOSE 8080 | ||
|
||
ENV http_proxy "" | ||
ENV https_proxy "" | ||
|
||
COPY --from=0 /go/src/github.com/openfaas/faas-swarm/faas-swarm . | ||
|
||
CMD ["./faas-swarm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM golang:1.9.2 | ||
|
||
RUN mkdir -p /go/src/github.com/openfaas/faas-swarm/ | ||
|
||
WORKDIR /go/src/github.com/openfaas/faas-swarm | ||
|
||
COPY vendor vendor | ||
COPY handlers handlers | ||
|
||
COPY server.go . | ||
|
||
RUN curl -sL https://github.com/alexellis/license-check/releases/download/0.2.2/license-check > /usr/bin/license-check \ | ||
&& chmod +x /usr/bin/license-check | ||
RUN license-check -path ./ --verbose=false "Alex Ellis" "OpenFaaS Project" | ||
|
||
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*") \ | ||
&& GOARM=6 CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o faas-swarm . | ||
|
||
FROM alpine:3.6 | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /root/ | ||
|
||
EXPOSE 8080 | ||
|
||
ENV http_proxy "" | ||
ENV https_proxy "" | ||
|
||
COPY --from=0 /go/src/github.com/openfaas/faas-swarm/faas-swarm . | ||
|
||
CMD ["./faas-swarm"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[[constraint]] | ||
name = "github.com/moby/moby" | ||
revision = "4a804016ab8b9fd55a45cff9687a1de12dee5eb7" | ||
|
||
[[constraint]] | ||
name = "github.com/docker/go-units" | ||
version = "0.3.2" | ||
|
||
[[constraint]] | ||
name = "github.com/gorilla/mux" | ||
version = "1.6.0" | ||
|
||
[[constraint]] | ||
name = "github.com/openfaas/faas" | ||
version = "0.6.15" | ||
|
||
[[constraint]] | ||
name = "github.com/openfaas/faas-provider" | ||
version = "0.5.0" | ||
|
||
# match docker/distribution revision with moby | ||
[[override]] | ||
name = "github.com/docker/distribution" | ||
revision = "edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c" |
Oops, something went wrong.