mirror of
https://github.com/soup-bowl/opensimulator-docker.git
synced 2026-07-30 11:33:45 +00:00
Region definable.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ LABEL org.opencontainers.image.authors="code@soupbowl.io"
|
||||
LABEL org.opencontainers.image.source="https://github.com/soup-bowl/opensimulator-docker"
|
||||
LABEL org.opencontainers.image.licenses="MIT"
|
||||
|
||||
RUN apt-get update && apt-get install -y screen
|
||||
RUN apt-get update && apt-get install -y screen uuid-runtime
|
||||
|
||||
RUN mkdir /opt/opensim-tmp \
|
||||
&& curl http://opensimulator.org/dist/opensim-0.9.2.1.tar.gz | tar xzf - -C /opt/opensim-tmp \
|
||||
|
||||
@@ -11,16 +11,11 @@
|
||||
DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
|
||||
AssetLoaderArgs = "assets/AssetSets.xml"
|
||||
|
||||
[GridService]
|
||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||
Region_Foobar = "DefaultRegion, FallbackRegion"
|
||||
ExportSupported = true
|
||||
|
||||
[LibraryModule]
|
||||
LibraryName = "Library"
|
||||
|
||||
[LoginService]
|
||||
WelcomeMessage = "Running OpenSimulator in Standalone Grid mode."
|
||||
WelcomeMessage = "OpenSimulator is running!"
|
||||
SRV_HomeURI = "${Hypergrid|HomeURI}"
|
||||
SRV_InventoryServerURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
SRV_AssetServerURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
@@ -31,7 +26,7 @@
|
||||
|
||||
[GridInfoService]
|
||||
login = ${Const|BaseURL}:${Const|PublicPort}/
|
||||
gridname = "OpenSimulator Sandbox Standalone"
|
||||
gridname = "OpenSimulator Instance"
|
||||
gridnick = "osss"
|
||||
welcome = ${Const|BaseURL}:8080
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@ if [ ! -e OpenSim.ini ]; then
|
||||
StorageProvider = \"OpenSim.Data.MySQL.dll\"
|
||||
ConectionString = \"Data Source=${MYSQL_SERVER:-db};Database=${MYSQL_DATABASE:-opensim};User ID=${MYSQL_USER:-root};Password=${MYSQL_PASSWORD};Old Guids=true;\"" >> OpenSim.ini
|
||||
fi
|
||||
cat OpenSim.ini
|
||||
exit 330
|
||||
fi
|
||||
|
||||
if [ ! -e config-include/StandaloneCommon.ini ]; then
|
||||
@@ -34,12 +32,25 @@ if [ ! -e config-include/StandaloneCommon.ini ]; then
|
||||
else
|
||||
echo " Include-Storage = \"config-include/storage/SQLiteStandalone.ini\"" >> config-include/StandaloneCommon.ini
|
||||
fi
|
||||
|
||||
echo "[GridService]
|
||||
StorageProvider = \"OpenSim.Data.Null.dll:NullRegionData\"
|
||||
Region_${REGION_NAME:-Region} = \"DefaultRegion, FallbackRegion\"
|
||||
ExportSupported = true" >> config-include/StandaloneCommon.ini
|
||||
|
||||
if [ -n "${GRID_WELCOME}" ]; then
|
||||
sed -i -e "s/OpenSimulator is running!/${GRID_WELCOME}/g" config-include/StandaloneCommon.ini
|
||||
fi
|
||||
|
||||
if [ -n "${GRID_NAME}" ]; then
|
||||
sed -i -e "s/OpenSimulator Instance/${GRID_NAME}/g" config-include/StandaloneCommon.ini
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ `find Regions -maxdepth 1 -name '*.ini' | wc -l` -eq 0 ]; then
|
||||
echo >&2 "INFO: No region details found, pulling one together."
|
||||
|
||||
echo "[Foobar]
|
||||
echo "[${REGION_NAME:-Region}]
|
||||
RegionUUID = $(uuidgen)
|
||||
Location = 1000,1000
|
||||
InternalAddress = 0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user