{"id":2480,"date":"2023-08-05T16:36:58","date_gmt":"2023-08-05T14:36:58","guid":{"rendered":"https:\/\/www.hyperpac.de\/?p=2480"},"modified":"2023-08-05T17:16:54","modified_gmt":"2023-08-05T15:16:54","slug":"wiki-js-podman-script","status":"publish","type":"post","link":"https:\/\/www.hyperpac.de\/?p=2480","title":{"rendered":"wiki.js podman script"},"content":{"rendered":"\n<p>Recently I wanted to test wiki.js on my CentOS 8 Stream VM and ran into all kinds of problems. I found a helping script at <a href=\"https:\/\/books.clusterapps.com\/books\/containers\/page\/pod-scripts\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/books.clusterapps.com\/books\/containers\/page\/pod-scripts<\/a> but it needed some refinement and correction. <\/p>\n\n\n\n<p>Remember, this is <strong>for quick testing only<\/strong>. Especically the chmod 777 is something you do <strong>not<\/strong> want to do on a production system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export DATA=$PWD\nexport PASSWD=zo03gaeCi1\nmkdir -p $DATA\/wiki\/pgdata \nmkdir -p $DATA\/wiki\/data\nchown -R 1000:1000 wiki\nchmod -R 777 wiki\npodman pod create --name wiki -p 3001:3000\npodman run -d --pod wiki --name wiki_db -e POSTGRES_PASSWORD=$PASSWD -e POSTGRES_USER=wiki -e POSTGRES_DB=wiki -v $DATA\/wiki\/pgdata:\/var\/lib\/postgresql\/data:Z docker.io\/library\/postgres\npodman run -d --pod wiki --name wiki_srv -e DB_TYPE=postgres -e DB_HOST=wiki -e DB_PORT=5432 -e DB_USER=wiki -e DB_PASS=$PASSWD -e DB_NAME=wiki -v $DATA\/wiki\/data:\/wiki\/data:Z ghcr.io\/requarks\/wiki:2<\/code><\/pre>\n\n\n\n<p>The pod is created permanently (so the data you have entered for testing will not be lost after stopping \/ quitting \/ rebooting). After you are done with testing you can stop it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman pod stop wiki\n<\/code><\/pre>\n\n\n\n<p>Aaaand if you want to do more testing you can start it up again with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman pod start wiki<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Recently I wanted to test wiki.js on my CentOS 8 Stream VM and ran into all kinds of problems. I found a helping script at https:\/\/books.clusterapps.com\/books\/containers\/page\/pod-scripts but it needed some refinement and correction. Remember, this is for quick testing only. Especically the chmod 777 is something you do not want to do on a production &hellip; <a href=\"https:\/\/www.hyperpac.de\/?p=2480\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">wiki.js podman script<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[1224,1226,1225],"class_list":["post-2480","post","type-post","status-publish","format-standard","hentry","category-it_wordpres","tag-podman","tag-script","tag-wiki-js"],"_links":{"self":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2480"}],"version-history":[{"count":4,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2480\/revisions"}],"predecessor-version":[{"id":2484,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2480\/revisions\/2484"}],"wp:attachment":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}