2015-05-29 22:56:28 +02:00
|
|
|
# global configuration needed by some of the included makefiles
|
|
|
|
PSRC = ../src/monad/monad/src
|
|
|
|
MONAD_EXT=../src/monad-ext
|
|
|
|
|
2015-06-02 00:49:30 +02:00
|
|
|
# this variable is needed by module specific include makefiles below
|
|
|
|
ADMIN_GIT_ROOT=../src/monad
|
|
|
|
|
|
|
|
phony_all: all
|
|
|
|
|
2015-05-29 22:56:28 +02:00
|
|
|
# include all the external makefiles
|
2015-06-03 19:33:16 +02:00
|
|
|
|
|
|
|
# these should go away with the makefile restructuring
|
|
|
|
include assembly-load-context.mk
|
|
|
|
|
|
|
|
# main references to the CoreCLR reference assemblies
|
2015-05-29 22:56:28 +02:00
|
|
|
include coreref.mk
|
2015-06-03 19:33:16 +02:00
|
|
|
|
|
|
|
# make file which adds things that are necessary for the platform we are building for
|
|
|
|
include platform.mk
|
|
|
|
|
2015-06-12 17:29:05 +02:00
|
|
|
# builds unit tests
|
|
|
|
include tests.mk
|
|
|
|
|
2015-06-18 05:36:35 +02:00
|
|
|
# powershell-run is the main powershell executable
|
|
|
|
include powershell-run.mk
|
|
|
|
|
2015-06-03 19:33:16 +02:00
|
|
|
# These are the main PS dlls:
|
|
|
|
# - System.Management.Automation.dll (the main PS dll)
|
|
|
|
# - commands/modules (they contain cmdlets): management and utility
|
|
|
|
# - Microsoft.Management.Infrastructure.dll (the first dll in the remoting code paths)
|
2015-06-04 00:16:31 +02:00
|
|
|
include system-automation.mk
|
2015-05-29 22:56:28 +02:00
|
|
|
include commands-management.mk
|
|
|
|
include commands-utility.mk
|
2015-06-04 21:41:18 +02:00
|
|
|
include management-infrastructure.mk
|
2015-07-10 01:02:58 +02:00
|
|
|
include security.mk
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
NUGETREF=-r:System.Reflection.Metadata.dll -r:System.Collections.Immutable.dll
|
|
|
|
|
|
|
|
MI_NATIVE_REF=-r:dotnetlibs/Microsoft.Management.Infrastructure.Native.dll
|
|
|
|
MI_REF_ASSEMBLY=-r:$(MONAD_EXT)/PS/PS_refs_modil/microsoft.management.infrastructure.metadata_dll
|
2015-06-02 00:49:30 +02:00
|
|
|
MI_ASSEMBLY=dotnetlibs/Microsoft.Management.Infrastructure.dll
|
|
|
|
MI_REF=-r:$(MI_ASSEMBLY)
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
PRODUCT_BASE_REFS=${COREREF}
|
|
|
|
PRODUCT_MI_REFS=${COREREF} ${MI_NATIVE_REF}
|
2015-07-01 04:24:53 +02:00
|
|
|
PRODUCT_PS_REFS=${COREREF} ${MI_REF} -r:dotnetlibs/$(ASSEMBLY_LOAD_CONTEXT_TARGET)
|
2015-05-29 22:56:28 +02:00
|
|
|
PRODUCT_COMMANDS_REFS=${COREREF} -r:dotnetlibs/System.Management.Automation.dll
|
|
|
|
|
|
|
|
MCSOPTS_BASE=-unsafe -nostdlib -noconfig -define:CORECLR -define:_CORECLR
|
|
|
|
MCSOPTS_MI=${MCSOPTS_BASE} -target:library
|
|
|
|
MCSOPTS_LIB=${MCSOPTS_BASE} -target:library
|
|
|
|
MCSOPTS_PS=${STRING_RESOURCES_ORIG} ${MCSOPTS_BASE} -target:library
|
|
|
|
SRCS_ALL=${STRING_RESOURCES} ${SRCS}
|
|
|
|
|
2015-06-10 20:12:08 +02:00
|
|
|
# compilers
|
|
|
|
# - Roslyn's csc is used for all the PS code
|
|
|
|
# - Mono's mcs is used for build helper tools
|
|
|
|
CSC=mono Microsoft.Net.ToolsetCompilers.*/tools/csc.exe
|
|
|
|
MCS=mcs
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-07-10 01:02:58 +02:00
|
|
|
all: dotnetlibs/System.Management.Automation.dll $(POWERSHELL_RUN_TARGETS) dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/$(ASSEMBLY_LOAD_CONTEXT_TARGET)
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-06-10 20:11:41 +02:00
|
|
|
# this is the build rule for SMA.dll
|
2015-06-04 00:16:31 +02:00
|
|
|
dotnetlibs/System.Management.Automation.dll: ${SYS_AUTO_SRCS} dotnetlibs/Microsoft.Management.Infrastructure.dll ../src/assembly-info/System.Management.Automation.assembly-info.cs dotnetlibs/$(ASSEMBLY_LOAD_CONTEXT_TARGET) $(PLATFORM_SRCS) ${SYS_AUTO_RES_SRCS} ${SYS_AUTO_RES_CS_SRCS}
|
2015-06-10 20:12:08 +02:00
|
|
|
$(CSC) -out:$@ ${MCSOPTS_LIB} ${PRODUCT_PS_REFS} ${SYS_AUTO_SRCS} ${SYS_AUTO_RES_REF} ${SYS_AUTO_RES_CS_SRCS} $(PLATFORM_SRCS) ../src/assembly-info/System.Management.Automation.assembly-info.cs
|
2015-06-04 21:41:18 +02:00
|
|
|
|
2015-06-10 20:11:41 +02:00
|
|
|
# this is the build rule for MMI.dll
|
2015-06-04 21:41:18 +02:00
|
|
|
dotnetlibs/Microsoft.Management.Infrastructure.dll: ${MAN_INFRA_SRCS} dotnetlibs/Microsoft.Management.Infrastructure.Native.dll ../src/assembly-info/Microsoft.Management.Infrastructure.assembly-info.cs $(MAN_INFRA_RES_SRCS) $(MAN_INFRA_RES_CS_SRCS)
|
2015-06-10 20:12:08 +02:00
|
|
|
$(CSC) -out:$@ $(MCSOPTS_MI) $(PRODUCT_MI_REFS) $(MAN_INFRA_SRCS) $(MAN_INFRA_RES_REF) $(MAN_INFRA_RES_CS_SRCS) ../src/assembly-info/Microsoft.Management.Infrastructure.assembly-info.cs
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
# Commands
|
|
|
|
|
2015-07-10 01:01:03 +02:00
|
|
|
dotnetlibs/Microsoft.PowerShell.Commands.Management.dll: ${COMMANDS_MANAGEMENT_SRCS} dotnetlibs/System.Management.Automation.dll ${COMMANDS_MANAGEMENT_RES_SRCS} ${COMMANDS_MANAGEMENT_RES_CS_SRCS} $(MI_ASSEMBLY)
|
|
|
|
$(CSC) -out:$@ ${MCSOPTS_LIB} ${PRODUCT_COMMANDS_REFS} ${COMMANDS_MANAGEMENT_SRCS} ${COMMANDS_MANAGEMENT_RES_CS_SRCS} $(COMMANDS_MANAGEMENT_RES_REF) $(MI_REF)
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-07-10 01:01:03 +02:00
|
|
|
dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll: ${COMMANDS_UTILITY_SRCS} dotnetlibs/System.Management.Automation.dll ${COMMANDS_UTILITY_RES_SRCS} ${COMMANDS_UTILITY_RES_CS_SRCS}
|
|
|
|
$(CSC) -out:$@ ${MCSOPTS_LIB} ${PRODUCT_COMMANDS_REFS} ${COMMANDS_UTILITY_SRCS} ${COMMANDS_UTILITY_RES_CS_SRCS} $(COMMANDS_UTILITY_RES_REF)
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-07-10 01:02:58 +02:00
|
|
|
dotnetlibs/Microsoft.PowerShell.Security.dll: ${SECURITY_SRCS} dotnetlibs/System.Management.Automation.dll ${SECURITY_RES_SRCS} ${SECURITY_RES_CS_SRCS}
|
|
|
|
$(CSC) -out:$@ ${MCSOPTS_LIB} ${PRODUCT_COMMANDS_REFS} ${SECURITY_SRCS} ${SECURITY_RES_CS_SRCS} $(SECURITY_RES_REF)
|
|
|
|
|
2015-05-29 22:56:28 +02:00
|
|
|
# assembly load context
|
|
|
|
|
|
|
|
dotnetlibs/$(ASSEMBLY_LOAD_CONTEXT_TARGET): $(ASSEMBLY_LOAD_CONTEXT_SRCS)
|
2015-06-10 20:12:08 +02:00
|
|
|
$(CSC) -out:$@ ${MCSOPTS_LIB} ${PRODUCT_BASE_REFS} $(ASSEMBLY_LOAD_CONTEXT_SRCS)
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
# this will copy whatever the first version of the dll in the globber is
|
|
|
|
System.Reflection.Metadata.dll: System.Reflection.Metadata.*/lib/portable-net45+win8/System.Reflection.Metadata.dll
|
|
|
|
cp -f $< $@
|
|
|
|
|
|
|
|
# this will copy whatever the first version of the dll in the globber is
|
|
|
|
System.Collections.Immutable.dll: System.Collections.Immutable.*/lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.dll
|
|
|
|
cp -f $< $@
|
|
|
|
|
2015-06-29 21:57:32 +02:00
|
|
|
# this one is built from stubs
|
|
|
|
dotnetlibs/Microsoft.Management.Infrastructure.Native.dll: ../src/stubs/Microsoft.Management.Infrastructure.Native-stub.cs ../src/stubs/Microsoft.Management.Infrastructure.Native-stub-assembly-info.cs
|
|
|
|
$(CSC) -out:$@ $(MCSOPTS_LIB) $(PRODUCT_BASE_REFS) $^
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
MPATH=/usr/lib/mono/4.5/Facades
|
|
|
|
|
|
|
|
TypeCatalogGen.exe: ../src/monad/monad/nttargets/assemblies/core/PSAssemblyLoadContext/TypeCatalogGen/TypeCatalogGen.cs System.Reflection.Metadata.dll System.Collections.Immutable.dll
|
2015-06-10 20:12:08 +02:00
|
|
|
$(MCS) -out:$@ -target:exe ${NUGETREF} -pkg:dotnet -r:${MPATH}/System.Runtime.dll -r:${MPATH}/System.Reflection.Primitives.dll -r:${MPATH}/System.IO.dll $<
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
# generate the Core PS type catalog
|
|
|
|
# this comes from: ../src/monad/monad/nttargets/assemblies/core/PSAssemblyLoadContext/makefile.inc
|
|
|
|
CorePsTypeCatalog.cs: powershell-linux.inc TypeCatalogGen.exe System.Reflection.Metadata.dll System.Collections.Immutable.dll
|
|
|
|
LD_LIBRARY_PATH=. mono TypeCatalogGen.exe powershell-linux.inc $@ $(MONAD_EXT)/coreclr/TargetingPack
|
|
|
|
|
|
|
|
# the pinvoke library libps.so
|
|
|
|
|
|
|
|
libps-build/Makefile: ../src/monad-native/src/CMakeLists.txt
|
|
|
|
rm -rf libps-build
|
|
|
|
mkdir libps-build
|
|
|
|
# cached files can change the path to be incorrect, this must be cleaned
|
|
|
|
rm -f ../src/monad-native/src/CMakeCache.txt
|
|
|
|
rm -f ../src/monad-native/src/cmake_install.cmake
|
|
|
|
cd libps-build && cmake ../../src/monad-native/src/
|
|
|
|
|
|
|
|
dotnetlibs/libps.so dotnetlibs/monad_native: libps-build/Makefile
|
|
|
|
cd libps-build && make VERBOSE=0 && cp monad_native ../dotnetlibs && cp libps.so ../dotnetlibs
|
|
|
|
|
|
|
|
libps.so-test: dotnetlibs/libps.so dotnetlibs/monad_native
|
|
|
|
cd dotnetlibs && LD_LIBRARY_PATH=. ./monad_native
|
|
|
|
|
2015-06-11 00:02:11 +02:00
|
|
|
# this is a windows dll that is needed because CoreCLR tries to access
|
|
|
|
# registry functions that don't exist on Linux and there is no other good
|
|
|
|
# way of fixing this right now
|
|
|
|
# (TODO linux: this should be removed by addressing it in CoreCLR)
|
|
|
|
dotnetlibs/api-ms-win-core-registry-l1-1-0.dll: ../src/win-dll/lib-api-ms-win-core-registry-l1-1-0.c
|
|
|
|
gcc -o $@ -fPIC -shared -Wall $^
|
|
|
|
|
2015-05-29 22:56:28 +02:00
|
|
|
# this is the rule to copy over updated CoreCLR + .net libraries
|
|
|
|
dotnetlibs/corerun: $(MONAD_EXT)/coreclr/Release/corerun
|
|
|
|
cp -r $(MONAD_EXT)/coreclr/Release/* dotnetlibs
|
|
|
|
|
|
|
|
# this is the manual step that will install some stuff using nuget and do other things that can't be dependency
|
|
|
|
# tracked that easily
|
|
|
|
prepare:
|
2015-06-10 20:12:08 +02:00
|
|
|
rm -rf System.Reflection.Metadata.* System.Collections.Immutable.* Microsoft.Net.ToolsetCompilers.*
|
2015-05-29 22:56:28 +02:00
|
|
|
nuget install System.Reflection.Metadata
|
|
|
|
nuget install System.Collections.Immutable
|
2015-06-10 20:12:08 +02:00
|
|
|
nuget install Microsoft.Net.ToolsetCompilers -pre
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-06-11 23:19:24 +02:00
|
|
|
# this is an internal target, it's not intended to be called manually
|
2015-06-18 05:36:35 +02:00
|
|
|
internal-prepare-exec_env: runps.sh
|
2015-05-29 22:56:28 +02:00
|
|
|
rm -rf exec_env
|
|
|
|
mkdir exec_env
|
|
|
|
cp -r ../src/monad_app_base/app_base exec_env
|
|
|
|
cp -r dotnetlibs/*.dll exec_env/app_base
|
|
|
|
cp -r dotnetlibs/*.exe exec_env/app_base
|
|
|
|
cp -r dotnetlibs/lib* exec_env/app_base
|
|
|
|
cp -r dotnetlibs/corerun exec_env/app_base
|
2015-07-10 20:35:26 +02:00
|
|
|
cp -r ../ext-src/pester exec_env/app_base/Modules/Pester
|
2015-06-18 05:36:35 +02:00
|
|
|
cp runps.sh exec_env/app_base
|
2015-06-10 23:01:04 +02:00
|
|
|
|
2015-07-10 01:02:58 +02:00
|
|
|
run: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
2015-06-10 23:01:04 +02:00
|
|
|
# check if corerun is the right one (could be the debug version)
|
|
|
|
if ! diff dotnetlibs/corerun $(MONAD_EXT)/coreclr/Release/corerun; then cp -r $(MONAD_EXT)/coreclr/Release/* dotnetlibs; fi
|
2015-07-01 20:23:53 +02:00
|
|
|
# execute a cmdlet, this will auto-load the utility module and print a, b and c in 3 lines
|
|
|
|
cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. ./corerun powershell-simple.exe '"a","b","c","a","a" | Select-Object -Unique'
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-07-10 01:02:58 +02:00
|
|
|
run-interactive: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
2015-06-18 05:36:35 +02:00
|
|
|
# check if corerun is the right one (could be the debug version)
|
|
|
|
if ! diff dotnetlibs/corerun $(MONAD_EXT)/coreclr/Release/corerun; then cp -r $(MONAD_EXT)/coreclr/Release/* dotnetlibs; fi
|
|
|
|
cd exec_env/app_base && ./runps.sh
|
|
|
|
|
2015-07-08 03:02:04 +02:00
|
|
|
run-file: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
|
|
|
# check if corerun is the right one (could be the debug version)
|
|
|
|
if ! diff dotnetlibs/corerun $(MONAD_EXT)/coreclr/Release/corerun; then cp -r $(MONAD_EXT)/coreclr/Release/* dotnetlibs; fi
|
|
|
|
cd exec_env/app_base && ./runps.sh --file $(PSSCRIPT)
|
|
|
|
|
2015-07-13 22:38:47 +02:00
|
|
|
pester-tests: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
|
|
|
# check if corerun is the right one (could be the debug version)
|
|
|
|
if ! diff dotnetlibs/corerun $(MONAD_EXT)/coreclr/Release/corerun; then cp -r $(MONAD_EXT)/coreclr/Release/* dotnetlibs; fi
|
|
|
|
# execute the pester tests, pester needs a TEMP environment variable to be set
|
|
|
|
cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. ./corerun powershell-simple.exe 'cd ../../../src/pester-tests; $$env:TEMP="/tmp"; invoke-pester'
|
|
|
|
|
|
|
|
test: dotnetlibs/ps_test_runner.exe dotnetlibs/corerun dotnetlibs/api-ms-win-core-registry-l1-1-0.dll pester-tests
|
2015-06-12 17:29:05 +02:00
|
|
|
cd dotnetlibs && LD_LIBRARY_PATH=. ./corerun ps_test_runner.exe
|
|
|
|
|
2015-06-11 23:19:24 +02:00
|
|
|
# this is an internal target, it's not intended to be called manually
|
|
|
|
internal-prepare-debugclr:
|
2015-06-10 23:01:04 +02:00
|
|
|
cp -r $(MONAD_EXT)/coreclr/Debug/* dotnetlibs
|
|
|
|
|
2015-07-10 01:02:58 +02:00
|
|
|
run-debugclr: dotnetlibs/powershell-run.exe internal-prepare-debugclr dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
2015-06-10 23:01:04 +02:00
|
|
|
#cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. ./corerun powershell-run.exe "import-module -name Microsoft.PowerShell.Utility" '"a","b","c","a","a" | Select-Object -Unique'
|
2015-07-01 04:24:53 +02:00
|
|
|
cd exec_env/app_base && PAL_DBG_CHANNELS="+LOADER.TRACE" PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. ./corerun powershell-simple.exe "\"test blah\""
|
2015-06-10 23:01:04 +02:00
|
|
|
|
2015-05-29 22:56:28 +02:00
|
|
|
trace:
|
2015-07-01 04:24:53 +02:00
|
|
|
cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. strace -e trace=file ./corerun powershell-simple.exe "import-module -name Microsoft.PowerShell.Utility" '"a","b","c","a","a" | Select-Object -Unique'
|
2015-05-29 22:56:28 +02:00
|
|
|
|
2015-06-11 23:19:24 +02:00
|
|
|
debug: dotnetlibs/powershell-run.exe dotnetlibs/corerun internal-prepare-exec_env dotnetlibs/api-ms-win-core-registry-l1-1-0.dll
|
2015-07-01 04:24:53 +02:00
|
|
|
cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=.:/usr/lib/llvm-3.6/lib lldb-3.6 ./corerun powershell-simple.exe "\"hello world\""
|
2015-05-29 22:56:28 +02:00
|
|
|
|
|
|
|
clean:
|
2015-06-10 20:45:37 +02:00
|
|
|
rm -f dotnetlibs/System.Management.Automation.dll dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/powershell-run.exe dotnetlibs/Microsoft.Management.Infrastructure.Native.dll CorePsTypeCatalog.cs TypeCatalogGen.exe string-resources.dll test.dll System.Reflection.Metadata.dll System.Collections.Immutable.dll
|
2015-05-29 22:56:28 +02:00
|
|
|
rm -rf exec_env
|
|
|
|
rm -rf libps-build
|
|
|
|
rm -rf dotnetlibs/*
|
|
|
|
|
|
|
|
# clean built stuff + prepare step
|
|
|
|
cleanall: clean
|
|
|
|
rm -rf System.Reflection.Metadata.* System.Collections.Immutable.*
|
|
|
|
|
2015-06-18 05:36:35 +02:00
|
|
|
docker-build:
|
2015-06-26 01:52:12 +02:00
|
|
|
docker build --no-cache=false -t image_ps .
|
2015-06-18 23:50:59 +02:00
|
|
|
$(eval INSTANCE_ID := $(shell docker inspect -f '{{.Id}}' image_ps))
|
2015-06-18 05:36:35 +02:00
|
|
|
|
|
|
|
docker-run: docker-build
|
2015-07-13 22:08:47 +02:00
|
|
|
# docker port is 4201 for shellinabox by default, but can be overridden
|
2015-07-13 20:55:18 +02:00
|
|
|
$(eval SHELLINABOX_PORT := $(shell if [ "${SHELLINABOX_PORT}" = "" ]; then echo 4201; else echo ${SHELLINABOX_PORT}; fi))
|
|
|
|
@echo "SHELLINABOX_PORT=${SHELLINABOX_PORT}"
|
|
|
|
docker run -d -P -p $(SHELLINABOX_PORT):4201 --name test_ps image_ps
|
2015-07-13 22:08:47 +02:00
|
|
|
# those two ports are container ports, so they can be hard-coded
|
2015-06-18 23:50:59 +02:00
|
|
|
docker port test_ps 22
|
2015-07-13 22:08:47 +02:00
|
|
|
docker port test_ps 4201
|
2015-07-13 20:55:18 +02:00
|
|
|
$(eval HOST_IP := $(shell ifconfig eth0 | awk '/inet addr/{print substr($$2,6)}'))
|
|
|
|
@echo "connect to docker at: http://${HOST_IP}:${SHELLINABOX_PORT}/"
|
2015-07-13 22:41:40 +02:00
|
|
|
@echo "use username: 'test1' and password: 'pass' to connect"
|
2015-06-18 05:36:35 +02:00
|
|
|
|
|
|
|
docker-stop:
|
2015-06-18 23:50:59 +02:00
|
|
|
docker stop test_ps
|
|
|
|
docker rm test_ps
|
2015-06-18 05:36:35 +02:00
|
|
|
|