Commit e9d1df41 authored by Administrator's avatar Administrator
Browse files

-

parents
volumes/usr/share/**
volumes/var/lib/**
version: '2'
networks:
# for use with a reverse proxy
backend:
driver: bridge
services:
yacy:
build:
context: ./docker/
dockerfile: Dockerfile
image: default-ubuntu-16-04:dirty
restart: always
expose:
- 22
- 80
- 443
ports:
- "22:22"
- "80:8090"
networks:
- backend
volumes:
- ./volumes/usr/share/yacy:/usr/share/yacy
- ./volumes/var/lib/yacy:/var/lib/yacy
- ./volumes/var/www:/var/www
- ./volumes/opt:/opt
- ./volumes/root/uniba.de/share:/root/uniba.de/share
- ./volumes/.git:/.git
FROM ubuntu:16.04
RUN rm /etc/apt/sources.list
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y \
bash-completion \
vim \
git \
sudo \
rsync \
cron \
byobu \
openssh-server \
curl \
rsync
#DEBIAN_FRONTEND=noninteractive
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
openjdk-8-jre-headless
RUN echo 'deb http://debian.yacy.net ./' >> /etc/apt/sources.list.d/yacy.list
RUN wget http://debian.yacy.net/yacy_orbiter_key.asc -O- | apt-key add -
RUN apt-key advanced --keyserver pgp.net.nz --recv-keys 03D886E7
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
yacy
# mysql-server
#
#
# RUN locale-gen de_DE.utf8 && locale -a
#
# RUN a2ensite default-ssl && a2enmod ssl
# RUN make-ssl-cert generate-default-snakeoil --force-overwrite
#
# RUN a2dismod mpm_event && a2enmod mpm_prefork && a2enmod headers
#
#
RUN mkdir -p /root/uniba.de/initial/usr/share/yacy
RUN rsync -a /usr/share/yacy/ /root/uniba.de/initial/usr/share/yacy/
RUN mkdir -p /root/uniba.de/initial/var/lib/yacy
RUN rsync -a /var/lib/yacy/ /root/uniba.de/initial/var/lib/yacy/
#
ADD start.sh /start
RUN chmod +x /start
#
# RUN mkdir -p /root/uniba.de/initial/remove-after-run
# ADD setup.sh /root/uniba.de/initial/remove-after-run/setup.sh
#
RUN mkdir -p /root/.ssh/
ADD authorized_keys2 /root/.ssh/authorized_keys2
CMD ["/start", "-D"]
rsync -a /root/uniba.de/initial/var/lib/yacy/ /var/lib/yacy/
rsync -a /root/uniba.de/initial/usr/share/yacy/ /usr/share/yacy/
#!/bin/bash
rsync -a -v /root/uniba.de/share/overlay/ /
#z.B.
#chown -R www-data /opt/otrs/
#a2ensite otrs
#service apache2 restart
#
# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ xenial main restricted
#deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial main restricted
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates main restricted
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial universe
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial universe
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates universe
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial multiverse
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial multiverse
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates multiverse
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ubuntu.mirror.lrz.de/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://ubuntu.mirror.lrz.de/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu xenial main
# deb-src http://extras.ubuntu.com/ubuntu xenial main
#!/bin/bash
sh /root/uniba.de/initial/remove-after-run/setup.sh
rm /root/uniba.de/initial/remove-after-run/setup.sh
mkdir /root/.ssh/
touch /root/.ssh/authorized_keys2
chmod 700 /root/.ssh/authorized_keys2
/sbin/init
service ssh restart
service rsyslog restart
#service apache2 restart
#service mysql restart
/usr/share/yacy/bin/passwd.sh goodpassword
/etc/init.d/yacy restart
cron
tail -f /start
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment