Skip to content

Commit 270ce2b

Browse files
committed
chore: Update local docker scripts
1 parent 52b3fc8 commit 270ce2b

39 files changed

Lines changed: 133 additions & 50 deletions

‎scripts/copy_src.sh‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
# Copyright (c) 2023, MUSEN Development Team.
4+
# Copyright (c) 2026, DyssolTEC GmbH.
5+
# All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
6+
# See LICENSE file for license and warranty information.
7+
8+
# Copy sources to /mnt/musen_src on the container's native filesystem.
9+
10+
SCRIPT=$(readlink -f "$0")
11+
SCRIPTPATH=$(dirname "$SCRIPT")
12+
13+
mkdir -p /mnt/musen_src
14+
tar -cf - -C "${SCRIPTPATH}/.." \
15+
--exclude=.git \
16+
--exclude=.vs \
17+
--exclude=build \
18+
--exclude=Documentation \
19+
--exclude=ExternalLibraries \
20+
--exclude=Installers/Compiler \
21+
--exclude=install \
22+
--exclude=Installers/Installers \
23+
--exclude=MUSEN_Linux \
24+
--exclude=x64 \
25+
. | tar -xf - -C /mnt/musen_src

‎scripts/copy_to_home.sh‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎scripts/docker/build_musen.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ cmake /mnt/musen_src \
2020
-DMUSEN_INSTALL_DATA=OFF
2121
cmake --build . --parallel $(nproc)
2222
cmake --install .
23-
24-
# Smoke test
2523
~/install/bin/CMUSEN -models

‎scripts/docker/debian11.build.bat‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
:: Copyright (c) 2026, DyssolTEC GmbH.
2-
:: All rights reserved. This file is part of MUSEN framework. See LICENSE file for license and warranty information.
2+
:: All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
:: See LICENSE file for license and warranty information.
34

45
docker build -f debian11.dockerfile -t musen.debian11 .

‎scripts/docker/debian11.dockerfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2026, DyssolTEC GmbH.
2+
# All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
# See LICENSE file for license and warranty information.
4+
15
FROM debian:11
26
LABEL description="Debian 11 to build MUSEN"
37
LABEL org.opencontainers.image.source="https://github.com/msolids/musen"

‎scripts/docker/debian11.run.bat‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:: Copyright (c) 2026, DyssolTEC GmbH.
2-
:: All rights reserved. This file is part of MUSEN framework. See LICENSE file for license and warranty information.
2+
:: All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
:: See LICENSE file for license and warranty information.
34

4-
docker run -it --rm --volume=%cd%/../../:/mnt/musen_src:ro musen.debian11:latest
5+
docker run -it --rm --volume=%cd%/../../:/mnt/src_host:ro musen.debian11:latest bash -c "/mnt/src_host/scripts/copy_src.sh && exec bash"
56
pause

‎scripts/docker/debian12.build.bat‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
:: Copyright (c) 2026, DyssolTEC GmbH.
2-
:: All rights reserved. This file is part of MUSEN framework. See LICENSE file for license and warranty information.
2+
:: All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
:: See LICENSE file for license and warranty information.
34

45
docker build -f debian12.dockerfile -t musen.debian12 .

‎scripts/docker/debian12.dockerfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2026, DyssolTEC GmbH.
2+
# All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
# See LICENSE file for license and warranty information.
4+
15
FROM debian:12
26
LABEL description="Debian 12 to build MUSEN"
37
LABEL org.opencontainers.image.source="https://github.com/msolids/musen"

‎scripts/docker/debian12.run.bat‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:: Copyright (c) 2026, DyssolTEC GmbH.
2-
:: All rights reserved. This file is part of MUSEN framework. See LICENSE file for license and warranty information.
2+
:: All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
:: See LICENSE file for license and warranty information.
34

4-
docker run -it --rm --volume=%cd%/../../:/mnt/musen_src:ro musen.debian12:latest
5+
docker run -it --rm --volume=%cd%/../../:/mnt/src_host:ro musen.debian12:latest bash -c "/mnt/src_host/scripts/copy_src.sh && exec bash"
56
pause

‎scripts/docker/debian13.build.bat‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
:: Copyright (c) 2026, DyssolTEC GmbH.
2-
:: All rights reserved. This file is part of MUSEN framework. See LICENSE file for license and warranty information.
2+
:: All rights reserved. This file is part of MUSEN framework https://github.com/msolids/musen.
3+
:: See LICENSE file for license and warranty information.
34

45
docker build -f debian13.dockerfile -t musen.debian13 .

0 commit comments

Comments
 (0)