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
c33d381e
Commit
c33d381e
authored
7 years ago
by
Alex Young
Committed by
Alex Ellis
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update HACK.md
Signed-off-by:
Alex Young
<
alex@heuris.io
>
parent
ab0a63fa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/HACK.md
+11
-5
11 additions, 5 deletions
contrib/HACK.md
with
11 additions
and
5 deletions
contrib/HACK.md
+
11
−
5
View file @
c33d381e
...
...
@@ -9,7 +9,7 @@ $ ./build.sh
Now edit the gateway service in your
`docker-compose.yml`
file and deploy the stack.
If you want to use an overriden name then pass in the tag to the
`./build.sh`
script such as
`./build.sh test-1`
.
If you want to use an overrid
d
en name then pass in the tag to the
`./build.sh`
script such as
`./build.sh test-1`
.
## Hack on the UI for the API Gateway
...
...
@@ -22,14 +22,20 @@ $ docker stack rm func
$ docker network create func_functions --driver=overlay --attachable=true
```
Now edit the
`docker-compose.yml`
file and add an attribute to the
`functions`
network of
`attachable`
.
Now edit the
`docker-compose.yml`
file and replace the existing networks block with:
```
networks:
functions:
external:
name: func_functions
```
Now you can run the gateway as its own container and bind-mount in the HTML assets.
```
$ cd faas
$ docker run -v `pwd`/gateway/assets:/root/assets -v "/var/run/docker.sock:/var/run/docker.sock" \
-p 8080:8080 --network=func_functions -
t
i functions/gateway:latest-dev
-p 8080:8080 --network=func_functions -i
td
functions/gateway:latest-dev
```
Now deploy the rest of the stack with:
`./deploy_stack.sh`
.
Now deploy the rest of the stack with:
`./deploy_stack.sh`
.
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