diff --git a/envconfig.js b/envconfig.js deleted file mode 100644 index 0ea10504..00000000 --- a/envconfig.js +++ /dev/null @@ -1,33 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: CC0-1.0 - -const fs = require('fs'); - -const ENV = process.env, - infile = process.argv[2]; - -function tmpl(str, data) { - //const tmplReg = /\$\{(.+?)\}/g - const tmplReg = /\$\{([\w_\-]+)\}/g - //const tmplReg = /\{ *([\w_\-]+) *\}/g - - return str.replace(tmplReg, function (str, key) { - var value = data[key]; - if (value === undefined) - value = "${"+key+"}"; - return value; - }); -} - -try { - const configFile = fs.readFileSync(infile, 'utf8'); - - const configEnv = tmpl(configFile, ENV); - - console.log(configEnv); -} -catch (e) { - console.log('Error: ',e.message); - process.exit(1); -} \ No newline at end of file diff --git a/otp.sh b/otp.sh deleted file mode 100755 index b0966bf1..00000000 --- a/otp.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# SPDX-FileCopyrightText: NOI Techpark -# -# SPDX-License-Identifier: CC0-1.0 - -exec java -Xmx"$JAVA_MX" -jar /usr/local/share/java/otp.jar "$@" diff --git a/package.json b/package.json deleted file mode 100644 index 6c400559..00000000 --- a/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "odh-mentor-otp", - "version": "3.0.0", - "description": "This project contains a Docker images for stable [OpenTripPlanner](http://opentripplanner.org) releases and tools to auto download Openstreetmap data related to a certain gtfs file.", - "main": "envconfig.js", - "scripts": { - "cleandeps": "find . -maxdepth 3 -name node_modules -exec rm -fr {} \\;" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/openmove/odh-mentor-otp.git" - }, - "author": "OpenMove ", - "contributors": [ - { - "name" : "Federico Bertolini", - "email" : "federico.bertolini@openmove.com", - "url" : "https://github.com/zabuTNT" - }, - { - "name" : "Patrick Bertolla", - "email" : "p.bertolla@noi.bz.it" - }, - { - "name" : "Roberto Cavaliere", - "email" : "r.cavaliere@noi.bz.it" - }, - { - "name" : "Stefano Cudini", - "email" : "stefano.cudini@gmail.com", - "url" : "https://github.com/stefanocudini" - } - ], - "license": "ISC", - "bugs": { - "url": "https://github.com/openmove/odh-mentor-otp/issues" - }, - "homepage": "https://github.com/openmove/odh-mentor-otp#readme" -}