You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echo off &setlocalEnableDelayedExpansionsetlocalREM # Determine which Docker image to run.if"%SQITCH_IMAGE%"=="" (
setSQITCH_IMAGE=sqitch/sqitch:latest
)
echo%SQITCH_IMAGE%REM set SQITCH_IMAGE=sqitch/sqitch:latestREM # Set up required pass-through variables.REM set user=whoamiFOR /F "tokens=*"%%gIN ('whoami') do (SET user=%%g)
setpassopt= -e "SQITCH_ORIG_SYSUSER=%username%"FOR /F "tokens=*"%%gIN ('hostname') do (SET machinehostname=%%g)
setpassopt=%passopt% -e "SQITCH_ORIG_EMAIL=%username%@%machinehostname%"FOR /F "tokens=*"%%gIN ('tzutil /g') do (SET TZ=%%g)
setpassopt=%passopt% -e "TZ=%TZ%"if"%LESS%"=="" (
setLESS=--R
)
if"%LESS%"=="" (
setpassopt=%passopt% -e "LESS=%LESS%"echo%passopt%REM # Iterate over optional Sqitch and engine variables.REM for var in \REM SQITCH_CONFIG SQITCH_USERNAME SQITCH_PASSWORD SQITCH_FULLNAME SQITCH_EMAIL SQITCH_TARGET \REM DBI_TRACE \REM PGUSER PGPASSWORD PGHOST PGHOSTADDR PGPORT PGDATABASE PGSERVICE PGOPTIONS PGSSLMODE PGREQUIRESSL PGSSLCOMPRESSION PGREQUIREPEER PGKRBSRVNAME PGKRBSRVNAME PGGSSLIB PGCONNECT_TIMEOUT PGCLIENTENCODING PGTARGETSESSIONATTRS \REM MYSQL_PWD MYSQL_HOST MYSQL_TCP_PORT \REM TNS_ADMIN TWO_TASK ORACLE_SID \REM ISC_USER ISC_PASSWORD \REM VSQL_HOST VSQL_PORT VSQL_USER VSQL_PASSWORD VSQL_SSLMODE \REM SNOWSQL_ACCOUNT SNOWSQL_USER SNOWSQL_PWD SNOWSQL_HOST SNOWSQL_PORT SNOWSQL_DATABASE SNOWSQL_REGION SNOWSQL_WAREHOUSE SNOWSQL_PRIVATE_KEY_PASSPHRASEREM doREM if [ -n "${!var}" ]; thenREM passopt+=(-e $var)REM fiREM doneREM # Determine the name of the container home directory.sethomedst=/home
REM if [ $(id -u ${user}) -eq 0 ]; thenREM homedst=/rootREM fiREM # Set HOME, since the user ID likely won't be the same as for the sqitch user.setpassopt=%passopt% -e "HOME=%homedst%"REM # Run the container with the current and home directories mounted.
docker run -it --rm --network host \
--mount "type=bind,src=$(pwd),dst=/repo" \
--mount "type=bind,src=%HOME%,dst=%homedst%" \
"%passopt%""%SQITCH_IMAGE%"echo end
endlocal
The text was updated successfully, but these errors were encountered:
https://github.com/sqitchers/docker-sqitch/blob/main/docker-sqitch.sh
throws error
my manual progress so far
The text was updated successfully, but these errors were encountered: