FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
computer/script/shell at example-javascript · earthlings-dev/computer · GitHub
earthlings-dev
/
computer
Public
forked from
cloudflare/computer
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
computer
/
script
/
shell
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (23 loc) · 991 Bytes
Breadcrumbs
computer
/
script
/
shell
Copy path
File metadata and controls
executable file
·
26 lines (23 loc) · 991 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/usr/bin/env bash
#
Launch a debian-slim container with the linux computerd binary mounted as /usr/local/bin/computerd.
set
-euo pipefail
repo_root=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
/..
"
&&
pwd
)
"
binary=
"
${repo_root}
/artifacts/computerd/computerd-linux-x64
"
if
[[
!
-x
"
${binary}
"
]]
;
then
echo
"
missing or non-executable binary:
${binary}
"
>&2
exit
1
fi
exec
docker run --rm -it \
--platform linux/amd64 \
--privileged \
--device /dev/fuse \
--cap-add SYS_ADMIN \
--cap-add MKNOD \
--security-opt apparmor=unconfined \
--security-opt seccomp=unconfined \
-v
"
${binary}
:/usr/local/bin/computerd:ro
"
\
-v
"
${repo_root}
/script/fs-tests.sh:/usr/local/bin/fs-tests:ro
"
\
-v
"
${repo_root}
/script/fs-bench.sh:/usr/local/bin/fs-bench:ro
"
\
-w /root \
debian:stable-slim \
bash -c
'
apt-get update >/dev/null 2>&1 && apt-get install -y --no-install-recommends fuse3 libfuse2t64 attr util-linux coreutils findutils git ca-certificates >/dev/null 2>&1; exec bash
'
Back
|
FazBrowse Home
|
New Git URL