Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ktock committed Oct 8, 2024
1 parent f1452c3 commit 3972131
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion script/podman/config/podman-rootless-stargz-store.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Description=Stargz Store service for Podman
[Service]
# This pipes stargz-store's IO to the shell otherwise they are lost and can't be managed by systemd.
# TODO: fix this and do not use pipe
ExecStart=/bin/bash -c "podman version ; sleep 1 ; podman version ; podman unshare stargz-store --log-level=debug --root %h/.local/share/stargz-store/data --addr %h/.local/share/stargz-store/store.sock %h/.local/share/stargz-store/store 2>&1 | cat"
ExecStart=/bin/bash -c "podman unshare stargz-store --log-level=debug --root %h/.local/share/stargz-store/data --addr %h/.local/share/stargz-store/store.sock %h/.local/share/stargz-store/store 2>&1 | cat"
ExecStopPost=podman unshare umount %h/.local/share/stargz-store/store
Restart=always
RestartSec=1

[Install]
WantedBy=default.target
12 changes: 6 additions & 6 deletions script/podman/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ function retry {
fi
}

retry podman version
podman unshare ps auxww
podman unshare mount
systemctl --user status "${STARGZ_STORE_SERVICE}"
journalctl --user -u "${STARGZ_STORE_SERVICE}"
# retry podman version
# podman unshare ps auxww
# podman unshare mount
# systemctl --user status "${STARGZ_STORE_SERVICE}"
# journalctl --user -u "${STARGZ_STORE_SERVICE}"
echo "podman unshare mount | grep stargzstore" > /tmp/test1.sh
retry bash -euo pipefail /tmp/test1.sh

sleep 3
# sleep 3

# Lazy pulling and run
podman pull ghcr.io/stargz-containers/alpine:3.10.2-esgz
Expand Down
2 changes: 1 addition & 1 deletion script/podman/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -eux -o pipefail
set -euo pipefail

CONTEXT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/"
REPO="${CONTEXT}../../"
Expand Down

0 comments on commit 3972131

Please sign in to comment.