Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfaas-faas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team Jaz CS 598 CCC Final Project
openfaas-faas
Commits
2275382e
Commit
2275382e
authored
8 years ago
by
Alex
Browse files
Options
Downloads
Patches
Plain Diff
Add travis and fix Dockerfile for test files
parent
ac6fe0d1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+10
-0
10 additions, 0 deletions
.travis.yml
build.sh
+3
-17
3 additions, 17 deletions
build.sh
watchdog/Dockerfile
+8
-1
8 additions, 1 deletion
watchdog/Dockerfile
with
21 additions
and
18 deletions
.travis.yml
0 → 100644
+
10
−
0
View file @
2275382e
sudo
:
required
services
:
-
docker
before_install
:
-
docker pull golang:1.7.3
script
:
-
sh build.sh
This diff is collapsed.
Click to expand it.
build.sh
+
3
−
17
View file @
2275382e
#!/bin/sh
#!/bin/
ba
sh
# First do - git clone https://github.com/alexellis/faas && cd faas
(
cd
gateway
&&
./build.sh
)
(
cd
watchdog
&&
./build.sh
)
docker network create
--driver
overlay
--attachable
functions
cd
watchdog
./build.sh
cp
./fwatchdog ../sample-functions/catservice/
docker build
--build-arg
https_proxy
=
$https_proxy
--build-arg
http_proxy
=
$http_proxy
\
-t
alexellis2/faas-catservice
.
#docker service rm catservice ; docker service create --network=functions --name catservice alexellis2/faas-catservice
cd
..
cd
gateway
./build.sh
# docker rm -f server; docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name server -p 8080:8080 --network=functions alexellis2/faas-gateway
This diff is collapsed.
Click to expand it.
watchdog/Dockerfile
+
8
−
1
View file @
2275382e
FROM
golang:1.7.3
FROM
golang:1.7.3
RUN
mkdir
-p
/go/src/app
RUN
mkdir
-p
/go/src/app
COPY
main.go /go/src/app
WORKDIR
/go/src/app
COPY
main.go .
COPY
readconfig.go .
COPY
config_test.go .
WORKDIR
/go/src/app
WORKDIR
/go/src/app
RUN
go get
-d
-v
RUN
go get
-d
-v
RUN
go
test
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-installsuffix
cgo
-o
app .
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-installsuffix
cgo
-o
app .
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment