summaryrefslogtreecommitdiff
path: root/contrib/build-using-docker/README.md
diff options
context:
space:
mode:
authorAndreas Fankhauser (@tux-six)2022-07-06 22:24:30 +0200
committerAndreas Fankhauser (@tux-six)2022-07-06 22:24:30 +0200
commit6d4c51fe445b80f56506df7541c8d4fd2488dbd1 (patch)
tree0ce631914071a559441698d3d7a84e104d7b4395 /contrib/build-using-docker/README.md
parent0d745cdb688eab40094c434d2564515705ce686b (diff)
parentb627374773e3256fbd08fb204fcced3233b9c97e (diff)
downloadbulk-ln-6d4c51fe445b80f56506df7541c8d4fd2488dbd1.zip
bulk-ln-6d4c51fe445b80f56506df7541c8d4fd2488dbd1.tar.gz
Merge 'contrib Dockerfile for tarball' to master
Diffstat (limited to 'contrib/build-using-docker/README.md')
-rw-r--r--contrib/build-using-docker/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/build-using-docker/README.md b/contrib/build-using-docker/README.md
new file mode 100644
index 0000000..503136e
--- /dev/null
+++ b/contrib/build-using-docker/README.md
@@ -0,0 +1,29 @@
+
+Showcase how to build and install
+=================================
+
+Make and install inside a dockerimage.
+
+```sh
+ curl -sSL http://git.hiddenalpha.ch/bulk-ln.git/plain/contrib/build-using-docker/Dockerfile | sudo docker build . -f -
+```
+
+Afer that we can use the image hash printed in last line to refer to our built
+image (replace IMG_REF in commands below by that hash). Alternatively we could
+add [`--tag`](https://docs.docker.com/engine/reference/commandline/build/)
+option to our build command to give the resulting image a name.
+
+Most probably we wanna get the distribution archive. We can copy it out the
+dockerimage to our host using:
+
+```sh
+ sudo docker run --rm -i IMG_REF sh -c 'true && cd dist && tar c *' | tar x
+```
+
+Or if we wanna browse the image or play around with the built utility we could
+launch a shell. Once in the shell, try `bulk-ln --help`.
+
+```sh
+ sudo docker run --rm -ti IMG_REF sh
+```
+