Skip to content

Commit

Permalink
fix quagga on debian-9 and ubuntu-18.04
Browse files Browse the repository at this point in the history
update quaggaboot.sh to call create /run/quagga for pid and other needed files
update quaggaboot.sh to call init script if exists
set debian-9 as latest now that quagga works
modify README accordingly
  • Loading branch information
oikuda committed May 15, 2019
1 parent 891705b commit ccb4927
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ different variations:
## Versions
Currently supported versions are as follows:

| Folder | Distribution and version | Image name | Comment |
| ----------------- | ------------------------ | -------------------------------- | --------------------------------------- |
| latest (debian-8) | Debian 8 (jessie) | imunes/template:latest | old packages, but working |
| debian-9 | Debian 9 (stretch) | imunes/template:debian-9 | newer packages, __quagga__ doesn't work |
| debian-9-min | Debian 9 minimal | imunes/template:debian-9-min | minimal, __quagga__ doesn't work |
| ubuntu-18.04 | Ubuntu 18.04 LTS | imunes/template:ubuntu-18.04 | __quagga__ doesn't work (systemd issue) |
| ubuntu-18.04-min | Ubuntu 18.04 LTS minimal | imunes/template:ubuntu-18.04-min | minimal, __quagga__ doesn't work |
| Folder | Distribution and version | Image name | Comment |
| ----------------- | ------------------------ | -------------------------------- | ------------------------------------ |
| latest (debian-8) | Debian 8 (jessie) | imunes/template:latest | old packages, but tested and working |
| debian-9 | Debian 9 (stretch) | imunes/template:debian-9 | newer packages, needs testing |
| debian-9-min | Debian 9 minimal | imunes/template:debian-9-min | minimal edition |
| ubuntu-18.04 | Ubuntu 18.04 LTS | imunes/template:ubuntu-18.04 | ubuntu release, needs testing |
| ubuntu-18.04-min | Ubuntu 18.04 LTS minimal | imunes/template:ubuntu-18.04-min | minimal edition |

## Credits
This image is based on [Phusion](http://www.phusion.nl/) baseimage-docker and
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NAME="imunes/template"
# - https://github.com/docker/for-linux/issues/73
# - https://github.com/docker/for-linux/issues/502
ULIMITS="--ulimit nofile=10240:10240 --ulimit nproc=65356:65536"
LATEST_FOLDER="debian-8"
LATEST_FOLDER="debian-9"

tag="latest"
if [[ -n "$1" ]]; then
Expand Down
9 changes: 8 additions & 1 deletion common/quaggaboot.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/sh

/etc/init.d/quagga start
run_dir='/run/quagga'
mkdir -p $run_dir
chown quagga:quagga $run_dir

init_file='/etc/init.d/quagga'
if [ -f $init_file ]; then
$init_file start
fi

zebra -dP0

Expand Down

0 comments on commit ccb4927

Please sign in to comment.