Commit c45dd3fe authored by Javier Diaz's avatar Javier Diaz
Browse files

Code Cleanup

parent a83ab192
Loading
Loading
Loading
Loading
+5 −39
Original line number Diff line number Diff line
@@ -17,11 +17,11 @@ kind: ConfigMap
metadata:
  name: dlt-config
data:
  CHANNEL_NAME: "channel1"
  CHAINCODE_NAME: "adrenalineDLT"
  MSP_ID: "Org1MSP"
  PEER_ENDPOINT: "10.1.1.96:7051" #Change to required peer#
  PEER_HOST_ALIAS: "peer0.org1.adrenaline.com"
  CHANNEL_NAME: "channel1" #Change according to your blockchain configuration
  CHAINCODE_NAME: "adrenalineDLT" #Change according to your blockchain configuration
  MSP_ID: "Org1MSP" #Change according to your blockchain configuration
  PEER_ENDPOINT: "10.1.1.96:7051" #Change to required peer address according to your blockchain deployment#
  PEER_HOST_ALIAS: "peer0.org1.adrenaline.com" #Change according to your blockchain configuration
  CRYPTO_PATH: "/test-network/organizations/peerOrganizations/org1.adrenaline.com"
  KEY_DIRECTORY_PATH: "/etc/hyperledger/fabric-keystore/keystore"
  CERT_DIRECTORY_PATH: "/etc/hyperledger/fabric-signcerts/signcerts.pem"
@@ -83,9 +83,6 @@ spec:
              cpu: 700m
              memory: 1024Mi
          volumeMounts:
            - mountPath: /test-network
              name: dlt-volume
              readOnly: true
            - name: keystore
              mountPath: /etc/hyperledger/fabric-keystore
              readOnly: true
@@ -133,9 +130,6 @@ spec:
            - name: TLS_CERT_PATH
              value: "/etc/hyperledger/fabric-ca-crt/ca.crt"
      volumes:
        - name: dlt-volume
          persistentVolumeClaim:
            claimName: dlt-pvc
        - name: keystore
          secret:
            secretName: dlt-keystone
@@ -146,34 +140,6 @@ spec:
          secret:
            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
kind: Service
+8 −3
Original line number Diff line number Diff line
@@ -18,14 +18,19 @@ FROM node:20
# Set the working directory in the container
WORKDIR /usr/dltApp

# Create proto directory before copying the .proto files
RUN mkdir -p ./proto

# Copy package.json and package-lock.json
COPY src/dlt/gateway/dltApp/package*.json ./

# Copy tsconfig.json
COPY src/dlt/gateway/dltApp/tsconfig*.json ./
# Copy the proto folder
COPY proto/context.proto ./proto
COPY proto/dlt_gateway.proto ./proto
# Copy the proto folder contents
COPY proto/acl.proto ./proto/acl.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 src/dlt/gateway/dltApp/src/ ./src