Project Michael Dings Impressum Login
Render-Since-Day-120 Render-Since-Day-110 Render-Since Day-14 Render-Since-Day-42 Render-Before-Day-42 Render-Before-Day-14 Dead-Dings-Files

Dings-Workflow

I am a Work-Flow for the Dings-Project.

Insider-Note

Since Day-110 we made some of the most important Repositories private, therefore the Project cannot be built any more by “Outsiders”.

Render-Since-Day-120

Assume a User “Muffi” wants to setup a new Dings-System.

Setup Dings_Dir

$ vi ~/.bashrc
export Dings_Dir="/Users/Schnuffi/All-Dings/111"
export PATH=$PATH:$Dings_Dir/Work-Dir
:wq
$ source ~/.bashrc

Clone 111

$ cd /Users/Schnuffi/All-Dings
$ git clone git@github.com:All-Dings/111.git
$ mkdir Big-Data
$ mkdir Repositories.Local

Create Local-Repositories

$ cd Repositories.Local
$ git init --bare 1971091180.git
$ cd ../111

Edit Dings-Config

$ vi .Dings/Config/Dings-Config

Keep the following Repositories:

diff --git a/.Dings/Config/Dings-Config b/.Dings/Config/Dings-Config
index a017bcb..39fd3d3 100644
--- a/.Dings/Config/Dings-Config
+++ b/.Dings/Config/Dings-Config
@@ -1,26 +1,17 @@
 {
        "Top_Bar_Items_Dict": {
                "Project":      "23",
-               "Muffi":        "21",
+               "Schnuffi":     "1971091180",
                "Dings":        "17"
        },
        "Git": {
-               "Name":         "Muffi Holzheu",
-               "EMail":        "Muffi@Holzheu.De",
+               "Name":         "Schnuffi Holzheu",
+               "EMail":        "Schnuffi@Holzheu.de",
                "Repository_List": [
                        "git@github.com:All-Dings/0.git",
-                       "file:///Users/Muffi/All-Dings/Repositories.Local/0-secrets-local.git",
-                       "file:///Users/Muffi/All-Dings/Repositories.Local/300000007-secrets.git",
                        "git@github.com:All-Dings/400000000.git",
-                       "file:///Users/Muffi/All-Dings/Repositories.Local/1000010000.git"
+                       "file:///Users/Schnuffi/All-Dings/Repositories.Local/1971091180.git"
                ]
        }
 }

Edit Dings-Config-Server

$ vi .Dings/Config/Dings-Config-Server
diff --git a/.Dings/Config/Dings-Config-Server b/.Dings/Config/Dings-Config-Server
index c6e95f0..75d270b 100644
--- a/.Dings/Config/Dings-Config-Server
+++ b/.Dings/Config/Dings-Config-Server
@@ -3,11 +3,7 @@
                "Name":         "dings.site",
                "Admin_EMail":  "Admin@Dings.Site",
                "Http": {
-                       "Port":         "80"
-               },
-               "Https": {
-                       "Key":          "888888896.key",
-                       "Certificate":  "300200001.crt"
+                       "Port":         "8080"
                }
        },
        "Dings_Server": {

Install Docker on Host

See: Howto-Setup-AWS-EC2

Make non-root User access Docker:

$ sudo usermod -aG docker $USER

Logout and restart your Session to activate the new Setting.

Build Docker-Image

$ make docker

Build Web-Site

$ make workdir
$ dings-host docker run bash
root@dings:/111 $ make render

Edit /etc/host.conf

$ vi /etc/host.conf
127.0.0.1   localhost.dings.site

Run Dings-Site

$ dings-host docker web start

Happy Surfing

Goto: Http://Localhost.Dings.Site

Setup Local-Repository

$ cd .Dings/Repositories/1971091180
$ ln -s ../.Big-Data .Big-Data
$ git add .Big-Data
$ git commit -m "Add Big-Data"

Add new Content to Local-Repository

Add first Number-File

$ vi 3000000001.md
$ cat 3000000001.md
# My-first-Dings-Page

I am a [Web-Page](2000253.md).
$ git add 3000000001.md
$ git commit -m "Add My-first-Dings-Page"
$ git push

Add first Big-Data-File

$ shasum -a 1 ~/My-Picture.jpg
59fa41cebd6bfaf196da331ada26d254a5035e01  ~/My-Picture.jpg
$ cp ~/My-Picture.jpg .Big-Data/3000000002-0-59fa41cebd6bfaf196da331ada26d254a5035e01.jpg
$ ln -s .Big-Data/3000000002-0-59fa41cebd6bfaf196da331ada26d254a5035e01.jpg 3000000002.jpg
$ vi 3000000002.md
$ cat 3000000002.md
# My-First-Image

I am an [Image](30000002.md).

<a href="30000002.jpg">
  <img src="30000002.jpg" alt="My-First-Image" style="width:100%;"/>
</a>
$ git add 3000000002.*
$ git commit -m "Add My-First-Image"
$ ls /Users/Schnuffi/All-Dings/Big-Data
3000000002-0-59fa41cebd6bfaf196da331ada26d254a5035e01.jpg

Add Code

$ cd .Dings/Repositories/300000007
$ git checkout -b My-Devel-Branch

Rebuild Pages

$ make workdir
$ dings-host docker run bash
$ make render

Render-Since-Day-110

We made some of the most importante Repositories private, therefore the Project cannot be built any more from “Outsiders”.

Render-Since Day-14

Use the following Work-Flow to render the Day-24 using the Bash-Shell:

Define the Day

$ export Day-X="Day-24"
✔ ~ 

Check-Out Rendering-Repository

$ git clone git@github.com:All-Dings/111.git
Cloning into '111'...
remote: Enumerating objects: 1836, done.
remote: Counting objects: 100% (836/836), done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 1836 (delta 769), reused 776 (delta 758), pack-reused 1000
Receiving objects: 100% (1836/1836), 4.25 MiB | 5.93 MiB/s, done.
Resolving deltas: 100% (918/918), done.

Change into the Rendering-Directory

$ cd 111
✔ ~/111 [Master|✔]

Initialize Git-Sub-Modules

✔ ~/111 [Master|✔] $ git submodule update --init --recursive 
Submodule '0' (git@github.com:All-Dings/0.git) registered for path '0'
Submodule '1000001000' (git@github.com:All-Dings/1000001000.git) registered for path '1000001000'
Submodule '140100000' (git@github.com:All-Dings/140100000.git) registered for path '140100000'
Submodule '1997080300' (git@github.com:All-Dings/1997080300.git) registered for path '1997080300'
Submodule '2000001' (git@github.com:All-Dings/2000001.git) registered for path '2000001'
Submodule '250000000' (git@github.com:All-Dings/250000000.git) registered for path '250000000'
Submodule '260010000' (git@github.com:All-Dings/260010000.git) registered for path '260010000'
Submodule '888' (git@github.com:All-Dings/888.git) registered for path '888'
Cloning into '/Users/michael-holzheu/111/0'...
Cloning into '/Users/michael-holzheu/111/1000001000'...
Cloning into '/Users/michael-holzheu/111/140100000'...
Cloning into '/Users/michael-holzheu/111/1997080300'...
Cloning into '/Users/michael-holzheu/111/2000001'...
Cloning into '/Users/michael-holzheu/111/250000000'...
Cloning into '/Users/michael-holzheu/111/260010000'...
Cloning into '/Users/michael-holzheu/111/888'...
Submodule path '0': checked out '4cb8a12de63905a67b54cc39e6487ecdb9114bab'
Submodule path '1000001000': checked out 'b1975a614c26c2fec7af3ed4761b78ead334ffd4'
Submodule path '140100000': checked out '69843c9ad560d4ba825949bc085baf7ab146c89f'
Submodule path '1997080300': checked out '225dcda35e561abd4fcbabfa51abcc4ab9a4a0df'
Submodule path '2000001': checked out '6e5b601ce0766bca410269ac8c607cec571d7947'
Submodule path '250000000': checked out '74876a4c5ddf982efff47758da8ebfae3ac965a0'
Submodule path '260010000': checked out 'a5bf2e44fd7785f0aa4dc64bd3e8daa815422e88'
Submodule path '888': checked out '32c9fe7f866f04d9f90ad6ec8a1cfe824ebceaa5'

Checkout the Day-X-Tag

✔ ~/111 [Master|✔] git checkout $Day-X
Note: switching to 'Day-24'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 5e1612f Update Sub-Modules
✔ ~/111 [Master|✔] git submodule foreach "git checkout $Day-x"
Entering '0'
Previous HEAD position was e9c7bbe Finish Day-23
HEAD is now at 6e42835 Finish Day-24
Entering '1000001000'
HEAD is now at b1975a6 Make README.md a Soft-Link to 1000001000.md
Entering '140100000'
HEAD is now at 69843c9 Make README.md a Soft-Link to 140100000.md
Entering '1997080300'
HEAD is now at 225dcda Make README.md a Soft-Link to 1997080300.md
Entering '250000000'
HEAD is now at 74876a4  Make README.md a Soft-Link to 250000000.md
Entering '260010000'
HEAD is now at a5bf2e4 Make README.md a Soft-Link to 260010000.md
Entering '888'
HEAD is now at 32c9fe7 Make README.md a Soft-Link to 888.md

Build Html-Pages

Render-Since-Day-42

✔ ~/111 [Day-42|✔] make
For rendering all Dings do the following:

$ export Dings_Day=Day-XX
$ make workdir
$ make render
✔ ~/111 [Day-42|✔] make workdir
✔ ~/111 [Day-42|✔] make render

Render-Before-Day-42

✔ ~/111 [Day-24|✔] $ make -f 300001000.make
ln -f 0/0.jpg 0.jpg
ln -f 0/0.md 0.md

[...]

sed -i '' -E 's/(href="[0-9]+)\.md/\1\.html/g'  README.html
pandoc --standalone --template 300000002.htm  300000006.md -o  index.html
[WARNING] This document format requires a nonempty <title> element.
  Defaulting to '300000006' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".
sed -i '' -E 's/(href="[0-9]+)\.md/\1\.html/g'  index.html
echo "All-Things-Make-File"
All-Things-Make-File

Open local index.html with your favourite Web-Browser

Use e.g. the Mac-Os-Finder or the Ms-File-Explorer to navigate into the 111-Directory and then open the index.html File.

Render-Before-Day-14

Before the Day-14 it is possible to render the Project, but it is a bit more complicated. If you really need, that, read About-All-Dings to find out, how this works.

Dead-Dings-Files

If we create a duplicate Ding-File we have two Options. If the Dings-File has not used, we can silently delete the File, otherwise we write to the less used File the following Text:

# Dings-Name (DEAD/DUPLICATE)

This Dings-File is no longer maintained, [here](NEW-NUMBER.md) you can find its living Gemini.

We also mark the Dings-File as DEAD in the overall Naming-File:

60044.md       Technology
60043.md       Output (DEAD)
60042.md       Input