-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
150 additions
and
71 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
GIT_COMMIT=$(shell git rev-parse --verify HEAD) | ||
UTC_NOW=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
|
||
.PHONY: build-dev | ||
build-dev: | ||
go build \ | ||
-ldflags="-X 'main.tagVersion=dev' -X 'main.tagCommit=${GIT_COMMIT}' -X 'main.tagDate=${UTC_NOW}'" \ | ||
-o labctl | ||
|
||
.PHONY: build-dev-darwin-arm64 | ||
build-dev-darwin-arm64: | ||
GOOS=darwin GOARCH=arm64 go build \ | ||
-ldflags="-X 'main.tagVersion=dev' -X 'main.tagCommit=${GIT_COMMIT}' -X 'main.tagDate=${UTC_NOW}'" \ | ||
-o labctl | ||
|
||
.PHONY: release | ||
release: | ||
goreleaser --clean | ||
|
||
.PHONY: release-snapshot | ||
release-snapshot: | ||
goreleaser release --snapshot --clean | ||
|
||
.PHONY: test-e2e | ||
test-e2e: | ||
go test -v -count 1 ./e2e/exec |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,12 @@ labctl ssh <playground-id> -- ls -la / | |
|
||
### Using IDE (VSCode, JetBrains, etc) to access playgrounds | ||
|
||
You can start a playground and open it in your IDE with: | ||
|
||
```sh | ||
labctl playground start docker --ide | ||
``` | ||
|
||
You can use the **SSH proxy mode** to access playgrounds from your IDE: | ||
|
||
```sh | ||
|
@@ -90,17 +96,22 @@ Example output: | |
```text | ||
SSH proxy is running on 58279 | ||
Connect with: ssh -i ~/.iximiuz/labctl/ssh/id_ed25519 ssh://[email protected]:58279 | ||
# Connect from the terminal: | ||
ssh -i ~/.ssh/iximiuz_labs_user ssh://[email protected]:58279 | ||
Or add the following to your ~/.ssh/config: | ||
# Or add the following to your ~/.ssh/config: | ||
Host 65ea1e10f6af43783e69fe68-docker-01 | ||
HostName 127.0.0.1 | ||
Port 58279 | ||
User root | ||
IdentityFile ~/.iximiuz/labctl/ssh/id_ed25519 | ||
IdentityFile ~/.ssh/iximiuz_labs_user | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile /dev/null | ||
# To access the playground in Visual Studio Code: | ||
code --folder-uri vscode-remote://ssh-remote+127.0.0.1:58279/root | ||
Press Ctrl+C to stop | ||
``` | ||
|
||
|
@@ -121,7 +132,7 @@ You can also expose locally running services to the playground using **remote po | |
```sh | ||
labctl ssh-proxy --address <local-proxy-address> <playground-id> | ||
|
||
ssh -i ~/.iximiuz/labctl/ssh/id_ed25519 \ | ||
ssh -i ~/.ssh/iximiuz_labs_user \ | ||
-R <remote-host>:<remote-port>:<local-host>:<local-port> \ | ||
ssh://root@<local-proxy-address> | ||
``` | ||
|
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
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
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
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
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
Oops, something went wrong.