This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winget install --id Mozilla.Firefox --source winget | |
winget install --id Microsoft.Powershell --source winget | |
winget install --id Microsoft.WindowsTerminal --source winget | |
winget install --id JanDeDobbeleer.OhMyPosh --source winget | |
winget install --id Microsoft.VisualStudioCode --source winget | |
winget install --id AltSnap.AltSnap --source winget | |
winget install --id Hashicorp.Vagrant --source winget | |
winget install --id Hashicorp.Packer --source winget | |
winget install --id Oracle.VirtualBox --source winget | |
winget install --id Git.Git --source winget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$json = get-content "$PSScriptRoot/../init.json" -raw -Encoding ascii | convertfrom-json | |
$machinesTypes = $json.vagrant.'machines-types'; | |
foreach($machineType in $machinesTypes) { | |
frenchex2 vagrant:machine-type:add ` | |
--name "${machineType.Name}" ` | |
--vcpus "${machineType.Vcpus}" ` | |
--cpucap "${machineType.CpuCap}" ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ts-node | |
const chokidar = require('chokidar'); | |
const watcher = chokidar.watch(['src', 'test'], { | |
ignored: null, | |
ignoreInitial: false, | |
followSymlinks: true, | |
cwd: '.', | |
disableGlobbing: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\code\frenchex2\cli.ts_i1\tmp> frenchex2 vagrant:machine-type:provision:add ` | |
>> --os-type "Debian_64" ` | |
>> --os-version "10.9.0" ` | |
>> --name "apt.configure" ` | |
>> --type "dev" ` | |
>> --code-bash ` | |
>> @' | |
>> apt_conf=$(cat <<EOF | |
>> APT::Get::Install-Recommends " false"; | |
>> APT::Get::Install-Suggests "false"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\code\frenchex2\cli.ts_i1\tmp> docker-compose ps | |
Name Command State Ports | |
------------------------------------------------------------------------------- | |
tmp_db_1 docker-entrypoint.sh mysqld Up 3306/tcp, 33060/tcp | |
tmp_wordpress_1 docker-entrypoint.sh apach ... Up 0.0.0.0:8000->80/tcp | |
Exception ignored in: <function Popen.__del__ at 0x000001D045DED670> | |
Traceback (most recent call last): | |
File "c:\python39\lib\subprocess.py", line 1055, in __del__ | |
self._internal_poll(_deadstate=_maxsize) | |
File "c:\python39\lib\subprocess.py", line 1457, in _internal_poll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\code\frenchex2\cli.ts_i1\tmp> ssh-add .\.vagrant\machines\vdi-00-control-00\virtualbox\private_key | |
Identity added: .\.vagrant\machines\vdi-00-control-00\virtualbox\private_key (.\.vagrant\machines\vdi-00-control-00\virtualbox\private_key) | |
PS C:\code\frenchex2\cli.ts_i1\tmp> C:\Users\steph\Downloads\docker-compose-Windows-x86_64.exe ps | |
Traceback (most recent call last): | |
File "urllib3\connectionpool.py", line 670, in urlopen | |
File "urllib3\connectionpool.py", line 426, in _make_request | |
File "<string>", line 3, in raise_from | |
File "urllib3\connectionpool.py", line 421, in _make_request | |
File "http\client.py", line 1349, in getresponse | |
File "http\client.py", line 935, in close |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\code\\platform_i1\Docker> docker context create --docker "host=ssh://vagrant@vdi-00-dev-00" vdi00dev00 | |
vdi00dev00 | |
Successfully created context "vdi00dev00" | |
PS C:\code\\platform_i1\Docker> docker context use vdi00dev00 | |
vdi00dev00 | |
Current context is now "vdi00dev00" | |
PS C:\code\\platform_i1\Docker> docker ps -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\code\xx\platform_i1> $Env:DOCKER_CONTEXT="remote" | |
PS C:\code\xx\platform_i1> docker-compose up -d | |
Traceback (most recent call last): | |
File "urllib3\connectionpool.py", line 670, in urlopen | |
File "urllib3\connectionpool.py", line 426, in _make_request | |
File "<string>", line 3, in raise_from | |
File "urllib3\connectionpool.py", line 421, in _make_request | |
File "http\client.py", line 1349, in getresponse | |
File "http\client.py", line 935, in close | |
File "docker\transport\sshconn.py", line 102, in close |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"provisioning": { | |
"cat-infos": { | |
"env": { | |
"device": "eth1" | |
} | |
}, | |
"ipv6.disable": {}, | |
"apt-cacherng.install": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"projects": { | |
"lib": { | |
"name": "lib", | |
"template": { | |
"name":"lib" | |
} | |
}, | |
"api": { | |
"name": "api", |
NewerOlder