-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to latest ubuntu. macos use podman remote now (so secrets set…
…up the std way)
- Loading branch information
1 parent
a4185fe
commit eb34de6
Showing
5 changed files
with
75 additions
and
37 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
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ job "hello-world" { | |
group "group" { | ||
network { | ||
port "http" { | ||
to = 5000 | ||
to = 5555 | ||
} | ||
} | ||
service { | ||
|
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,34 @@ | ||
# mac with HinD notes | ||
|
||
## run locally | ||
```sh | ||
perl -i -pe 's/podman pull/#podman pull/' install.sh | ||
export VERBOSE=1 | ||
|
||
podman build --tag ghcr.io/internetarchive/hind:main . | ||
|
||
./install.sh | ||
``` | ||
|
||
## research & development | ||
```sh | ||
# podman run --rm --privileged hind zsh -c 'podman run hello-world' | ||
# helpful https://forums.docker.com/t/cgroup-v2-the-saga-continues/139329 | ||
|
||
# podman and nomad! | ||
podman run --privileged --secret NOMAD_TOKEN,type=env -it --rm localhost/hind zsh -c 'echo +cpuset > /sys/fs/cgroup/cgroup.subtree_control; echo +cpuset > /sys/fs/cgroup/cgroup.controllers; nomad agent -config /etc/nomad.d & sleep 20; echo;echo;echo;nomad status; podman run hello-world' | ||
|
||
podman run --cgroups disabled --privileged --secret NOMAD_TOKEN,type=env -it --rm localhost/hind zsh -c 'echo +cpuset > /sys/fs/cgroup/cgroup.subtree_control; echo +cpuset > /sys/fs/cgroup/cgroup.controllers; nomad agent -config /etc/nomad.d & sleep 20; echo;echo;echo;nomad status; podman run --cgroups disabled hello-world' | ||
|
||
podman run --rm --privileged -v $SOCK:/run/podman/podman.sock podman podman -r ps -a | ||
``` | ||
|
||
|
||
### other init/run args to try | ||
- https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva | ||
```sh | ||
-v /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
--cgroupns=host | ||
--cgroups disabled | ||
``` | ||
previously had also tried: `-v /sys/fs/cgroup:/sys/fs/cgroup:rw` |
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