initial checkin

This commit is contained in:
Radar231 2023-11-18 22:10:10 -05:00
commit 73aa72886f
3 changed files with 56 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.tar.gz

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# nb twiki docker deployment
## Introduction
This is a docker-compose configuration to deploy a twiki container with the nb data.
## Links
* https://hub.docker.com/r/mhvelplund/twiki-docker
* https://hub.docker.com/r/mhvelplund/twiki-docker/dockerfile
## Directories
```
docker_twiki/
├── data/
│ ├── data/
│ └── pub/
└── docker-compose.yml
```

34
dockerfile Normal file
View File

@ -0,0 +1,34 @@
FROM ubuntu:14.04
MAINTAINER Thomas Berger <th.berger@it.piratenpartei.de>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq
RUN apt-get install -y apache2 rcs diffutils zip cron make gcc g++ pkg-config libssl-dev
ADD http://sourceforge.net/projects/twiki/files/TWiki%20for%20all%20Platforms/TWiki-6.0.0/TWiki-6.0.0.tgz/download /TWiki-6.0.0.tgz
RUN tar xzf TWiki-6.0.0.tgz -C /var/www
RUN rm TWiki-6.0.0.tgz
ADD perl/cpanfile /tmp/cpanfile
ADD http://cpansearch.perl.org/src/THALJEF/Pinto-0.09995/etc/cpanm /tmp/cpanm
RUN chmod +x /tmp/cpanm
RUN /tmp/cpanm -l /var/www/twiki/lib/CPAN --installdeps /tmp/
RUN rm -rf /.cpanm /tmp/cpanm /tmp/cpanfile /var/www/twiki/lib/CPAN/man
ADD configs/vhost.conf /etc/apache2/sites-available/twiki.conf
ADD configs/LocalLib.cfg /var/www/twiki/bin/LocalLib.cfg
ADD configs/LocalSite.cfg /var/www/twiki/lib/LocalSite.cfg
ADD configs/setlib.cfg /var/www/twiki/bin/setlib.cfg
ADD bin/prepare-env.sh /prepare-env.sh
ADD bin/run.sh /run.sh
RUN a2enmod cgi expires
RUN a2dissite '*'
RUN a2ensite twiki.conf
RUN chown -cR www-data: /var/www/twiki
RUN chmod +x /prepare-env.sh
VOLUME ["/data"]
ENTRYPOINT "/run.sh"
EXPOSE 80