Dockerfile
... ...
@@ -0,0 +1,20 @@
1
+FROM ruby:3.0
2
+## Apt
3
+RUN apt-get -y update
4
+RUN apt-get -y install libicu-dev cmake git cron nginx && rm -rf /var/lib/apt/lists/*
5
+
6
+# Install
7
+RUN gem install github-linguist
8
+RUN gem install gollum
9
+RUN gem install org-ruby
10
+
11
+RUN git config --global url."https://{token}:@github.com/".insteadOf "https://github.com/"
12
+RUN cd / && git clone https://github.com/stubbornspace/spacewiki.git
13
+# setup cron
14
+RUN chmod 0755 /spacewiki/git-push.sh
15
+RUN /usr/bin/crontab /spacewiki/cron.txt
16
+
17
+# Run
18
+EXPOSE 4567
19
+WORKDIR /spacewiki
20
+ENTRYPOINT gollum --css --allow-uploads --port 4567
Home.md
... ...
@@ -0,0 +1,6 @@
1
+---
2
+title: StubbornSapce
3
+---
4
+
5
+Welcome to the future of brain dump.
6
+
custom.css
... ...
@@ -0,0 +1,73 @@
1
+body{
2
+ border-top:5px solid #333;
3
+background:#fff url(./uploads/bg.png) repeat-x;
4
+ color:#555;
5
+ line-height:1.5 !important;
6
+}
7
+
8
+p, li {
9
+font-size: 1.1rem !important;
10
+}
11
+
12
+li::marker {
13
+color: #CC0000;
14
+}
15
+
16
+
17
+
18
+.text-md-left {
19
+margin-top: 3rem !important;
20
+}
21
+
22
+h1 {
23
+color:#E87830;
24
+}
25
+
26
+h2{
27
+ font-size:1.8em;
28
+ color:#B4C24B;
29
+}
30
+
31
+h3{
32
+ font-size:1.6em;
33
+color:#E87830;
34
+}
35
+
36
+a{
37
+ color:#579;
38
+ text-decoration:none;
39
+}
40
+a:hover{
41
+ color:#CC0000;
42
+}
43
+.btn-primary {
44
+background:#579;
45
+}
46
+
47
+.btn-primary:hover {
48
+background-color: #B4C24B;
49
+color:white;
50
+
51
+}
52
+
53
+img {
54
+display: block;
55
+margin-left: auto;
56
+margin-right: auto;
57
+width: 90%;
58
+max-width: 600px !important;
59
+
60
+}
61
+
62
+.container-lg {
63
+max-width: 860px;
64
+margin-right: auto;
65
+margin-left: auto;
66
+padding-bottom: 3rem;
67
+}
68
+
69
+.list ul {
70
+columns: 2;
71
+-webkit-columns: 2;
72
+-moz-columns: 2;
73
+}
... ...
\ No newline at end of file