update docker + fix modelpath
This commit is contained in:
parent
f187bcd2d3
commit
589b8d83bd
2 changed files with 11 additions and 8 deletions
|
|
@ -25,11 +25,13 @@ run(){
|
||||||
-e MULTIUSER=enabled \
|
-e MULTIUSER=enabled \
|
||||||
-e FEDERATION=enabled \
|
-e FEDERATION=enabled \
|
||||||
-e THEME=vapor \
|
-e THEME=vapor \
|
||||||
|
-e NO_OVERLAYFS=true \
|
||||||
|
-e NO_DEFAULTDB=true \
|
||||||
-e PUBLIC_HOSTNAME=localhost \
|
-e PUBLIC_HOSTNAME=localhost \
|
||||||
-e PUBLIC_PORT=80 \
|
-e PUBLIC_PORT=80 \
|
||||||
--cap-add SYS_ADMIN --security-opt apparmor:unconfined --device /dev/fuse \
|
--cap-add SYS_ADMIN --security-opt apparmor:unconfined --device /dev/fuse \
|
||||||
xrforge
|
ghcr.io/manyfold3d/manyfold-solo:latest
|
||||||
#ghcr.io/manyfold3d/manyfold-solo:latest
|
#xrforge
|
||||||
}
|
}
|
||||||
|
|
||||||
overlayfs(){
|
overlayfs(){
|
||||||
|
|
@ -100,13 +102,13 @@ set_theme(){
|
||||||
|
|
||||||
set_modelpath(){
|
set_modelpath(){
|
||||||
echocolor "[$APPNAME]" "enforcing modelpath"
|
echocolor "[$APPNAME]" "enforcing modelpath"
|
||||||
debug sqlite3 /config/manyfold.sqlite3 "UPDATE settings SET value = '{tags}/{modelName}{modelId}' WHERE var == 'model_path_template';"
|
debug sqlite3 /config/manyfold.sqlite3 "UPDATE settings SET value = replace('--- \"{creator}/{modelName}/{modelId}\"\n','\n',char(10)) WHERE var == 'model_path_template';"
|
||||||
}
|
}
|
||||||
|
|
||||||
rename_app(){
|
rename_app(){
|
||||||
echocolor "[$APPNAME]" "renaming manyfold to $APPNAME"
|
echocolor "[$APPNAME]" "renaming manyfold to $APPNAME"
|
||||||
sed -i 's/title: Manyfold/title: '$APPNAME'/g' /usr/src/app/config/locales/*.yml
|
sed -i 's/title: Manyfold/title: '$APPNAME'/g' /usr/src/app/config/locales/*.yml
|
||||||
sed -i 's|powered_by_html:.*|powered_by_html: Powered by <a href="https://manifold.app" target="_blank">Manyfold</a>, <a href="https://xrfragment.org">XR Fragments</a> and <a href="https://forgejo.isvery.ninja/coderofsalvation/xrforge">XR Forge</a>|g' /usr/src/app/config/locales/*.yml
|
sed -i 's|powered_by_html:.*|powered_by_html: Powered by <a href="https://forgejo.isvery.ninja/coderofsalvation/xrforge">XR Forge</a>, <a href="https://manifold.app" target="_blank">Manyfold</a>, <a href="https://xrfragment.org">XR Fragments</a> and <a href="https://nixos.org" target="_blank">NIX</a>|g' /usr/src/app/config/locales/*.yml
|
||||||
}
|
}
|
||||||
|
|
||||||
# The new entrypoint of the docker
|
# The new entrypoint of the docker
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,14 @@ let
|
||||||
vars = import ./vars.nix;
|
vars = import ./vars.nix;
|
||||||
|
|
||||||
# generate the reproducable blob below via:
|
# generate the reproducable blob below via:
|
||||||
# $ nix-shell -p nix-prefetch-docker --run 'nix-prefetch-docker ghcr.io/manyfold3d/manyfold-solo 0.117.0'
|
# $ nix-shell -p nix-prefetch-docker --run 'nix-prefetch-docker ghcr.io/manyfold3d/manyfold-solo 0.120.0'
|
||||||
|
|
||||||
manyfoldImage = pkgs.dockerTools.pullImage {
|
manyfoldImage = pkgs.dockerTools.pullImage {
|
||||||
imageName = "ghcr.io/manyfold3d/manyfold-solo";
|
imageName = "ghcr.io/manyfold3d/manyfold-solo";
|
||||||
imageDigest = "sha256:95ae855376eb075bd718018e09eeee2735eece87d26c392abd0d63c38c8db44b";
|
imageDigest = "sha256:84524b9cf8c8e6467ca4938e58ff65a2a5d8c507fd44e7056003b3e2dcffb266";
|
||||||
sha256 = "0na33qdll24cp4lc77dcmf3pi5s521gjrfqlahq52aw5vjapknfp";
|
sha256 = "0sb4icq19vqsnhi01jbaqqr2k66bfma08hp0rm0y4hdnbqsscxvd";
|
||||||
finalImageName = "ghcr.io/manyfold3d/manyfold-solo";
|
finalImageName = "ghcr.io/manyfold3d/manyfold-solo";
|
||||||
finalImageTag = "0.117.0";
|
finalImageTag = "0.120.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue