File tree 9 files changed +56
-39
lines changed
9 files changed +56
-39
lines changed Original file line number Diff line number Diff line change 1
- APP_ENV = local
1
+ APP_ENV = production
2
2
APP_KEY = base64:77OgH/oKeS0eg4yCcTPDZhmwYExYb7+eVhOXlBGfpo4=
3
3
APP_DEBUG = true
4
4
APP_LOG_LEVEL = debug
5
- APP_URL = http://localhost
6
- APP_THEME = default
5
+ APP_URL = http://apps.openbudgets.eu/kpi
6
+ APP_THEME = obeu
7
7
REGISTRATION_ENABLED = false
8
8
VALUE_CACHE = true
9
- CACHE_TIME = 120
9
+ CACHE_TIME = 1200000000000
10
10
LANG_DETECTOR_LANGUAGES = en,el
11
+ L5_SWAGGER_BASE_PATH = /kpi/api/v1
11
12
12
13
13
14
DB_CONNECTION = sqlite
15
+ DB_DATABASE = /var/www/database/database.sqlite
14
16
15
17
BROADCAST_DRIVER = log
16
18
CACHE_DRIVER = file
17
19
SESSION_DRIVER = file
18
20
QUEUE_DRIVER = sync
19
21
20
- ENDPOINT = " http://data.openbudgets.eu/sparql"
21
- RUDOLF = http://eis- openbudgets.iais.fraunhofer.de /api/3/cubes/
22
+ ENDPOINT = http://data.openbudgets.eu/sparql
23
+ RUDOLF = http://apps. openbudgets.eu /api/3/cubes/
22
24
INDIGO = http://apps.openbudgets.eu/
23
25
INDIGO_ROUTE = #indigo/cube/analytics/
24
- OS_VIEWER = http://eis- openbudgets.iais.fraunhofer.de /viewer/
26
+ OS_VIEWER = http://apps. openbudgets.eu /viewer/
25
27
GEONAMES_ENDPOINT = " http://factforge.net/repositories/ff-news?infer=false&sameAs=false&"
Original file line number Diff line number Diff line change @@ -41,23 +41,22 @@ ENV APACHE_DOC_ROOT /var/www/KPIs/public/
41
41
ENV APP_DIR /var/www/KPIs
42
42
WORKDIR $APP_DIR
43
43
44
- RUN git clone https://github.com/okgreece/KPIs.git $APP_DIR && \
45
- git checkout master
44
+ ADD https://api.github.com/repos/okgreece/KPIs/git/refs/heads/master /version.json
45
+ RUN rm -r $APP_DIR
46
+ RUN git clone https://github.com/okgreece/KPIs.git $APP_DIR/
46
47
47
- COPY ./.env $APP_DIR/.env
48
+ RUN mkdir -p /root/.composer
49
+ COPY ./prod/apache2.conf /etc/apache2/apache2.conf
50
+ RUN mkdir -p /var/www/database
48
51
RUN composer install
52
+ RUN touch /var/www/database/database.sqlite
53
+ COPY ./.env $APP_DIR/.env
49
54
RUN php artisan key:generate
50
- RUN touch database/database.sqlite
51
- RUN php artisan migrate --seed
55
+ RUN php artisan migrate --seed --force
56
+ RUN php artisan l5-swagger:generate
52
57
RUN chmod -R a+rwx $APP_DIR
53
58
54
- # COPY ./database.sqlite /database.sqlite
55
- # RUN chmod a+rwx /database.sqlite
56
-
57
59
EXPOSE 80
58
60
COPY ./start.sh /start.sh
59
61
COPY ./.env /.env
60
62
CMD ["/bin/sh" , "/start.sh" ]
61
-
62
-
63
-
Original file line number Diff line number Diff line change 9
9
echo " date.timezone = $PHP_TIMEZONE " > /usr/local/etc/php/conf.d/timezone.ini
10
10
11
11
# Change file permissions of sqlite:
12
- chmod a+rwx $APP_DIR /storage /database.sqlite
12
+ chown www-data:www-data /var/www/database /database.sqlite
13
13
14
14
# Configure Apache Document Root
15
15
mkdir -p $APACHE_DOC_ROOT
@@ -22,4 +22,3 @@ echo "</Directory>" >> /etc/apache2/conf-available/document-root-directory.conf
22
22
a2enconf " document-root-directory.conf"
23
23
24
24
exec " apache2-foreground"
25
-
Original file line number Diff line number Diff line change @@ -15,25 +15,25 @@ server {
15
15
###################### Include Apps ###########################
16
16
17
17
include includes/locations/linkedpipes.conf;
18
-
18
+
19
19
include includes/locations/okgr_apps.conf;
20
20
21
21
include includes/locations/kpi.conf;
22
-
22
+
23
23
# include includes/locations/microsite.conf;
24
-
24
+
25
25
include includes/locations/cors-anywhere.conf;
26
26
27
27
include includes/locations/os_apps.conf;
28
28
29
29
include includes/locations/staticfiles.conf;
30
30
31
31
include includes/locations/dam.conf;
32
-
32
+
33
33
include includes/locations/alignment_http.conf;
34
-
34
+
35
35
include includes/locations/opencpu.conf;
36
-
36
+
37
37
######################### Lets encrypt ############################
38
38
39
39
location /.well-known {
Original file line number Diff line number Diff line change 1
1
location /kpi/ {
2
2
add_header Strict-Transport-Security "max-age=0; includeSubdomains;";
3
3
add_header Cache-Control "no-store, no-cache, must-revalidate";
4
- expires -1;
4
+ expires -1;
5
+ proxy_set_header Host $host;
6
+ proxy_set_header X-Real-IP $remote_addr;
7
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
8
+ proxy_set_header X-Forwarded-Proto $scheme;
5
9
proxy_pass http://kpi:80/;
6
10
}
Original file line number Diff line number Diff line change @@ -16,6 +16,22 @@ services:
16
16
- OS_API=http://apps.openbudgets.eu/api/3
17
17
env_file :
18
18
- ../.env
19
+ obeu_microsite :
20
+ image : openbudgets/microsite
21
+ build : ./obeu-microsite
22
+ volumes :
23
+ - ../volumes/osviewer/themes:/microsite/os_viewer_themes
24
+ - ../volumes/microsite/data/db.sqlite3:/microsite/db.sqlite3
25
+ ports :
26
+ - " 8009:8000"
27
+ links :
28
+ - os-viewer
29
+ environment :
30
+ - OS_VIEWER_THEMES_FOLDER=os_viewer_themes
31
+ - OS_VIEWER_HOST=http://apps.openbudgets.eu/viewer
32
+ - OS_API=http://apps.openbudgets.eu/api/3
33
+ env_file :
34
+ - ../.env
19
35
silkworkbench :
20
36
image : openbudgets/silkworkbench
21
37
build : ./silkworkbench
@@ -266,16 +282,11 @@ services:
266
282
image : openbudgets/kpi
267
283
build : ./kpi
268
284
volumes :
269
- - ../volumes/kpi/database/database.sqlite:/var/www/KPIs/storage/database.sqlite
270
- - ./kpi/dev/apache2.conf:/etc/apache2/apache2.conf
285
+ - ../volumes/kpi/database:/var/www/database
286
+ # - ./kpi/dev/apache2.conf:/etc/apache2/apache2.conf
287
+ - ../volumes/kpi/composer:/root/.composer
271
288
ports :
272
289
- " 8112:80"
273
- links :
274
- - rudolf
275
- - virtuoso_staging
276
- - virtuoso_production
277
- - indigo
278
- - os-viewer
279
290
damapp :
280
291
image : openbudgets/damapp
281
292
build : ./damapp
@@ -321,6 +332,7 @@ services:
321
332
- rdfbrowser
322
333
- alignment
323
334
- microsite
335
+ - obeu_microsite
324
336
- damapp
325
337
- opencpu
326
338
- cors
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ mkdir -p volumes/rdfbrowser/storage
58
58
# KPIs:
59
59
mkdir -p volumes/kpi/logs
60
60
mkdir -p volumes/kpi/database
61
- # [ ! -f volumes/kpi/database/database.sqlite ] && cp ./docker-config/kpi/database.sqlite ./volumes/kpi/database/database.sqlite
61
+ mkdir -p volumes/kpi/composer
62
+ [ ! -f volumes/kpi/database/database.sqlite ] && cp ./docker-config/kpi/database.sqlite ./volumes/kpi/database/database.sqlite
62
63
63
64
# opencpu:
64
65
mkdir -p volumes/opencpu/scripts
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env /bin/sh
2
2
3
- git pull origin master
3
+ # git pull origin master
4
4
export COMPOSE_HTTP_TIMEOUT=200
5
5
export GOMAXPROCS=4
6
6
OBEU_WORKDIR=$PWD
7
7
8
8
# -- build: Only rebuilding Images that have changed
9
9
# -- build: Only rebuilding Images that have changed
10
10
cd $OBEU_WORKDIR /docker-config && \
11
- docker-compose -f prod.yml up --build -d --remove-orphans
11
+ # docker-compose -f prod.yml up --build -d --remove-orphans
12
12
# For Pulling new Base Images and build from scratch:
13
- # docker-compose -f prod.yml up --build -d --remove-orphans --force-recreate
13
+ docker-compose -f prod.yml up --build -d --remove-orphans --force-recreate
You can’t perform that action at this time.
0 commit comments