-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David VIEJO <[email protected]>
- Loading branch information
Showing
57 changed files
with
425 additions
and
462 deletions.
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,5 @@ | ||
AUTH_SECRET="pkUz8HbyyGXXPVjic4M5I++dGEkrHr6tr9o9O7ZmyUg=" | ||
PASSWORD_SALT= | ||
GH_CLIENT_ID= | ||
GH_CLIENT_SECRET= | ||
RESEND_API_KEY= |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
{ | ||
"label": "Deployment options" | ||
} |
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
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
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,68 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
# Installation | ||
|
||
At the time of writing, fabriclaunch has only been tested with Ubuntu 22.04 and 24.04. | ||
|
||
These are the tools you'll need to install: | ||
|
||
- **cfssl**: to generate certificates and certificate authorities (CAs) | ||
- **Golang**: to run chaincodes | ||
- **Fabric tools**: to interact with the Hyperledger Fabric network, including: | ||
+ **peer**: to run peers | ||
+ **orderer**: to run orderers | ||
+ **osnadmin**: to join the ordering service nodes to the channel | ||
+ **discover**: to discover peers in the channel | ||
- **fabriclaunch**: to create and manage your Hyperledger Fabric network | ||
|
||
|
||
## Install cfssl | ||
|
||
To install cfssl, run the following commands: | ||
|
||
```bash{"title": "xx"} | ||
wget https://github.com/cloudflare/cfssl/releases/download/v1.6.5/cfssl_1.6.5_linux_amd64 -O /usr/local/bin/cfssl | ||
wget https://github.com/cloudflare/cfssl/releases/download/v1.6.5/cfssljson_1.6.5_linux_amd64 -O /usr/local/bin/cfssljson | ||
chmod +x /usr/local/bin/cfssl | ||
chmod +x /usr/local/bin/cfssljson | ||
``` | ||
|
||
## Install Golang | ||
|
||
To install Golang, run the following commands: | ||
|
||
```bash | ||
wget "https://go.dev/dl/go1.22.5.linux-amd64.tar.gz" | ||
sudo tar -C /usr/local -xzf go*.tar.gz | ||
export PATH=$PATH:/usr/local/go/bin | ||
``` | ||
|
||
## Install Fabric tools | ||
|
||
To install the Fabric tools, run the following commands: | ||
|
||
```bash | ||
curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | ||
chmod +x install-fabric.sh | ||
./install-fabric.sh --fabric-version 2.5.9 binary | ||
|
||
# and then move the binaries to your PATH | ||
|
||
mv bin/discover /usr/local/bin/discover | ||
mv bin/orderer /usr/local/bin/orderer | ||
mv bin/osnadmin /usr/local/bin/osnadmin | ||
mv bin/peer /usr/local/bin/peer | ||
``` | ||
|
||
|
||
## Install fabriclaunch | ||
|
||
To install fabriclaunch, run the following commands: | ||
|
||
```bash | ||
wget https://fabriclaunch.com/fabriclaunch | ||
chmod +x fabriclaunch | ||
mv fabriclaunch /usr/local/bin/fabriclaunch | ||
``` | ||
|
File renamed without changes.
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,3 @@ | ||
{ | ||
"label": "Platform deployment" | ||
} |
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,89 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Using Docker Compose | ||
|
||
## Prerequisites: | ||
|
||
1. Ensure Docker and Docker Compose are installed on your system. | ||
2. Git should be installed to clone the repository. | ||
|
||
## Step-by-step Instructions: | ||
|
||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/kfsoftware/fabriclaunch.git | ||
cd fabriclaunch | ||
``` | ||
|
||
2. Set up environment variables: | ||
```bash | ||
cp .env.example .env | ||
``` | ||
Edit the `.env` file and fill in the required values: | ||
- `AUTH_SECRET` is already set, but you can generate a new one with: | ||
```bash | ||
openssl rand -hex 32 | ||
``` | ||
- Set `PASSWORD_SALT` (you can use the same method as `AUTH_SECRET`) | ||
- Add your GitHub OAuth credentials for `GH_CLIENT_ID` and `GH_CLIENT_SECRET` | ||
- Add your Resend API key for `RESEND_API_KEY` | ||
|
||
3. Build the Docker images: | ||
```bash | ||
docker-compose build | ||
``` | ||
|
||
4. Start the services: | ||
```bash | ||
docker-compose up | ||
``` | ||
Or in detached mode: | ||
```bash | ||
docker-compose up -d | ||
``` | ||
|
||
5. Wait for the services to start up. You should see logs indicating that the services are ready. | ||
|
||
6. Open a web browser and navigate to: | ||
``` | ||
http://localhost:3000/dashboard | ||
``` | ||
7. If everything is working correctly, you should see the dashboard of your FabricLaunch application. | ||
## Troubleshooting: | ||
- Check Docker logs: | ||
```bash | ||
docker-compose logs | ||
``` | ||
- Check logs for a specific service: | ||
```bash | ||
docker-compose logs web | ||
``` | ||
- Ensure ports 3000, 5432, 9000, and 9001 are not in use by other applications. | ||
- If you make changes, rebuild the images: | ||
```bash | ||
docker-compose build | ||
docker-compose up | ||
``` | ||
|
||
## Platform-specific notes: | ||
|
||
- Windows: Use PowerShell or Command Prompt. Ensure Docker Desktop is running. | ||
- Mac: Use Terminal. Ensure Docker Desktop is running. | ||
- Linux: You might need to use `sudo` before docker commands, depending on your setup. | ||
|
||
## Stopping the services: | ||
|
||
```bash | ||
docker-compose down | ||
``` | ||
To remove volumes as well: | ||
```bash | ||
docker-compose down -v | ||
``` | ||
|
||
By following these steps, you should be able to launch FabricLaunch on any machine (Linux, Windows, or Mac) and access the dashboard at http://localhost:3000/dashboard to verify that it's working correctly. |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Oops, something went wrong.