-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working legacy infra in docker & bootstrap
- Loading branch information
Showing
24 changed files
with
279 additions
and
31 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,8 +1,3 @@ | ||
/target | ||
crates/**/.privkey | ||
*.db | ||
|
||
test/**/state/cache | ||
test/**/state/db | ||
test/**/state/public | ||
test/**/state/staging |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,4 +1,4 @@ | ||
caddy:80, localhost:80 { | ||
root * /static/ | ||
root * /vessel/public | ||
file_server browse | ||
} |
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 @@ | ||
Ȕ�۩���j4�?���C;G�|JUVFG-LO |
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,68 @@ | ||
#!/usr/bin/env bash | ||
|
||
SERVICES=(summit vessel avalanche) | ||
|
||
declare -A KEYS | ||
KEYS['summit']=5zIaXc6Cn9qEAk2rNcyu-KDVtdFGcJtx9p2gZdDaxhU | ||
KEYS['vessel']=qA2GABojHXC7nKo1zCOko2XjktavqGOGUN6Nq9jmUYQ | ||
KEYS['avalanche']=C64M-DMlib7vl_DAFRPAkKzok6cJ2el1fMxd-LdlGZ0 | ||
|
||
declare -A PORTS | ||
PORTS['summit']=5000 | ||
PORTS['vessel']=5001 | ||
PORTS['avalanche']=5002 | ||
|
||
USER=test | ||
PASS=test1234 | ||
|
||
echo "Starting bootstrap" | ||
|
||
sleep 2 | ||
|
||
cookies=$(mktemp) | ||
|
||
for service in ${SERVICES[*]} | ||
do | ||
port=${PORTS[$service]} | ||
|
||
case $service in | ||
summit) | ||
path="setup" | ||
;; | ||
*) | ||
path="setup/apply" | ||
;; | ||
esac | ||
|
||
echo "Creating $service account" | ||
curl "http://127.0.0.1:$port/$path" \ | ||
-H 'Content-Type: application/x-www-form-urlencoded' \ | ||
--data-raw "instanceURI=http%3A%2F%2F$service%3A$port&description=&username=$USER&emailAddress=admin%40admin.com&password=$PASS&confirmPassword=$PASS" | ||
|
||
echo "Logging into $service" | ||
curl "http://127.0.0.1:$port/accounts/login" \ | ||
-b $cookies \ | ||
-c $cookies \ | ||
-H 'Content-Type: application/x-www-form-urlencoded' \ | ||
--data-raw "username=$USER&password=$PASS" | ||
done | ||
|
||
echo "Adding avalanche" | ||
curl "http://127.0.0.1:${PORTS['summit']}/api/v1/builders/create" \ | ||
-b $cookies \ | ||
-H 'Content-Type: application/json' \ | ||
--data-raw '{"request":{"id":"avalanche","summary":"Builds stuff","instanceURI":"http://avalanche:'"${PORTS['avalanche']}"'","pubkey":"'"${KEYS['avalanche']}"'","adminName":"admin","adminEmail":"[email protected]"}}' | ||
curl -b $cookies "http://127.0.0.1:${PORTS['avalanche']}/avl/accept/${KEYS['summit']}" | ||
|
||
echo "Adding vessel" | ||
curl "http://127.0.0.1:${PORTS['summit']}/api/v1/endpoints/create" \ | ||
-b $cookies \ | ||
-H 'Content-Type: application/json' \ | ||
--data-raw '{"request":{"id":"official","summary":"Indexes stuff","instanceURI":"http://vessel:'"${PORTS['vessel']}"'","pubkey":"'"${KEYS['vessel']}"'","adminName":"admin","adminEmail":"[email protected]"}}' | ||
curl -b $cookies "http://127.0.0.1:${PORTS['vessel']}/vsl/accept/${KEYS['summit']}" | ||
|
||
echo "Importing stones" | ||
curl -b $cookies "http://127.0.0.1:${PORTS['vessel']}/vsl/import?importPath=%2Fimport" | ||
|
||
echo "Restarting summit" | ||
docker compose restart summit |
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 @@ | ||
2ުu���X�a��e����� �Li>� |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,120 @@ | ||
/** Human readable report. This is not consumed by boulder */ | ||
{ | ||
"manifest-version": "0.2", | ||
"packages": { | ||
"nano": { | ||
"build-depends": [ | ||
"pkgconfig(libmagic)", | ||
"pkgconfig(ncursesw)", | ||
"pkgconfig(zlib)" | ||
], | ||
"depends": [ | ||
"interpreter(/usr/lib/ld-linux-x86-64.so.2(x86_64))", | ||
"soname(libc.so.6(x86_64))", | ||
"soname(libmagic.so.1(x86_64))", | ||
"soname(libncursesw.so.6(x86_64))" | ||
], | ||
"files": [ | ||
"/usr/bin/nano", | ||
"/usr/bin/rnano", | ||
"/usr/share/doc/nano/faq.html", | ||
"/usr/share/doc/nano/nano.html", | ||
"/usr/share/info/nano.info", | ||
"/usr/share/locale/bg/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ca/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/cs/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/da/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/de/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/eo/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/es/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/eu/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/fi/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/fr/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ga/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/gl/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/hr/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/hu/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/id/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/is/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/it/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ja/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ka/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ko/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ms/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/nb/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/nl/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/pl/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/pt/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/pt_BR/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ro/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/ru/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/sk/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/sl/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/sq/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/sr/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/sv/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/tr/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/uk/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/vi/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/zh_CN/LC_MESSAGES/nano.mo", | ||
"/usr/share/locale/zh_TW/LC_MESSAGES/nano.mo", | ||
"/usr/share/man/man1/nano.1", | ||
"/usr/share/man/man1/rnano.1", | ||
"/usr/share/man/man5/nanorc.5", | ||
"/usr/share/nano/asm.nanorc", | ||
"/usr/share/nano/autoconf.nanorc", | ||
"/usr/share/nano/awk.nanorc", | ||
"/usr/share/nano/c.nanorc", | ||
"/usr/share/nano/changelog.nanorc", | ||
"/usr/share/nano/cmake.nanorc", | ||
"/usr/share/nano/css.nanorc", | ||
"/usr/share/nano/default.nanorc", | ||
"/usr/share/nano/elisp.nanorc", | ||
"/usr/share/nano/email.nanorc", | ||
"/usr/share/nano/extra/ada.nanorc", | ||
"/usr/share/nano/extra/fortran.nanorc", | ||
"/usr/share/nano/extra/haskell.nanorc", | ||
"/usr/share/nano/extra/povray.nanorc", | ||
"/usr/share/nano/extra/spec.nanorc", | ||
"/usr/share/nano/go.nanorc", | ||
"/usr/share/nano/groff.nanorc", | ||
"/usr/share/nano/guile.nanorc", | ||
"/usr/share/nano/html.nanorc", | ||
"/usr/share/nano/java.nanorc", | ||
"/usr/share/nano/javascript.nanorc", | ||
"/usr/share/nano/json.nanorc", | ||
"/usr/share/nano/lua.nanorc", | ||
"/usr/share/nano/makefile.nanorc", | ||
"/usr/share/nano/man.nanorc", | ||
"/usr/share/nano/markdown.nanorc", | ||
"/usr/share/nano/nanohelp.nanorc", | ||
"/usr/share/nano/nanorc.nanorc", | ||
"/usr/share/nano/nftables.nanorc", | ||
"/usr/share/nano/objc.nanorc", | ||
"/usr/share/nano/ocaml.nanorc", | ||
"/usr/share/nano/patch.nanorc", | ||
"/usr/share/nano/perl.nanorc", | ||
"/usr/share/nano/php.nanorc", | ||
"/usr/share/nano/po.nanorc", | ||
"/usr/share/nano/python.nanorc", | ||
"/usr/share/nano/ruby.nanorc", | ||
"/usr/share/nano/rust.nanorc", | ||
"/usr/share/nano/sh.nanorc", | ||
"/usr/share/nano/sql.nanorc", | ||
"/usr/share/nano/tcl.nanorc", | ||
"/usr/share/nano/tex.nanorc", | ||
"/usr/share/nano/texinfo.nanorc", | ||
"/usr/share/nano/xml.nanorc", | ||
"/usr/share/nano/yaml.nanorc" | ||
], | ||
"name": "nano", | ||
"provides": [ | ||
"binary(nano)", | ||
"binary(rnano)" | ||
] | ||
} | ||
}, | ||
"source-name": "nano", | ||
"source-release": "30", | ||
"source-version": "8.2" | ||
} |
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,2 @@ | ||
releases: | ||
id: 2046 |
Oops, something went wrong.