Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions containerfiles/pccs/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ WORKDIR ../../QuoteGeneration/pccs
RUN npm config set engine-strict true \
&& npm install

FROM registry.access.redhat.com/ubi9/nodejs-20:latest
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal:latest

WORKDIR intel/pccs
COPY --from=builder --chown=default:1001 /opt/app-root/src/SGXDataCenterAttestationPrimitives/QuoteGeneration/pccs .
WORKDIR /opt/intel/pccs

COPY --from=builder --chown=1001:users /opt/app-root/src/SGXDataCenterAttestationPrimitives/QuoteGeneration/pccs .
COPY --chown=1001:users default.json config/
COPY --chown=1001:users custom-environment-variables.json config/

ENTRYPOINT ["/usr/bin/node", "pccs_server.js"]
14 changes: 14 additions & 0 deletions containerfiles/pccs/custom-environment-variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"HTTPS_PORT": "PCCS_HTTPS_PORT",
"ApiKey": "PCCS_API_KEY",
"proxy": "CLUSTER_HTTPS_PROXY",
"UserTokenHash": "PCCS_USER_TOKEN_HASH",
"AdminTokenHash": "PCCS_ADMIN_TOKEN_HASH",
"CachingFillMode": "PCCS_FILL_MODE",
"LogLevel": "PCCS_LOG_LEVEL",
"sqlite": {
"database": "PCCS_DB_NAME",
"username": "PCCS_DB_USERNAME",
"password": "PCCS_DB_PASSWORD"
}
}
34 changes: 34 additions & 0 deletions containerfiles/pccs/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"HTTPS_PORT": 8042,
"hosts": "0.0.0.0",
"uri": "https://api.trustedservices.intel.com/sgx/certification/v4/",
"ApiKey": "",
"proxy": "",
"RefreshSchedule": "0 0 1 * * *",
"UserTokenHash": "",
"AdminTokenHash": "",
"CachingFillMode": "LAZY",
"OPENSSL_FIPS_MODE": false,
"LogLevel": "info",
"DB_CONFIG": "sqlite",
"sqlite": {
"database" : "database",
"username" : "username",
"password" : "password",
"options": {
"host": "localhost",
"dialect": "sqlite",
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
},
"define": {
"freezeTableName": true
},
"logging": true,
"storage": "/var/cache/pccs/pckcache.db"
}
}
}