Skip to content
Snippets Groups Projects
Commit c45dd3fe authored by Javier Diaz's avatar Javier Diaz
Browse files

Code Cleanup

parent a83ab192
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
...@@ -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
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment