Untitled
unknown
powershell
2 years ago
23 kB
6
Indexable
C:\Temp\QMetryApp\QMetryApp>qmetry.bat C:\Temp\QMetryApp\QMetryApp>setlocal EnableDelayedExpansion C:\Temp\QMetryApp\QMetryApp>title QMetry Application Installation C:\Temp\QMetryApp\QMetryApp>if exist .env (DEL .env ) C:\Temp\QMetryApp\QMetryApp>docker login [2022-12-08T14:05:35.162982100Z][docker-credential-desktop][W] Windows version might not be up-to-date: The system cannot find the file specified. Authenticating with existing credentials... [2022-12-08T14:05:36.903845900Z][docker-credential-desktop][W] Windows version might not be up-to-date: The system cannot find the file specified. Login Succeeded [2022-12-08T14:05:37.009544700Z][docker-credential-desktop][W] Windows version might not be up-to-date: The system cannot find the file specified. Logging in with your password grants your terminal complete access to your account. For better security, log in with a limited-privilege personal access token. Learn more at https://docs.docker.com/go/access-tokens/ C:\Temp\QMetryApp\QMetryApp>IF 0 GEQ 1 ( echo Login with docker repository has been failed. Please run installation again with correct docker credentials! EXIT /B ) C:\Temp\QMetryApp\QMetryApp>set /p QMETRY_VOLUME_PATH="Please enter QMetry application directory:" Please enter QMetry application directory:C:\qmetryapp C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp" A subdirectory or file C:\qmetryapp already exists. C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/attachments" C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/import" C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/export" C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/saml" C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/license" C:\Temp\QMetryApp\QMetryApp>mkdir "C:\qmetryapp/logs" C:\Temp\QMetryApp\QMetryApp>set QMETRY_ATTACHMENT_PATH=C:\qmetryapp/attachments C:\Temp\QMetryApp\QMetryApp>set QMETRY_IMPORT_PATH=C:\qmetryapp/import C:\Temp\QMetryApp\QMetryApp>set QMETRY_EXPORT_PATH=C:\qmetryapp/export C:\Temp\QMetryApp\QMetryApp>set QMETRY_SAML_PATH=C:\qmetryapp/saml C:\Temp\QMetryApp\QMetryApp>set QMETRY_LICENSE_PATH=C:\qmetryapp/license C:\Temp\QMetryApp\QMetryApp>set QMETRY_LOG_PATH=C:\qmetryapp/logs C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/attachments --opt o=bind qmetry_attachments qmetry_attachments C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/import --opt o=bind qmetry_import qmetry_import C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/export --opt o=bind qmetry_export qmetry_export C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/saml --opt o=bind qmetry_saml qmetry_saml C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/license --opt o=bind qmetry_license qmetry_license C:\Temp\QMetryApp\QMetryApp>docker volume create --driver local --opt type=none --opt device=C:\qmetryapp/logs --opt o=bind qmetry_log qmetry_log C:\Temp\QMetryApp\QMetryApp>echo "###############################################################" "###############################################################" C:\Temp\QMetryApp\QMetryApp>echo "# #" "# #" C:\Temp\QMetryApp\QMetryApp>echo "# QMetry Web #" "# QMetry Web #" C:\Temp\QMetryApp\QMetryApp>echo "# #" "# #" C:\Temp\QMetryApp\QMetryApp>echo "###############################################################" "###############################################################" C:\Temp\QMetryApp\QMetryApp>echo DB_HOST=qmetry_rds_1 1>>.env C:\Temp\QMetryApp\QMetryApp>echo DB_PORT=3306 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter QMetry database schema (qmetry):" Enter QMetry database schema (qmetry):qmetry C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" set userinput=qmetry C:\Temp\QMetryApp\QMetryApp>echo DB_SCHEMA=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter QMetry database user (root):" Enter QMetry database user (root):root C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" set userinput=root C:\Temp\QMetryApp\QMetryApp>echo DB_USER=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter QMetry database password for the user mentioned above:" Enter QMetry database password for the user mentioned above:Uk6ZJ29J$6vuH! C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" goto :qmetrydbpassword C:\Temp\QMetryApp\QMetryApp>echo DB_PASS='!userinput!' 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter Email for QMetry admin user:" Enter Email for QMetry admin user:tis@insel.ch C:\Temp\QMetryApp\QMetryApp>Call :CheckValidMail !userinput! C:\Temp\QMetryApp\QMetryApp>( echo If IsValidEmail("tis@insel.ch") = True Then echo Wscript.Quit(0) echo Else echo Wscript.Quit(1) echo End If echo Function IsValidEmail(strEAddress) echo Dim objRegExpr echo Set objRegExpr = New RegExp echo objRegExpr.Pattern = "^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[\w-\.]*[a-zA-Z0-9]\.[a-zA-Z]{2,7}$" echo objRegExpr.Global = True echo objRegExpr.IgnoreCase = False echo IsValidEmail = objRegExpr.Test(strEAddress) echo Set objRegExpr = Nothing echo End Function ) 1>"C:\Users\a0334614\AppData\Local\Temp\qmetry.vbs" C:\Temp\QMetryApp\QMetryApp>Cscript /nologo "C:\Users\a0334614\AppData\Local\Temp\qmetry.vbs" C:\Temp\QMetryApp\QMetryApp>Exit /b C:\Temp\QMetryApp\QMetryApp>IF "0" EQU "0" (echo QMetry_EMAIL=!userinput! 1>>.env ) else ( echo Email address is invalid, Please try again. goto :qmetryuseremail ) C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter password for QMetry admin user:" Enter password for QMetry admin user:YPb9yUÑUjT C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" goto :qmetryapppassword C:\Temp\QMetryApp\QMetryApp>echo QMetry_PWD=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter Min. Heap Memory for web server in GB (2):" Enter Min. Heap Memory for web server in GB (2):2 C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" set userinput=2 C:\Temp\QMetryApp\QMetryApp>echo MIN_HEAP=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter Max. Heap Memory for web server in GB (4):" Enter Max. Heap Memory for web server in GB (4):4 C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" set userinput=4 C:\Temp\QMetryApp\QMetryApp>echo MAX_HEAP=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>set userinput= C:\Temp\QMetryApp\QMetryApp>set /p userinput="Enter QMetry Database Connection Pool Size (100):" Enter QMetry Database Connection Pool Size (100):100 C:\Temp\QMetryApp\QMetryApp>if "!userinput!" == "" set userinput=100 C:\Temp\QMetryApp\QMetryApp>echo POOL_SIZE=!userinput! 1>>.env C:\Temp\QMetryApp\QMetryApp>echo Configuring QMetry Web Server parameters... Configuring QMetry Web Server parameters... C:\Temp\QMetryApp\QMetryApp>echo. C:\Temp\QMetryApp\QMetryApp>timeout 5 Waiting for 0 seconds, press a key to continue ... C:\Temp\QMetryApp\QMetryApp>docker-compose -f qmetry-rds.yml up -d unknown shorthand flag: 'f' in -f See 'docker --help'. Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "C:\\Users\\a0334614\\.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "C:\\Users\\a0334614\\.docker\\ca.pem") --tlscert string Path to TLS certificate file (default "C:\\Users\\a0334614\\.docker\\cert.pem") --tlskey string Path to TLS key file (default "C:\\Users\\a0334614\\.docker\\key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit Management Commands: builder Manage builds config Manage Docker configs container Manage containers context Manage contexts image Manage images manifest Manage Docker image manifests and manifest lists network Manage networks node Manage Swarm nodes plugin Manage plugins secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ C:\Temp\QMetryApp\QMetryApp>timeout 5 Waiting for 0 seconds, press a key to continue ... C:\Temp\QMetryApp\QMetryApp>docker-compose -f qmetry-app.yml up unknown shorthand flag: 'f' in -f See 'docker --help'. Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "C:\\Users\\a0334614\\.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "C:\\Users\\a0334614\\.docker\\ca.pem") --tlscert string Path to TLS certificate file (default "C:\\Users\\a0334614\\.docker\\cert.pem") --tlskey string Path to TLS key file (default "C:\\Users\\a0334614\\.docker\\key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit Management Commands: builder Manage builds config Manage Docker configs container Manage containers context Manage contexts image Manage images manifest Manage Docker image manifests and manifest lists network Manage networks node Manage Swarm nodes plugin Manage plugins secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ C:\Temp\QMetryApp\QMetryApp>docker update --restart=always qmetry_app_1 Error response from daemon: No such container: qmetry_app_1 C:\Temp\QMetryApp\QMetryApp>docker-compose -f qmetry-app.yml start unknown shorthand flag: 'f' in -f See 'docker --help'. Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "C:\\Users\\a0334614\\.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "C:\\Users\\a0334614\\.docker\\ca.pem") --tlscert string Path to TLS certificate file (default "C:\\Users\\a0334614\\.docker\\cert.pem") --tlskey string Path to TLS key file (default "C:\\Users\\a0334614\\.docker\\key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit Management Commands: builder Manage builds config Manage Docker configs container Manage containers context Manage contexts image Manage images manifest Manage Docker image manifests and manifest lists network Manage networks node Manage Swarm nodes plugin Manage plugins secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ C:\Temp\QMetryApp\QMetryApp>qmetry-app.exe install 2022-12-08 15:10:19,462 INFO - Installing the service with id 'qmetry-app' C:\Temp\QMetryApp\QMetryApp>qmetry-app.exe start 2022-12-08 15:10:19,843 INFO - Starting the service with id 'qmetry-app' C:\Temp\QMetryApp\QMetryApp>echo QMetry Application Installation is complete. QMetry Application Installation is complete. C:\Temp\QMetryApp\QMetryApp>( echo If IsValidEmail("") = True Then echo Wscript.Quit(0) echo Else echo Wscript.Quit(1) echo End If echo Function IsValidEmail(strEAddress) echo Dim objRegExpr echo Set objRegExpr = New RegExp echo objRegExpr.Pattern = "^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[\w-\.]*[a-zA-Z0-9]\.[a-zA-Z]{2,7}$" echo objRegExpr.Global = True echo objRegExpr.IgnoreCase = False echo IsValidEmail = objRegExpr.Test(strEAddress) echo Set objRegExpr = Nothing echo End Function ) 1>"C:\Users\a0334614\AppData\Local\Temp\qmetry.vbs" C:\Temp\QMetryApp\QMetryApp>Cscript /nologo "C:\Users\a0334614\AppData\Local\Temp\qmetry.vbs" C:\Temp\QMetryApp\QMetryApp>Exit /b C:\Temp\QMetryApp\QMetryApp>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES C:\Temp\QMetryApp\QMetryApp>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES C:\Temp\QMetryApp\QMetryApp>cd C:\Qmetryapp C:\qmetryapp>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES C:\qmetryapp>docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES C:\qmetryapp>docker images -a REPOSITORY TAG IMAGE ID CREATED SIZE C:\qmetryapp>docker volume ls DRIVER VOLUME NAME local qmetry_attachments local qmetry_export local qmetry_import local qmetry_license local qmetry_log local qmetry_saml C:\qmetryapp>
Editor is loading...