-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify and cleanup entry points and tests
- Loading branch information
Showing
14 changed files
with
177 additions
and
108 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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"GitHub.vscode-github-actions", | ||
"jeff-hykin.better-dockerfile-syntax", | ||
"mads-hartmann.bash-ide-vscode", | ||
"ms-python.black-formatter", | ||
"ms-python.python", | ||
"timonwong.shellcheck", | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "git grok: push local commits as individual PRs", | ||
"detail": "Install git-grok first: https://github.com/dimikot/git-grok", | ||
"type": "shell", | ||
"command": "git grok", | ||
"problemMatcher": [], | ||
"hide": false | ||
}, | ||
{ | ||
"label": "git rebase --interactive", | ||
"detail": "Opens a UI for interactive rebase (install \"Git rebase shortcuts\" extension).", | ||
"type": "shell", | ||
"command": "GIT_EDITOR=\"code --wait\" git rebase -i", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This key (as well as docker-compose.yml) is only used in tests, so it's safe | ||
# to have it here. | ||
CI_STORAGE_HOST_PRIVATE_KEY_TEST_ONLY="-----BEGIN OPENSSH PRIVATE KEY----- | ||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW | ||
QyNTUxOQAAACBZgbuAsWHfeYshNJacifV30KxJVFKr4/B4WnvxO8x2jAAAAKgm2KyUJtis | ||
lAAAAAtzc2gtZWQyNTUxOQAAACBZgbuAsWHfeYshNJacifV30KxJVFKr4/B4WnvxO8x2jA | ||
AAAECRcPB4jRqJEgNBvFPA6+k5HPT5/ZbXnD2KUyE+oJFfA1mBu4CxYd95iyE0lpyJ9XfQ | ||
rElUUqvj8Hhae/E7zHaMAAAAHmRtaXRyeUBEbWl0cnktTWFjQm9vay1NMS5sb2NhbAECAw | ||
QFBgc= | ||
-----END OPENSSH PRIVATE KEY-----" | ||
CI_STORAGE_HOST_PUBLIC_KEY_TEST_ONLY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFmBu4CxYd95iyE0lpyJ9XfQrElUUqvj8Hhae/E7zHaM" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# A Simple Container with SSH Server | ||
|
||
Build an image from this Dockerfile to launch a simple SSH server with rsync. | ||
|
||
- Pre-creates /home/user/ci-storage directory. | ||
- Copies public key in CI_STORAGE_HOST_PUBLIC_KEY to user's authorized_keys. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Booting containters on the local laptop for debugging purposes..." | ||
|
||
GH_REPOSITORY=$(gh repo view --json owner,name -q '.owner.login + "/" + .name') GH_TOKEN=$(gh auth token) docker compose up --build "$@" |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "3.4" | ||
services: | ||
ci-storage-host: | ||
build: | ||
context: ci-storage-host | ||
dockerfile: Dockerfile | ||
healthcheck: | ||
test: ["CMD", "bash", "-c", "netstat -ltn | grep -c :22"] | ||
interval: 1s | ||
timeout: 3s | ||
retries: 10 | ||
ports: | ||
- 10022:22 | ||
environment: | ||
- CI_STORAGE_HOST_PUBLIC_KEY=${CI_STORAGE_HOST_PUBLIC_KEY_TEST_ONLY?} | ||
self-hosted-runner: | ||
build: | ||
context: self-hosted-runner | ||
additional_contexts: | ||
root: .. | ||
dockerfile: Dockerfile | ||
depends_on: | ||
ci-storage-host: | ||
condition: service_healthy | ||
environment: | ||
- GH_REPOSITORY=dimikot/ci-storage | ||
- GH_LABELS=ci-storage | ||
- GH_TOKEN | ||
- CI_STORAGE_HOST=ci-storage-host | ||
- CI_STORAGE_HOST_PRIVATE_KEY=${CI_STORAGE_HOST_PRIVATE_KEY_TEST_ONLY?} |
This file was deleted.
Oops, something went wrong.
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.