From 56b7d56b09eee5daad12073f4e35e1a4571c229e Mon Sep 17 00:00:00 2001 From: Tommy <52971804+ISnackable@users.noreply.github.com> Date: Sun, 18 Jul 2021 15:54:34 +0800 Subject: [PATCH] Add docker persistence data & Fix frontend image alt attribute --- G8/docker-compose.yml | 12 ++++++++---- G8/frontend/src/pages/Presentation.js | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/G8/docker-compose.yml b/G8/docker-compose.yml index d547847..7867623 100644 --- a/G8/docker-compose.yml +++ b/G8/docker-compose.yml @@ -5,6 +5,7 @@ services: # MariaDB Database mariadb: image: mariadb:10 + # mounting a named volume to the container to track db data volumes: - mariadb_data:/var/lib/mysql - ./backend/init.sql:/docker-entrypoint-initdb.d/init.sql @@ -39,6 +40,10 @@ services: # UNCOMMENT TO SPECIFY A CODEQL CLI VERSION, defaults to latest version # CODEQL_VERSION: "v2.5.7" PRECOMPILE_QUERIES: "true" # FALSE TO REDUCE CREATION TIME + volumes: + - backend_uploads:/uploads/ + - backend_database:/databases/ + - backend_sarif:/SarifFiles/ environment: CODEQL_HOME: /usr/local/codeql-home DB_HOST: mariadb @@ -63,9 +68,6 @@ services: # ports: # - 7474:7474 # - 7687:7687 - # mounting a named volume to the container to track db data - volumes: - - neo4j_data:/data/ environment: - NEO4J_AUTH=neo4j/s3cr3t # configure the instance with custom username/password # Raise memory limits @@ -75,5 +77,7 @@ services: # volumes to be generated, these are saved somewhere for repeated use by docker volumes: - neo4j_data: mariadb_data: + backend_uploads: + backend_database: + backend_sarif: diff --git a/G8/frontend/src/pages/Presentation.js b/G8/frontend/src/pages/Presentation.js index 94966e1..0e7ce62 100644 --- a/G8/frontend/src/pages/Presentation.js +++ b/G8/frontend/src/pages/Presentation.js @@ -262,7 +262,7 @@ select sink.getNode(), source, sink, - Calendar Preview + React Mockup @@ -285,7 +285,7 @@ select sink.getNode(), source, sink, - Calendar Preview + Express Mockup {/* codeql feature */} @@ -418,7 +418,7 @@ select sink.getNode(), source, sink, MapBox Leaflet.js Custom Integration Mockup