diff --git a/content/posts/2019-02.md b/content/posts/2019-02.md index 8f293c350..82a33bb82 100644 --- a/content/posts/2019-02.md +++ b/content/posts/2019-02.md @@ -725,5 +725,18 @@ $ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser ``` - And it's all running without root! +- Then re-create my Artifactory container as well, taking into account ulimit open file requirements by Artifactory as well as the user limitations caused by rootless subuid mappings: + +``` +$ podman volume create artifactory_data +artifactory_data +$ podman create --ulimit nofile=32000:32000 --name artifactory -v artifactory_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss +$ buildah unshare +$ chown -R 1030:1030 ~/.local/share/containers/storage/volumes/artifactory_data +$ exit +$ podman start artifactory +``` + +- More on the [subuid permissions issue with rootless containers here](https://podman.io/blogs/2018/10/03/podman-remove-content-homedir.html) diff --git a/docs/2019-02/index.html b/docs/2019-02/index.html index 179ae1460..89dbaf6ca 100644 --- a/docs/2019-02/index.html +++ b/docs/2019-02/index.html @@ -42,7 +42,7 @@ sys 0m1.979s - + @@ -89,9 +89,9 @@ sys 0m1.979s "@type": "BlogPosting", "headline": "February, 2019", "url": "https://alanorth.github.io/cgspace-notes/2019-02/", - "wordCount": "4131", + "wordCount": "4200", "datePublished": "2019-02-01T21:37:30+02:00", - "dateModified": "2019-02-14T21:30:51+02:00", + "dateModified": "2019-02-15T17:30:02+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -981,6 +981,20 @@ $ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser + +
$ podman volume create artifactory_data
+artifactory_data
+$ podman create --ulimit nofile=32000:32000 --name artifactory -v artifactory_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss
+$ buildah unshare
+$ chown -R 1030:1030 ~/.local/share/containers/storage/volumes/artifactory_data
+$ exit
+$ podman start artifactory
+
+ + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 9fdec9d2d..ce7717ecd 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2019-02/ - 2019-02-14T21:30:51+02:00 + 2019-02-15T17:30:02+02:00 @@ -209,7 +209,7 @@ https://alanorth.github.io/cgspace-notes/ - 2019-02-14T21:30:51+02:00 + 2019-02-15T17:30:02+02:00 0 @@ -220,7 +220,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-02-14T21:30:51+02:00 + 2019-02-15T17:30:02+02:00 0 @@ -232,13 +232,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2019-02-14T21:30:51+02:00 + 2019-02-15T17:30:02+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-02-14T21:30:51+02:00 + 2019-02-15T17:30:02+02:00 0