mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-30 03:12:41 +00:00
Have working standalone and standalone-sql configurations for standard opensim image.
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#! /bin/bash
|
|
# Build docker images for running a standalone version of OpenSimulator
|
|
|
|
BUILD_DATE=$(date "+%Y%m%d.%H%M")
|
|
BUILD_DAY=$(date "+%Y%m%d")
|
|
OS_DOCKER_VERSION=$(cat ../VERSION.txt)
|
|
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
GIT_COMMIT=$(git rev-parse HEAD)
|
|
GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)
|
|
|
|
# Copy the run-scripts into the local directory here since the Docker build
|
|
# only knowns the context of this directory
|
|
rm -rf temp-run-scripts
|
|
cp -r ../run-scripts temp-run-scripts
|
|
|
|
# Note that the '--no-cache' is here to force refetching of the OpenSimulator git sources
|
|
# --no-cache
|
|
docker build \
|
|
--build-arg BUILD_DATE=$BUILD_DATE \
|
|
--build-arg BUILD_DAY=$BUILD_DAY \
|
|
--build-arg OS_DOCKER_VERSION=$OS_DOCKER_VERSION \
|
|
--build-arg OS_DOCKER_GIT_BRANCH=$GIT_BRANCH \
|
|
--build-arg OS_DOCKER_GIT_COMMIT=$GIT_COMMIT \
|
|
--build-arg OS_DOCKER_GIT_COMMIT_SHORT=$GIT_COMMIT_SHORT \
|
|
-t opensim-opensim \
|
|
-f Dockerfile-opensim \
|
|
.
|
|
|
|
# Remove the temporarily copied run-scripts to reduce any confusion
|
|
rm -rf temp-run-scripts
|