You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -182,55 +186,52 @@ export class DockerService {
182
186
183
187
// First, check if the service has any dependencies that need to be installed first
184
188
if(dependencies&&dependencies.length>0){
185
-
this._broadcastAndLog(service.service_name,'checking-dependencies',`Checking dependencies for service ${service.service_name}...`);
189
+
this._broadcast(service.service_name,'checking-dependencies',`Checking dependencies for service ${service.service_name}...`);
186
190
for(constdependencyofdependencies){
187
191
if(!dependency.installed){
188
-
this._broadcastAndLog(service.service_name,'dependency-not-installed',`Dependency service ${dependency.service_name} is not installed. Installing it first...`);
192
+
this._broadcast(service.service_name,'dependency-not-installed',`Dependency service ${dependency.service_name} is not installed. Installing it first...`);
...(service.service_name==='open-webui' ? {Env: ['WEBUI_AUTH=False','PORT=3000','OLLAMA_BASE_URL=http://127.0.0.1:11434']} : {}),// Special case for Open WebUI
this._broadcastAndLog(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Running pre-install actions for Kiwix Serve...`);
276
-
this._broadcastAndLog(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Downloading Wikipedia ZIM file from ${WIKIPEDIA_ZIM_URL}. This may take some time...`);
276
+
this._broadcast(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Running pre-install actions for Kiwix Serve...`);
277
+
this._broadcast(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Downloading Wikipedia ZIM file from ${WIKIPEDIA_ZIM_URL}. This may take some time...`);
277
278
constresponse=awaitaxios.get(WIKIPEDIA_ZIM_URL,{
278
279
responseType: 'stream',
279
280
});
@@ -287,89 +288,84 @@ export class DockerService {
287
288
constdisk=drive.use('fs');
288
289
awaitdisk.putStream(PATH,stream);
289
290
290
-
this._broadcastAndLog(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Downloaded Wikipedia ZIM file to ${PATH}`);
291
+
this._broadcast(DockerService.KIWIX_SERVICE_NAME,'preinstall',`Downloaded Wikipedia ZIM file to ${PATH}`);
291
292
}
292
293
293
294
/**
294
295
* Largely follows the install instructions here: https://github.com/Overv/openstreetmap-tile-server/blob/master/README.md
this._broadcastAndLog(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'preinstall',`Running pre-install actions for OpenStreetMap Tile Server...`);
305
+
this._broadcast(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'preinstall',`Running pre-install actions for OpenStreetMap Tile Server...`);
304
306
305
-
constfileExists=awaitdisk.exists(PATH);
306
-
if(!fileExists){
307
-
this._broadcastAndLog(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'preinstall',`Downloading OpenStreetMap PBF file from ${OSM_PBF_URL}. This may take some time...`);
308
-
constresponse=awaitaxios.get(OSM_PBF_URL,{
309
-
responseType: 'stream',
310
-
});
307
+
// Ensure osm directory has proper perms for OSM container to write cached files to
308
+
this._broadcast(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'preinstall','Ensuring OSM directory permissions are set correctly...');
// If the initial import file already exists, delete it so we can ensure it is a good download
322
+
constfileExists=awaitdisk.exists(PATH);
323
+
if(fileExists){
324
+
awaitdisk.delete(PATH);
322
325
}
323
326
327
+
this._broadcast(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'preinstall',`Downloading OpenStreetMap PBF file from ${OSM_PBF_URL}. This may take some time...`);
328
+
constresponse=awaitaxios.get(OSM_PBF_URL,{
329
+
responseType: 'stream',
330
+
});
331
+
awaitdisk.putStream(PATH,response.data);
332
+
324
333
// Do initial import of OSM data into the tile server DB
325
334
// We need to add the initial osm.pbf file as another volume bind so we can import it
this._broadcastAndLog(DockerService.OPENSTREETMAP_IMPORT_SERVICE_NAME,'importing',`Processing initial import of OSM data. This may take some time...`);
0 commit comments