Cleanup CF and docker deployment support
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 12 Sep 2021 13:03:51 +0000 (15:03 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 12 Sep 2021 13:03:51 +0000 (15:03 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.cfignore
docker/Dockerfile
docker/Makefile
docker/docker-compose.yml
src/charging-station/Bootstrap.ts

index 19d6778cd14102b41beeeb49f227ccd0259afc88..039b2a76f14f76b430e6a6daa75ec42e9fe16163 100644 (file)
--- a/.cfignore
+++ b/.cfignore
@@ -9,6 +9,10 @@
 .vscode
 .clinic
 .tscache
+.nycrc.json
+.nyc_output
+.mocharc.json
+.release-it.json
 .xmake.cfg
 # Logs
 *.log
 .netrwhist
 *~
 *.orig
+*.md
+*.db
+*-template.*
+*.tar.gz
+*.mta
+mta_archives
 src
-ev-simulator-start.sh
-ev-simulator-start.bat
-README.md
+test
+temp
+outputs
+coverage
+charging-stations-simulator-start.sh
+charging-stations-simulator-start.bat
 node_modules
-manifest-cf-template.yml
+sonar-project.properties
+performanceRecords.json
+tsconfig*.json
 mta.yaml
index 46ca0102c1e0ad1e7b7d86c4c56b3ef38075565d..531bb43f9153576083fe24ae6ca86008baed57e4 100644 (file)
@@ -17,7 +17,7 @@ WORKDIR /usr/app
 
 COPY --from=builder /usr/builder/node_modules ./node_modules
 COPY --from=builder /usr/builder/dist ./dist
-COPY NOTICE LICENSE ./
+COPY README.md NOTICE LICENSE ./
 COPY docker/autoconfig.sh /autoconfig.sh
 RUN chmod +x /autoconfig.sh
 
index 8b02c4fe42b68681d09455997e2ea9d876d5274f..422fb1fe6fd773eb107e79902c8447615fe98f3f 100644 (file)
@@ -1,9 +1,9 @@
 PROJECT_NAME?=evse
-NAME:=simulator
+NAME:=charging-stations-simulator
 SUBMODULES_INIT?=false
 DOCKER_ECR_ACCOUNT_ID?=166296450311
 DOCKER_ECR_REGION?=eu-west-3
-DOCKER_ECR_REGISTRY_NAME?=ev_simulator
+DOCKER_ECR_REGISTRY_NAME?=charging_stations_simulator
 DOCKER_ECR_TAG?=latest
 
 .PHONY: all
index 4da584b6b670506dbf7c9a590b3f79f69195781f..e34223d73b1355310f2a6bed5acfe736a0517c56 100644 (file)
@@ -4,7 +4,7 @@ networks:
       driver: bridge
 
 services:
-    simulator:
+    charging-stations-simulator:
         build:
             context: ..
             dockerfile: docker/Dockerfile
index f33116726b318a85712b91e6b213f5b4634a87d4..7fe1ef7b1c7c9d0bddd79aaab75083bfd62c2fdd 100644 (file)
@@ -65,7 +65,7 @@ export default class Bootstrap {
         if (numStationsTotal === 0) {
           console.warn(chalk.yellow('No charging station template enabled in configuration, exiting'));
         } else {
-          console.log(chalk.green(`Charging station simulator ${this.version} started with ${numStationsTotal.toString()} charging station(s) and ${Utils.workerDynamicPoolInUse() ? `${Configuration.getWorkerPoolMinSize().toString()}/` : ''}${Bootstrap.workerImplementation.size}${Utils.workerPoolInUse() ? `/${Configuration.getWorkerPoolMaxSize().toString()}` : ''} worker(s) concurrently running in '${Configuration.getWorkerProcess()}' mode${Bootstrap.workerImplementation.maxElementsPerWorker ? ` (${Bootstrap.workerImplementation.maxElementsPerWorker} charging station(s) per worker)` : ''}`));
+          console.log(chalk.green(`Charging stations simulator ${this.version} started with ${numStationsTotal.toString()} charging station(s) and ${Utils.workerDynamicPoolInUse() ? `${Configuration.getWorkerPoolMinSize().toString()}/` : ''}${Bootstrap.workerImplementation.size}${Utils.workerPoolInUse() ? `/${Configuration.getWorkerPoolMaxSize().toString()}` : ''} worker(s) concurrently running in '${Configuration.getWorkerProcess()}' mode${Bootstrap.workerImplementation.maxElementsPerWorker ? ` (${Bootstrap.workerImplementation.maxElementsPerWorker} charging station(s) per worker)` : ''}`));
         }
         this.started = true;
       } catch (error) {