Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TFS
controller
Commits
c45dd3fe
Commit
c45dd3fe
authored
8 months ago
by
Javier Diaz
Browse files
Options
Downloads
Patches
Plain Diff
Code Cleanup
parent
a83ab192
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!259
Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/dltservice.yaml
+5
-39
5 additions, 39 deletions
manifests/dltservice.yaml
src/dlt/gateway/Dockerfile
+8
-3
8 additions, 3 deletions
src/dlt/gateway/Dockerfile
with
13 additions
and
42 deletions
manifests/dltservice.yaml
+
5
−
39
View file @
c45dd3fe
...
@@ -17,11 +17,11 @@ kind: ConfigMap
...
@@ -17,11 +17,11 @@ kind: ConfigMap
metadata
:
metadata
:
name
:
dlt-config
name
:
dlt-config
data
:
data
:
CHANNEL_NAME
:
"
channel1"
CHANNEL_NAME
:
"
channel1"
#Change according to your blockchain configuration
CHAINCODE_NAME
:
"
adrenalineDLT"
CHAINCODE_NAME
:
"
adrenalineDLT"
#Change according to your blockchain configuration
MSP_ID
:
"
Org1MSP"
MSP_ID
:
"
Org1MSP"
#Change according to your blockchain configuration
PEER_ENDPOINT
:
"
10.1.1.96:7051"
#Change to required peer#
PEER_ENDPOINT
:
"
10.1.1.96:7051"
#Change to required peer
address according to your blockchain deployment
#
PEER_HOST_ALIAS
:
"
peer0.org1.adrenaline.com"
PEER_HOST_ALIAS
:
"
peer0.org1.adrenaline.com"
#Change according to your blockchain configuration
CRYPTO_PATH
:
"
/test-network/organizations/peerOrganizations/org1.adrenaline.com"
CRYPTO_PATH
:
"
/test-network/organizations/peerOrganizations/org1.adrenaline.com"
KEY_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-keystore/keystore"
KEY_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-keystore/keystore"
CERT_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-signcerts/signcerts.pem"
CERT_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-signcerts/signcerts.pem"
...
@@ -83,9 +83,6 @@ spec:
...
@@ -83,9 +83,6 @@ spec:
cpu
:
700m
cpu
:
700m
memory
:
1024Mi
memory
:
1024Mi
volumeMounts
:
volumeMounts
:
-
mountPath
:
/test-network
name
:
dlt-volume
readOnly
:
true
-
name
:
keystore
-
name
:
keystore
mountPath
:
/etc/hyperledger/fabric-keystore
mountPath
:
/etc/hyperledger/fabric-keystore
readOnly
:
true
readOnly
:
true
...
@@ -133,9 +130,6 @@ spec:
...
@@ -133,9 +130,6 @@ spec:
-
name
:
TLS_CERT_PATH
-
name
:
TLS_CERT_PATH
value
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
value
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
volumes
:
volumes
:
-
name
:
dlt-volume
persistentVolumeClaim
:
claimName
:
dlt-pvc
-
name
:
keystore
-
name
:
keystore
secret
:
secret
:
secretName
:
dlt-keystone
secretName
:
dlt-keystone
...
@@ -146,34 +140,6 @@ spec:
...
@@ -146,34 +140,6 @@ spec:
secret
:
secret
:
secretName
:
dlt-ca-crt
secretName
:
dlt-ca-crt
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
dlt-pvc
spec
:
accessModes
:
-
ReadOnlyMany
resources
:
requests
:
storage
:
1Gi
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
dlt-pv
spec
:
capacity
:
storage
:
1Gi
accessModes
:
-
ReadOnlyMany
persistentVolumeReclaimPolicy
:
Retain
hostPath
:
path
:
"
/home/ubuntu/fabric-samples/test-network"
#Update to correct host paths where the MSP is located.
claimRef
:
name
:
dlt-pvc
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
...
...
This diff is collapsed.
Click to expand it.
src/dlt/gateway/Dockerfile
+
8
−
3
View file @
c45dd3fe
...
@@ -18,14 +18,19 @@ FROM node:20
...
@@ -18,14 +18,19 @@ FROM node:20
# Set the working directory in the container
# Set the working directory in the container
WORKDIR
/usr/dltApp
WORKDIR
/usr/dltApp
# Create proto directory before copying the .proto files
RUN
mkdir
-p
./proto
# Copy package.json and package-lock.json
# Copy package.json and package-lock.json
COPY
src/dlt/gateway/dltApp/package*.json ./
COPY
src/dlt/gateway/dltApp/package*.json ./
# Copy tsconfig.json
# Copy tsconfig.json
COPY
src/dlt/gateway/dltApp/tsconfig*.json ./
COPY
src/dlt/gateway/dltApp/tsconfig*.json ./
# Copy the proto folder
# Copy the proto folder contents
COPY
proto/context.proto ./proto
COPY
proto/acl.proto ./proto/acl.proto
COPY
proto/dlt_gateway.proto ./proto
COPY
proto/kpi_sample_types.proto ./proto/kpi_sample_types.proto
COPY
proto/context.proto ./proto/context.proto
COPY
proto/dlt_gateway.proto ./proto/dlt_gateway.proto
# Copy the src folder
# Copy the src folder
COPY
src/dlt/gateway/dltApp/src/ ./src
COPY
src/dlt/gateway/dltApp/src/ ./src
...
...
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