aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-24 22:29:37 +0300
committerCem Keylan <cem@ckyln.com>2020-09-24 22:29:37 +0300
commita144a4daddfc3c78b53a7338ac2599b2bd1d1d75 (patch)
tree985e7b6dd5e9e002711f237f8f0677cb95b8f86f
downloaddocker-image-master.tar.gz
initial commitHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--Dockerfile3
-rw-r--r--Makefile14
-rw-r--r--README11
4 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fb04c75
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+carbs-rootfs.tar
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f1a321d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,3 @@
+FROM scratch
+ADD carbs-rootfs.tar /
+CMD ["/usr/bin/sh"]
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4a521be
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+TARBALL = carbs-rootfs.tar.xz
+URL = https://dl.carbslinux.org/releases/x86_64/${TARBALL}
+
+all: carbs-rootfs.tar
+ docker build -t carbslinux/base .
+ @echo Done.
+
+carbs-rootfs.tar:
+ @echo You will need to acquire/build Carbs Linux rootfs image. You can download
+ @echo through \'make download\', which requires curl, or you can use the URL in
+ @echo the Makefile to do it by yourself.
+
+download:
+ curl -Lo- ${URL} | xz -cd - > carbs-rootfs.tar
diff --git a/README b/README
new file mode 100644
index 0000000..a1e19cd
--- /dev/null
+++ b/README
@@ -0,0 +1,11 @@
+carbslinux docker image
+-----------------------
+
+Docker image for Carbs Linux, generated from the latest rootfs tarball. To
+build the image you can run:
+
+ make download
+ make
+
+If you want to install docker on Carbs Linux, obtain the docker repository
+from https://github.com/cemkeylan/cpt-docker