Fossil SCM

Use Fossil trunk. Use internal SQLite. Style changes for repository naming.

mistachkin 2014-09-23 05:29 UTC docker
Commit bbab17e20b974fe5b67617f25f4a8b6991026763
1 file changed +10 -12
+10 -12
--- Dockerfile
+++ Dockerfile
@@ -1,25 +1,25 @@
11
###
2
-# (experimental) Dockerfile for Fossil (version 1.29)
2
+# (experimental) Dockerfile for Fossil (Trunk)
33
#
44
# Although it works fine, there is a one little thing which is not 100%
55
# correct: the fossil repository is created at Docker image creation time,
66
# which means everyone using the same docker image will have the same
77
# server ID and project ID.
88
###
99
FROM fedora:21
1010
1111
### Now install some additional parts we will need for the build
12
-#RUN yum update -y && yum clean all
12
+# RUN yum update -y && yum clean all
1313
RUN yum install -y gcc make zlib-devel sqlite-devel openssl-devel tcl-devel && yum clean all
1414
1515
RUN groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
1616
17
-RUN curl http://www.fossil-scm.org/download/fossil-src-20140612172556.tar.gz | tar zx
18
-RUN cd fossil-src-20140612172556 && ./configure --lineedit=0 --json --with-tcl --with-tcl-stubs --with-tcl-private-stubs --disable-internal-sqlite && make;
19
-RUN cp fossil-src-20140612172556/fossil /usr/bin
20
-RUN rm -rf fossil-src-20140612172556
17
+RUN curl -o Fossil-trunk.tar.gz http://www.fossil-scm.org/index.html/tarball/Fossil-trunk.tar.gz?name=fossil-trunk | tar zx
18
+RUN cd fossil-trunk && ./configure --lineedit=0 --json --with-tcl --with-tcl-stubs --with-tcl-private-stubs && make;
19
+RUN cp fossil-trunk/fossil /usr/bin
20
+RUN rm -rf fossil-trunk
2121
RUN chmod a+rx /usr/bin/fossil
2222
RUN mkdir -p /opt/fossil
2323
RUN chown fossil:fossil /opt/fossil
2424
2525
### Build is done, remove modules no longer needed
@@ -27,14 +27,12 @@
2727
2828
USER fossil
2929
3030
ENV HOME /opt/fossil
3131
32
-RUN fossil new --empty -A admin /opt/fossil/fossil.fossil
33
-RUN fossil user password -R /opt/fossil/fossil.fossil admin admin
34
-RUN fossil cache init -R /opt/fossil/fossil.fossil
32
+RUN fossil new --empty -A admin /opt/fossil/repository.fossil
33
+RUN fossil user password -R /opt/fossil/repository.fossil admin admin
34
+RUN fossil cache init -R /opt/fossil/repository.fossil
3535
3636
EXPOSE 8080
3737
38
-CMD ["/usr/bin/fossil", "server", "/opt/fossil/fossil.fossil"]
39
-
40
-
38
+CMD ["/usr/bin/fossil", "server", "/opt/fossil/repository.fossil"]
4139
--- Dockerfile
+++ Dockerfile
@@ -1,25 +1,25 @@
1 ###
2 # (experimental) Dockerfile for Fossil (version 1.29)
3 #
4 # Although it works fine, there is a one little thing which is not 100%
5 # correct: the fossil repository is created at Docker image creation time,
6 # which means everyone using the same docker image will have the same
7 # server ID and project ID.
8 ###
9 FROM fedora:21
10
11 ### Now install some additional parts we will need for the build
12 #RUN yum update -y && yum clean all
13 RUN yum install -y gcc make zlib-devel sqlite-devel openssl-devel tcl-devel && yum clean all
14
15 RUN groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
16
17 RUN curl http://www.fossil-scm.org/download/fossil-src-20140612172556.tar.gz | tar zx
18 RUN cd fossil-src-20140612172556 && ./configure --lineedit=0 --json --with-tcl --with-tcl-stubs --with-tcl-private-stubs --disable-internal-sqlite && make;
19 RUN cp fossil-src-20140612172556/fossil /usr/bin
20 RUN rm -rf fossil-src-20140612172556
21 RUN chmod a+rx /usr/bin/fossil
22 RUN mkdir -p /opt/fossil
23 RUN chown fossil:fossil /opt/fossil
24
25 ### Build is done, remove modules no longer needed
@@ -27,14 +27,12 @@
27
28 USER fossil
29
30 ENV HOME /opt/fossil
31
32 RUN fossil new --empty -A admin /opt/fossil/fossil.fossil
33 RUN fossil user password -R /opt/fossil/fossil.fossil admin admin
34 RUN fossil cache init -R /opt/fossil/fossil.fossil
35
36 EXPOSE 8080
37
38 CMD ["/usr/bin/fossil", "server", "/opt/fossil/fossil.fossil"]
39
40
41
--- Dockerfile
+++ Dockerfile
@@ -1,25 +1,25 @@
1 ###
2 # (experimental) Dockerfile for Fossil (Trunk)
3 #
4 # Although it works fine, there is a one little thing which is not 100%
5 # correct: the fossil repository is created at Docker image creation time,
6 # which means everyone using the same docker image will have the same
7 # server ID and project ID.
8 ###
9 FROM fedora:21
10
11 ### Now install some additional parts we will need for the build
12 # RUN yum update -y && yum clean all
13 RUN yum install -y gcc make zlib-devel sqlite-devel openssl-devel tcl-devel && yum clean all
14
15 RUN groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
16
17 RUN curl -o Fossil-trunk.tar.gz http://www.fossil-scm.org/index.html/tarball/Fossil-trunk.tar.gz?name=fossil-trunk | tar zx
18 RUN cd fossil-trunk && ./configure --lineedit=0 --json --with-tcl --with-tcl-stubs --with-tcl-private-stubs && make;
19 RUN cp fossil-trunk/fossil /usr/bin
20 RUN rm -rf fossil-trunk
21 RUN chmod a+rx /usr/bin/fossil
22 RUN mkdir -p /opt/fossil
23 RUN chown fossil:fossil /opt/fossil
24
25 ### Build is done, remove modules no longer needed
@@ -27,14 +27,12 @@
27
28 USER fossil
29
30 ENV HOME /opt/fossil
31
32 RUN fossil new --empty -A admin /opt/fossil/repository.fossil
33 RUN fossil user password -R /opt/fossil/repository.fossil admin admin
34 RUN fossil cache init -R /opt/fossil/repository.fossil
35
36 EXPOSE 8080
37
38 CMD ["/usr/bin/fossil", "server", "/opt/fossil/repository.fossil"]
 
 
39

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button