Skip to content

Instantly share code, notes, and snippets.

View tthvo's full-sized avatar

Thuan Vo tthvo

View GitHub Profile
@tthvo
tthvo / explain.md
Last active November 10, 2024 11:58
  1. Replace the content of docker-compose.yaml with below. What it does is to correct the tool path and add option -C to trust self-signed certs. This is a MUST_FIX (Please notify prof or TA).

    version: '3.8'
    services:
        node:
            build:
                context: ./
                dockerfile: Dockerfile
            image: cosc304-node       
diff --git a/src/app/Shared/Services/api.types.ts b/src/app/Shared/Services/api.types.ts
index d920cc0..935c6f6 100644
--- a/src/app/Shared/Services/api.types.ts
+++ b/src/app/Shared/Services/api.types.ts
@@ -479,6 +479,7 @@ export interface Target {
cryostat: KeyValue[];
platform: KeyValue[];
};
+ agent?: boolean;
}
compose-cryostat-1 | Aug 26, 2024 9:43:39 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
compose-cryostat-1 | WARN: SQL Error: 0, SQLState: null
compose-cryostat-1 | Aug 26, 2024 9:43:39 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
compose-cryostat-1 | ERROR: Sorry, acquisition timeout!
compose-cryostat-1 | 2024-08-26 21:43:39,324 DEBUG [io.ver.ext.web.RoutingContext] (executor-thread-93) RoutingContext failure (500): org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection [Sorry, acquisition timeout!] [n/a]
compose-cryostat-1 | at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:61)
compose-cryostat-1 | at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108)
compose-cryostat-1 | at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.conver
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "operator.cryostat.io/v1beta1",
"kind": "Cryostat",
"metadata": {
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "operator.cryostat.io/v1beta1",
"kind": "Cryostat",
"metadata": {
Image: quay.io/thvo/cryostat-operator-scorecard:3.0.0-20240510232232
Entrypoint: [cryostat-scorecard-tests cryostat-recording]
Labels:
"suite":"cryostat"
"test":"cryostat-recording"
Results:
Name: cryostat-recording
State: fail
Errors:
--------------------------------------------------------------------------------
Image: quay.io/thvo/cryostat-operator-scorecard:2.5.0-20240319225944
Entrypoint: [cryostat-scorecard-tests cryostat-report]
Labels:
"suite":"cryostat"
"test":"cryostat-report"
Results:
Name: cryostat-report
State: pass
func waitTillCryostatReady(base *url.URL, resources *TestResources) error {
return waitTillPodReady(base.JoinPath("/health").String(), resources, func(resp *http.Response, r *scapiv1alpha3.TestResult) (done bool, err error) {
health := &HealthResponse{}
err = ReadJSON(resp, health)
if err != nil {
return false, fmt.Errorf("failed to read response body: %s", err.Error())
}
if err = health.Ready(); err != nil {
Image: quay.io/thvo/cryostat-operator-scorecard:2.5.0-20240311082913
Entrypoint: [cryostat-scorecard-tests cryostat-recording]
Labels:
"test":"cryostat-recording"
"suite":"cryostat"
Results:
Name: cryostat-recording
State: pass
Log:
apiVersion: operator.cryostat.io/v1beta1
kind: Cryostat
metadata:
name: cryostat-sample
spec:
minimal: true
enableCertManager: true
trustedCertSecrets: []
eventTemplates: []
storageOptions: