File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ isPathOwnedBySolr ()
160
160
return $status
161
161
}
162
162
163
- run_container ()
163
+ create_clean_local_volume ()
164
164
{
165
165
echo -n " Creating testvolume"
166
166
prettyPrintOrExitOnError $? " $( mkdir -p " $LOCAL_VOLUME_PATH " 2>&1 ) "
@@ -173,8 +173,13 @@ run_container ()
173
173
174
174
echo -n " Create named volume inside of ~/solrcivolume"
175
175
prettyPrintOrExitOnError $? " $( docker volume create --name " $LOCAL_VOLUME_NAME " --opt type=none --opt device=" $LOCAL_VOLUME_PATH " --opt o=bind 2>&1 ) "
176
+ }
177
+
178
+ run_container ()
179
+ {
180
+ create_clean_local_volume
176
181
177
- echo -n " Starting container"
182
+ echo -n " Starting standard container"
178
183
prettyPrintOrExitOnError $? " $( docker run --name=" $LOCAL_CONTAINER_NAME " -d -p 127.0.0.1:8998:8983 -v " $LOCAL_VOLUME_NAME " :" $DEFAULT_IMAGE_VOLUME_EXPORT_PATH " " $LOCAL_IMAGE_NAME " 2>&1 ) "
179
184
}
180
185
@@ -349,7 +354,9 @@ assertCoresAreSwitchableViaEnvVar ()
349
354
echo -e " \n${LIGHT_CYAN} Check the cores are disabled except desired by \$ TYPO3_SOLR_ENABLED_CORES env:${NC} "
350
355
cleanUp
351
356
352
- echo -n " Starting container"
357
+ create_clean_local_volume
358
+
359
+ echo -n " Starting custom container: with --env TYPO3_SOLR_ENABLED_CORES='german english danish'"
353
360
prettyPrintOrExitOnError $? " $( docker run --env TYPO3_SOLR_ENABLED_CORES=' german english danish' --name=" $LOCAL_CONTAINER_NAME " -d -p 127.0.0.1:8998:8983 -v " $LOCAL_VOLUME_NAME " :" $DEFAULT_IMAGE_VOLUME_EXPORT_PATH " " $LOCAL_IMAGE_NAME " 2>&1 ) "
354
361
355
362
ENABLED_CORES=(
You can’t perform that action at this time.
0 commit comments