Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Build Process #428

Merged
merged 23 commits into from
Dec 30, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/scripts/build_and_push_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function imagedeploy {

# Build image
echo "Building $1"
docker build --tag=$DOCKER_IMAGE_TAG_LONG .
docker build --network=host --tag=$DOCKER_IMAGE_TAG_LONG .

echo "Pushing $DOCKER_TAG image"
docker push $DOCKER_IMAGE_TAG_LONG
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ router-finland.zip
router-hsl.zip
router-waltti.zip
router-waltti-alt.zip

.tmp
125 changes: 4 additions & 121 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
/*
* id = feedid (String)
* url = feed url (String)
* fit = mapfit shapes (true/falsy)
* rules = OBA Filter rules to apply (array of strings or undefined)
* replacements = replace or remove file from gtfs package (format: {'file_to_replace': 'file_to_replace_with' or null})
* request options = optional special options for request
*/
const mapSrc = (id, url, fit, rules, replacements, request) => ({ id, url, fit, rules, replacements, request })
const assert = require('assert')

// OBA filter erases files which it does not recognize from GTFS packages
// this array specifies the file names which should be preserved
Expand All @@ -22,119 +14,10 @@ if (process.env.MH_BASIC_AUTH) {
mhAddress = 'http://digitransit-proxy:8080/out/minfoapi.matkahuolto.fi/gtfs/kokomaa-fi/gtfs.zip'
}

const routers = {
hsl: {
id: 'hsl',
src: [
mapSrc('HSL', 'https://infopalvelut.storage.hsldev.com/gtfs/hsl.zip', false, undefined, { 'trips.txt': 'trips2.txt' }),
// mapSrc('HSLlautta', 'https://koontikartta.navici.com/tiedostot/gtfs_lautat_digitransit.zip')
// src('Sipoo', 'https://koontikartta.navici.com/tiedostot/rae/sipoon_kunta_sibbo_kommun.zip')
],
osm: ['hsl'],
dem: 'hsl'
},
assert(process.env.ROUTER_NAME !== undefined, 'ROUTER_NAME must be defined')

finland: {
id: 'finland',
src: [
mapSrc('HSL', 'https://infopalvelut.storage.hsldev.com/gtfs/hsl.zip', false, ['finland/gtfs-rules/hsl-no-trains.rule'], { 'trips.txt': 'trips2.txt' }),
mapSrc('MATKA', 'https://mobility.mobility-database.fintraffic.fi/static/digitransit_new.zip', true),
mapSrc('tampere', 'https://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_deprecated.zip'),
mapSrc('LINKKI', 'https://tvv.fra1.digitaloceanspaces.com/209.zip', true),
mapSrc('OULU', 'https://tvv.fra1.digitaloceanspaces.com/229.zip'),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Accept-Encoding': 'gzip', 'Digitraffic-User': 'Digitransit/OTP-dataloading' } }),
mapSrc('Rauma', 'http://digitransit-proxy:8080/out/raumaadmin.mattersoft.fi/feeds/233.zip'),
mapSrc('Hameenlinna', 'https://tvv.fra1.digitaloceanspaces.com/203.zip', true),
mapSrc('Kotka', 'https://tvv.fra1.digitaloceanspaces.com/217.zip', true),
mapSrc('Kouvola', 'https://tvv.fra1.digitaloceanspaces.com/219.zip', true),
mapSrc('Lappeenranta', 'https://tvv.fra1.digitaloceanspaces.com/225.zip', true),
mapSrc('Mikkeli', 'https://tvv.fra1.digitaloceanspaces.com/227.zip', true),
mapSrc('Vaasa', 'https://tvv.fra1.digitaloceanspaces.com/249.zip', true),
mapSrc('Joensuu', 'https://tvv.fra1.digitaloceanspaces.com/207.zip', true),
mapSrc('FOLI', 'https://data.foli.fi/gtfs/gtfs.zip'),
mapSrc('Lahti', 'https://tvv.fra1.digitaloceanspaces.com/223.zip', true),
mapSrc('Kuopio', 'https://karttapalvelu.kuopio.fi/google_transit/google_transit.zip'),
mapSrc('Rovaniemi', 'https://tvv.fra1.digitaloceanspaces.com/237.zip', true),
mapSrc('Kajaani', 'https://tvv.fra1.digitaloceanspaces.com/211.zip', true),
mapSrc('Salo', 'https://tvv.fra1.digitaloceanspaces.com/239.zip', true),
mapSrc('Pori', 'https://tvv.fra1.digitaloceanspaces.com/231.zip', true),
mapSrc('Viro', 'https://peatus.ee/gtfs/gtfs.zip'),
mapSrc('Raasepori', 'https://tvv.fra1.digitaloceanspaces.com/232.zip', true),
mapSrc('VARELY', 'http://digitransit-proxy:8080/out/varelyadmin.mattersoft.fi/feeds/102.zip', false),
mapSrc('Harma', 'https://harmanliikenne.bussikaista.fi/sites/harma/files/gtfs/export/latest.zip', true),
mapSrc('PohjolanMatka', 'https://minfoapi.matkahuolto.fi/gtfs/458/gtfs.zip', true),
mapSrc('Korsisaari','https://minfoapi.matkahuolto.fi/gtfs/036/gtfs.zip', true)
],
osm: ['finland', 'estonia']
},

waltti: {
id: 'waltti',
src: [
mapSrc('Hameenlinna', 'https://tvv.fra1.digitaloceanspaces.com/203.zip', true),
mapSrc('Kotka', 'https://tvv.fra1.digitaloceanspaces.com/217.zip', true),
mapSrc('Kouvola', 'https://tvv.fra1.digitaloceanspaces.com/219.zip', true),
mapSrc('Lappeenranta', 'https://tvv.fra1.digitaloceanspaces.com/225.zip', true),
mapSrc('Mikkeli', 'https://tvv.fra1.digitaloceanspaces.com/227.zip', true),
mapSrc('Vaasa', 'https://tvv.fra1.digitaloceanspaces.com/249.zip', true),
mapSrc('Joensuu', 'https://tvv.fra1.digitaloceanspaces.com/207.zip', true),
mapSrc('FOLI', 'https://data.foli.fi/gtfs/gtfs.zip'),
mapSrc('Lahti', 'https://tvv.fra1.digitaloceanspaces.com/223.zip', true, undefined, {'fare_attributes.txt': 'digitransit_fare_attributes.txt', 'fare_rules.txt': 'digitransit_fare_rules.txt'}),
mapSrc('Kuopio', 'https://karttapalvelu.kuopio.fi/google_transit/google_transit.zip'),
mapSrc('OULU', 'https://tvv.fra1.digitaloceanspaces.com/229.zip'),
mapSrc('LINKKI', 'https://tvv.fra1.digitaloceanspaces.com/209.zip', true, undefined, {'fare_attributes.txt': 'digitransit_fare_attributes.txt', 'fare_rules.txt': 'digitransit_fare_rules.txt'}),
mapSrc('tampere', 'https://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_deprecated.zip'),
mapSrc('Rovaniemi', 'https://tvv.fra1.digitaloceanspaces.com/237.zip', true),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Accept-Encoding': 'gzip', 'Digitraffic-User': 'Digitransit/OTP-dataloading' } }),
mapSrc('tampereDRT', 'https://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_kutsuliikenne.zip'),
mapSrc('Pori', 'https://tvv.fra1.digitaloceanspaces.com/231.zip', true),
mapSrc('FUNI', 'https://foligtfs.blob.core.windows.net/routeplanner/gtfs-foli-ff.zip', true),
mapSrc('Raasepori', 'https://tvv.fra1.digitaloceanspaces.com/232.zip', true),
mapSrc('KotkaLautat', 'https://koontikartta.navici.com/tiedostot/gtfs_lautat.zip', true, ['waltti/gtfs-rules/only-kotka-ferries.rule']),
mapSrc('Salo', 'https://tvv.fra1.digitaloceanspaces.com/239.zip', true),
mapSrc('Kajaani', 'https://tvv.fra1.digitaloceanspaces.com/211.zip', true),
],
osm: ['kajaani', 'oulu', 'pori', 'rovaniemi', 'southeastFinland', 'southwestFinland', 'vaasa'],
dem: 'waltti'
},

'waltti-alt': {
id: 'waltti-alt',
src: [
mapSrc('WalttiTest', 'http://digitransit-proxy:8080/out/lmjadmin.mattersoft.fi/feeds/229.zip', true),
],
osm: ['oulu']
},

varely: {
id: 'varely',
src: [
mapSrc('VARELY', 'http://digitransit-proxy:8080/out/varelyadmin.mattersoft.fi/feeds/102.zip'),
mapSrc('FOLI', 'https://data.foli.fi/gtfs/gtfs.zip'),
mapSrc('Rauma', 'http://digitransit-proxy:8080/out/raumaadmin.mattersoft.fi/feeds/233.zip'),
mapSrc('Salo', 'https://tvv.fra1.digitaloceanspaces.com/239.zip', true),
mapSrc('Pori', 'https://tvv.fra1.digitaloceanspaces.com/231.zip', true)
],
osm: ['varely']
},

kela: {
id: 'kela',
src: [
mapSrc('kela', 'https://mobility.mobility-database.fintraffic.fi/static/Kela_suuret.zip'),
mapSrc('kela_varely', 'https://mobility.mobility-database.fintraffic.fi/static/Kela_varely.zip'),
mapSrc('kela_waltti', 'https://mobility.mobility-database.fintraffic.fi/static/kela_waltti.zip'),
mapSrc('matkahuolto', mhAddress, false, ['kela/gtfs-rules/matkahuolto.rule'], { 'transfers.txt': null }),
],
osm: ['finland']
}
}

if (!process.env.ROUTER_NAME || !routers[process.env.ROUTER_NAME]) {
process.stdout.write('Invalid ROUTER_NAME variable \n')
process.exit(1)
}
const router = routers[process.env.ROUTER_NAME]
// Require router config from router directory
const router = require(`./${process.env.ROUTER_NAME}/config`)

// EXTRA_SRC format should be {"FOLI": {"url": "https://data.foli.fi/gtfs/gtfs.zip", "fit": false, "rules": ["waltti/gtfs-rules/waltti.rule"]}}
// but you can only define, for example, new url and the other key value pairs will remain the same as they are defined in this file.
Expand Down
35 changes: 35 additions & 0 deletions finland/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const { mapSrc } = require('../util')

module.exports = {
id: 'finland',
src: [
mapSrc('HSL', 'https://infopalvelut.storage.hsldev.com/gtfs/hsl.zip', false, ['finland/gtfs-rules/hsl-no-trains.rule'], { 'trips.txt': 'trips2.txt' }),
mapSrc('MATKA', 'https://mobility.mobility-database.fintraffic.fi/static/digitransit_new.zip', true),
mapSrc('tampere', 'https://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_deprecated.zip'),
mapSrc('LINKKI', 'https://tvv.fra1.digitaloceanspaces.com/209.zip', true),
mapSrc('OULU', 'https://tvv.fra1.digitaloceanspaces.com/229.zip'),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Accept-Encoding': 'gzip', 'Digitraffic-User': 'Digitransit/OTP-dataloading' } }),
mapSrc('Rauma', 'http://digitransit-proxy:8080/out/raumaadmin.mattersoft.fi/feeds/233.zip'),
mapSrc('Hameenlinna', 'https://tvv.fra1.digitaloceanspaces.com/203.zip', true),
mapSrc('Kotka', 'https://tvv.fra1.digitaloceanspaces.com/217.zip', true),
mapSrc('Kouvola', 'https://tvv.fra1.digitaloceanspaces.com/219.zip', true),
mapSrc('Lappeenranta', 'https://tvv.fra1.digitaloceanspaces.com/225.zip', true),
mapSrc('Mikkeli', 'https://tvv.fra1.digitaloceanspaces.com/227.zip', true),
mapSrc('Vaasa', 'https://tvv.fra1.digitaloceanspaces.com/249.zip', true),
mapSrc('Joensuu', 'https://tvv.fra1.digitaloceanspaces.com/207.zip', true),
mapSrc('FOLI', 'https://data.foli.fi/gtfs/gtfs.zip'),
mapSrc('Lahti', 'https://tvv.fra1.digitaloceanspaces.com/223.zip', true),
mapSrc('Kuopio', 'https://karttapalvelu.kuopio.fi/google_transit/google_transit.zip'),
mapSrc('Rovaniemi', 'https://tvv.fra1.digitaloceanspaces.com/237.zip', true),
mapSrc('Kajaani', 'https://tvv.fra1.digitaloceanspaces.com/211.zip', true),
mapSrc('Salo', 'https://tvv.fra1.digitaloceanspaces.com/239.zip', true),
mapSrc('Pori', 'https://tvv.fra1.digitaloceanspaces.com/231.zip', true),
mapSrc('Viro', 'https://peatus.ee/gtfs/gtfs.zip'),
mapSrc('Raasepori', 'https://tvv.fra1.digitaloceanspaces.com/232.zip', true),
mapSrc('VARELY', 'http://digitransit-proxy:8080/out/varelyadmin.mattersoft.fi/feeds/102.zip', false),
mapSrc('Harma', 'https://harmanliikenne.bussikaista.fi/sites/harma/files/gtfs/export/latest.zip', true),
mapSrc('PohjolanMatka', 'https://minfoapi.matkahuolto.fi/gtfs/458/gtfs.zip', true),
mapSrc('Korsisaari', 'https://minfoapi.matkahuolto.fi/gtfs/036/gtfs.zip', true)
],
osm: ['finland', 'estonia']
}
3 changes: 0 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const { buildOTPGraphTask } = require('./task/BuildOTPGraph')
const { renameGTFSFile } = require('./task/GTFSRename')
const { replaceGTFSFilesTask } = require('./task/GTFSReplace')
const { extractFromZip, addToZip } = require('./task/ZipTask')
const patchDeploymentFiles = require('./task/PatchDeploymentFiles')
const storageCleanup = require('./task/StorageCleanup')

const seedSourceDir = `${config.dataDir}/router-${config.router.id}` // e.g. data/router-hsl
Expand Down Expand Up @@ -182,6 +181,4 @@ gulp.task('router:store', () =>
gulp.src(`${config.dataDir}/build/${config.router.id}/**/*`, { buffer: false }).pipe(gulp.dest(`${config.storageDir}/${global.storageDirName}/`))
)

gulp.task('deploy:prepare', () => patchDeploymentFiles())

gulp.task('storage:cleanup', () => storageCleanup(config.storageDir, config.router.id, process.env.SEED_TAG))
12 changes: 12 additions & 0 deletions hsl/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { mapSrc } = require('../util')

module.exports = {
id: 'hsl',
src: [
mapSrc('HSL', 'https://infopalvelut.storage.hsldev.com/gtfs/hsl.zip', false, undefined, { 'trips.txt': 'trips2.txt' }),
// mapSrc('HSLlautta', 'https://koontikartta.navici.com/tiedostot/gtfs_lautat_digitransit.zip')
// src('Sipoo', 'https://koontikartta.navici.com/tiedostot/rae/sipoon_kunta_sibbo_kommun.zip')
],
osm: ['hsl'],
dem: 'hsl'
}
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const { postSlackMessage } = require('./util')
const { update } = require('./task/Update')

postSlackMessage('Starting data build').then(response => {
if (response.ok) {
global.messageTimeStamp = response.ts
}
const { update } = require('./task/Update')
update()
}).catch((err) => {
console.log(err)
const { update } = require('./task/Update')
}).finally(() => {
update()
})
12 changes: 12 additions & 0 deletions kela/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { mapSrc } = require('../util')

module.exports = {
id: 'kela',
src: [
mapSrc('kela', 'https://mobility.mobility-database.fintraffic.fi/static/Kela_suuret.zip'),
mapSrc('kela_varely', 'https://mobility.mobility-database.fintraffic.fi/static/Kela_varely.zip'),
mapSrc('kela_waltti', 'https://mobility.mobility-database.fintraffic.fi/static/kela_waltti.zip'),
mapSrc('matkahuolto', mhAddress, false, ['kela/gtfs-rules/matkahuolto.rule'], { 'transfers.txt': null }),
],
osm: ['finland']
}
12 changes: 9 additions & 3 deletions opentripplanner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM hsldevcom/opentripplanner:<OTP_TAG>
ARG OTP_TAG="v2"
FROM hsldevcom/opentripplanner:${OTP_TAG}

WORKDIR /var/otp/<OTP_GRAPH_DIR>
ARG OTP_GRAPH_DIR
ENV OTP_GRAPH_DIR=$OTP_GRAPH_DIR

ENTRYPOINT java $JAVA_OPTS -cp @/app/jib-classpath-file @/app/jib-main-class-file /var/otp/<OTP_GRAPH_DIR> --load --serve
ADD entrypoint.sh /var/entrypoint.sh

WORKDIR /var/otp/${OTP_GRAPH_DIR}

ENTRYPOINT ["/var/entrypoint.sh"]
34 changes: 24 additions & 10 deletions opentripplanner/deploy-otp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,45 @@

set -e

cd "$(dirname "$0")"

ROUTER_NAME=${ROUTER_NAME:-hsl}
DATE=$1

ORG=${ORG:-hsldevcom}
DOCKER_TAG=${OTP_TAG:-v2}-$ROUTER_NAME
OTP_TAG=${OTP_TAG:-v2}
DOCKER_TAG=$OTP_TAG-$ROUTER_NAME
PROJECT=opentripplanner
DOCKER_IMAGE=$ORG/$PROJECT
DOCKER_DATE_IMAGE=$DOCKER_IMAGE:$DOCKER_TAG-$DATE
DOCKER_IMAGE_TAGGED=$DOCKER_IMAGE:$DOCKER_TAG

docker login -u $DOCKER_USER -p $DOCKER_AUTH
if [[ -z "${OTP_GRAPH_DIR}" ]]; then
echo "*** OTP_GRAPH_DIR is not defined."
exit 1
fi

if [[ -z "${DOCKER_USER}" ]]; then
echo "*** DOCKER_USER is not defined. Unable to log in to the registry."
else
docker login -u $DOCKER_USER -p $DOCKER_AUTH
fi

# remove old version (may be necessary in local use)
docker rmi --force $DOCKER_IMAGE_TAGGED &> /dev/null
docker rmi --force $DOCKER_DATE_IMAGE &> /dev/null

echo "Building router's opentripplanner image..."
# Local file context is not needed
# https://docs.docker.com/reference/cli/docker/image/build/#build-with--
cd data/build/$ROUTER_NAME
docker build -t $DOCKER_IMAGE_TAGGED - < ../../../opentripplanner/Dockerfile

echo "*** Pushing $DOCKER_IMAGE_TAGGED"
docker push $DOCKER_IMAGE_TAGGED
docker build --progress=plain --network=host --build-arg OTP_TAG=$OTP_TAG --build-arg OTP_GRAPH_DIR=$OTP_GRAPH_DIR -t $DOCKER_IMAGE_TAGGED .

docker tag $DOCKER_IMAGE_TAGGED $DOCKER_DATE_IMAGE
echo "*** Pushing $DOCKER_DATE_IMAGE"
docker push $DOCKER_DATE_IMAGE

if [[ -z "${DOCKER_USER}" ]]; then
echo "*** Not signed into the registry. Image not pushed."
else
echo "*** Pushing $DOCKER_IMAGE_TAGGED"
docker push $DOCKER_IMAGE_TAGGED
echo "*** Pushing $DOCKER_DATE_IMAGE"
docker push $DOCKER_DATE_IMAGE
fi
6 changes: 6 additions & 0 deletions opentripplanner/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

echo "OTP_GRAPH_DIR: ${OTP_GRAPH_DIR}"

java $JAVA_OPTS -cp @/app/jib-classpath-file @/app/jib-main-class-file /var/otp/${OTP_GRAPH_DIR} --load --serve
4 changes: 3 additions & 1 deletion otp-data-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM alpine:latest
MAINTAINER Digitransit version: 2
LABEL authors="Digitransit version: 2"

RUN apk add --update --no-cache \
lighttpd \
lighttpd-mod_auth \
busybox \
&& rm -rf /var/cache/apk/*

ARG OTP_GRAPH_DIR
ENV OTP_GRAPH_DIR=${OTP_GRAPH_DIR}
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
RUN printf '#!/bin/sh\ngrep -v "#" /etc/lighttpd/lighttpd.conf |grep port > /dev/null\nif [ "$?" = "1" ]\nthen\n echo "server.port = $PORT" >> /etc/lighttpd/lighttpd.conf\nfi\n/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf 2>&1' > /usr/sbin/startlighttpd && chmod 755 /usr/sbin/startlighttpd

Expand Down
31 changes: 24 additions & 7 deletions otp-data-server/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#DOCKER_AUTH
set -e

cd "$(dirname "$0")"

ROUTER_NAME=${ROUTER_NAME:-hsl}
DATE=$1

Expand All @@ -13,14 +15,29 @@ DOCKER_TAG=${DOCKER_TAG:-v3}
CONTAINER=opentripplanner-data-server
DOCKER_IMAGE=$ORG/$CONTAINER

docker login -u $DOCKER_USER -p $DOCKER_AUTH
if [[ -z "${OTP_GRAPH_DIR}" ]]; then
echo "*** OTP_GRAPH_DIR is not defined."
exit 1
fi

if [[ -z "${DOCKER_USER}" ]]; then
echo "*** DOCKER_USER is not defined. Unable to log in to the registry."
else
docker login -u $DOCKER_USER -p $DOCKER_AUTH
fi

DOCKER_DATE_IMAGE=$DOCKER_IMAGE:$DOCKER_TAG-$ROUTER_NAME-$DATE
DOCKER_IMAGE_TAGGED=$DOCKER_IMAGE:$DOCKER_TAG-$ROUTER_NAME
cd otp-data-server
docker build -t $DOCKER_DATE_IMAGE .
echo "*** Pushing $DOCKER_DATE_IMAGE"
docker push $DOCKER_DATE_IMAGE

docker build --progress=plain --network=host --build-arg OTP_GRAPH_DIR=$OTP_GRAPH_DIR -t $DOCKER_DATE_IMAGE .

docker tag $DOCKER_DATE_IMAGE $DOCKER_IMAGE_TAGGED
echo "*** Pushing $DOCKER_IMAGE_TAGGED"
docker push $DOCKER_IMAGE_TAGGED

if [[ -z "${DOCKER_USER}" ]]; then
echo "*** Not signed into the registry. Image not pushed."
else
echo "*** Pushing $DOCKER_DATE_IMAGE"
docker push $DOCKER_DATE_IMAGE
echo "*** Pushing $DOCKER_IMAGE_TAGGED"
docker push $DOCKER_IMAGE_TAGGED
fi
2 changes: 1 addition & 1 deletion otp-data-server/lighttpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ include "mime-types.conf"
#server.username = "lighttpd"
#server.groupname = "lighttpd"

server.document-root = var.basedir + "/htdocs/<OTP_GRAPH_DIR>"
server.document-root = var.basedir + "/htdocs/" + env.OTP_GRAPH_DIR
server.pid-file = "/run/lighttpd.pid"

server.errorlog = "/dev/stderr"
Expand Down
Loading
Loading