Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create container with current uid,gid #119

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Conversation

verbotenj
Copy link
Contributor

Related #109

@verbotenj verbotenj marked this pull request as ready for review March 13, 2024 22:49
@verbotenj verbotenj force-pushed the test/start-with-uid-gid branch 2 times, most recently from e53caef to 20dbd8a Compare March 15, 2024 18:45
@verbotenj
Copy link
Contributor Author

./cardano-up install cardano-node
./cardano-up install ogmios

docker exec -it cardano-node-8.7.3-default-cardano-node cardano-cli query tip --testnet-magic 1
{
"block": 2045110,
"epoch": 131,
"era": "Babbage",
"hash": "e2dbe09891d161e902a174e2831c0874a2f780d7a6939db0101a7ff42e46e59f",
"slot": 54951098,
"slotInEpoch": 698,
"slotsToEpochEnd": 431302,
"syncProgress": "100.00"
}

curl -H 'Accept: application/json' http://localhost:61720/health | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 629 0 629 0 0 69273 0 --:--:-- --:--:-- --:--:-- 102k
{
"startTime": "2024-03-17T00:09:09.851002718Z",
"lastKnownTip": {
"slot": 54951116,
"id": "c5d05f19f9482135fc991fdeaeb7c6416260a6f56661b9438cd285bcaf60d17f",
"height": 2045111
},
"lastTipUpdate": "2024-03-17T00:11:56.470883503Z",
"networkSynchronization": 1,
"currentEra": "babbage",
"metrics": {
"activeConnections": 0,
"runtimeStats": {
"cpuTime": 1303031139,
"currentHeapSize": 406,
"gcCpuTime": 1122090665,
"maxHeapSize": 410
},
"sessionDurations": {
"max": 0,
"mean": 0,
"min": 0
},
"totalConnections": 0,
"totalMessages": 0,
"totalUnrouted": 0
},
"connectionStatus": "connected",
"currentEpoch": 131,
"slotInEpoch": 716,
"version": "v6.1.0 (dabab146)",
"network": "preprod"
}

docker inspect cardano-node-8.7.3-default-cardano-node | grep -i '"user":'
"User": "503:20",
docker inspect ogmios-v6.1.0-default-ogmios | grep -i '"user":'
"User": "503:20",

@verbotenj
Copy link
Contributor Author

./cardano-up uninstall ogmios
Successfully uninstalled package ogmios (= v6.1.0) from context "default"
./cardano-up uninstall cardano-node
Successfully uninstalled package cardano-node (= 8.7.3) from context "default"
./cardano-up list
Installed packages (from context "default"):

No packages installed

@verbotenj verbotenj changed the title test: manual test create container with uid,gid feat: create container with current uid,gid Mar 17, 2024
@verbotenj verbotenj merged commit e74a633 into main Mar 17, 2024
6 checks passed
@verbotenj verbotenj deleted the test/start-with-uid-gid branch March 17, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants