Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
path fixes and Windows python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larryk85 committed Aug 18, 2022
1 parent 48591c8 commit ef1c6b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.win
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN mv my_init /sbin
RUN ./bootstrap_env.sh
RUN ./setup_system.sh

RUN mkdir /home/www-data/nodes
RUN mkdir -p /home/www-data/nodes
RUN cp /app/config.ini /home/www-data/config.ini

# thanks to github.com/phusion
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off

SET mypath=%~dp0
docker build --no-cache -f Dockerfile.win -t dune %mypath%
docker build -f Dockerfile.win -t dune %mypath%
15 changes: 14 additions & 1 deletion dune.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
@echo off

SET mypath=%~dp0
python3 %mypath%\src\dune %*

WHERE /q python3
IF ERRORLEVEL 1 (
WHERE /q python
IF ERRORLEVEL 1 (
ECHO "Python/3 was not found, please install."
EXIT /B
) ELSE (
python %mypath%\src\dune %*
)
) ELSE (
python3 %mypath%\src\dune %*
)

0 comments on commit ef1c6b7

Please sign in to comment.