Skip to content

Commit

Permalink
mac running hind locally R&D
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Jan 12, 2025
1 parent 0c57487 commit 31f000f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
etc/tmp.hcl
etc/ux-b*.hcl
etc/ux-b*.json
11 changes: 11 additions & 0 deletions etc/mac.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# mac with HinD notes


```sh
# `-p` -- run from inside `podman machine ssh` or outside -- can get to from everywhere
PORT=8080; podman run -p $PORT:$PORT --rm -it python:3-alpine sh -c 'python3 -c "import http.server; httpd = http.server.HTTPServer((\"0.0.0.0\", '$PORT'), http.server.SimpleHTTPRequestHandler); httpd.serve_forever()"'

# `--net=host` -- can get to from inside machine ssh -- but not from outside or browser
podman machine ssh
PORT=8080; podman run --net=host --rm -it python:3-alpine sh -c 'python3 -c "import http.server; httpd = http.server.HTTPServer((\"0.0.0.0\", '$PORT'), http.server.SimpleHTTPRequestHandler); httpd.serve_forever()"'
```


## run locally
```sh
perl -i -pe 's/podman pull/#podman pull/' install.sh
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [ $HOST_UNAME = Darwin ]; then

ARGS_SEC="--cap-add SYS_ADMIN --security-opt seccomp=unconfined"
ARGS_INIT="$ARGS_SEC"
ARGS_RUN="$ARGS_SEC $ARGS_RUN -p 8000:80 -p 4000:443"
ARGS_RUN="$ARGS_SEC $ARGS_RUN -p 8000:80 -p 4000:443 -p 5555:5000"
else
PV=/pv
# Use host characteristics
Expand Down

0 comments on commit 31f000f

Please sign in to comment.