This artifact contains the source code for the modified version of Fission which includes the TruFaaS Internal Component.
You can find the TruFaaS internal component source code in the trufaas
directory.
The rest of this README will guide you through the build and deployment process.
Before you can build and run Fission with TruFaaS, you need to have the following software installed on your machine:
- Go Lang 1.19 or later version (GoLand is recommended as an IDE).
- Docker (Docker Desktop is recommended if you're using Windows).
- Kind (Kubernetes in Docker) to create a Kubernetes cluster to run Fission.
- Kubectl and Helm.
- Goreleaser to build the Go binaries.
- Skaffold for a local development workflow to simplify the process of building and deploying Fission.
- TruFaaS External Component API already running on your local device on port 8080.
- If you are using Windows install Git Bash and use the bash terminal for the following sections.
-
Before building, you need to specify the URL of the external component inside Fission.
- First you need to find the ipv4 address of your local machine
- On Ubuntu you can use "ifconfig" command.
- On Windows you can use "ipconfig" command and find the ipv4 named "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet," depending on your network connection.
- Navigate to
trufaas/config.go
and replacehttp://{your-ipv4-address}:8080
inExternalCompBaseURL
constant with the ip address.
- First you need to find the ipv4 address of your local machine
-
From back in the main directory run the following commands one after the other:
kind create cluster kubectl create ns fission make skaffold-prebuild # This builds all Go binaries required for Fission make create-crds skaffold run -p kind
-
You also need to build the fission-cli separately
GOOS=linux GOARCH=amd64 go build -o fission cmd/fission-cli/main.go sudo mv ./fission /usr/local/bin/fission
- Run
go build -o fission.exe cmd/fission-cli/main.go
- Move the created
fission.exe
toC:\Program Files (x86)\fission
directory. You may need to create the fission directory first. - Add fission as an environmental variable to system path. (
C:\Program Files (x86)\fission
)
- Run
-
At this point, the modified version of Fission should be up and running. To confirm that everything is working properly, run the command
fission version
. If there are no errors returned, then the deployment has been successful.