Browse Source
Merge branch 'schickling:master' into pg13
pull/132/head
Georg Ledermann
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with
41 additions and
39 deletions
beanstalkd-console/install.sh
beanstalkd/install.sh
hugin/install.sh
jekyll/install.sh
latex/Dockerfile
latex/install.sh
mailcatcher/Dockerfile
mailcatcher/README.md
mysql-backup-s3/backup.sh
mysql-backup-s3/install.sh
mysql-backup-s3/run.sh
nodejs/install.sh
octave/install.sh
postgres-backup-s3/README.md
postgres-backup-s3/backup.sh
postgres-backup-s3/install.sh
postgres-backup-s3/run.sh
postgres-restore-s3/install.sh
postgres-restore-s3/restore.sh
redis-commander/install.sh
rust/install.sh
s3cmd/install.sh
s3cmd/run.sh
scala-sbt-docker/install.sh
swagger-ui/run.sh
@ -1,7 +1,7 @@
#! /bin/sh
# exit if a command fails
set -e
set -eo pipefail
# download
curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
@ -1,9 +1,9 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
version = "1.10 "
version = "1.11 "
# install curl (needed to install rust)
apt-get update && apt-get install -y curl build-essential
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install hugin & panotools
apt-get update && apt-get install -y hugin
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install ruby 1.9.1
apt-get update && apt-get install -y ruby ruby-dev build-essential
@ -1,4 +1,4 @@
FROM debian:wheezy
FROM debian:buster
LABEL maintainer = "Johannes Schickling <schickling.j@gmail.com>"
ENV DEBIAN_FRONTEND noninteractive
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install full texlive distribution
apt-get update && apt-get install -y texlive-full
@ -9,13 +9,15 @@ RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
build-base \
sqlite-dev \
&& gem install mailcatcher -v 0.6.5 --no-ri --no-rdoc \
&& gem install mailcatcher -v 0.8.0 --no-ri --no-rdoc \
&& apk del .build-deps
ENV HTTPPATH = "/"
# smtp port
EXPOSE 1025
# webserver port
EXPOSE 1080
CMD [ "mailcatcher" , "--no-quit " , "--foreground" , " --ip=0.0.0.0" ]
CMD [ "sh" , "-c " , "mailcatcher --no-quit --foreground --ip=0.0.0.0 --http-path $HTTPPATH " ]
@ -9,3 +9,10 @@ $ docker run -d -p 1080:1080 --name mailcatcher schickling/mailcatcher
```
Link the container to another container and use the mailcatcher SMTP port `1025` via a ENV variable like `$MAILCATCHER_PORT_1025_TCP_ADDR` .
## HTTP Path Support
You can run the web interface under a different root by specifying the environmental variable HTTPPATH. This can be used if you're proxying the incoming connection.
```sh
$ docker run -d -p 1080:1080 -e HTTPPATH="mailcatcher" --name mailcatcher schickling/mailcatcher
```
@ -1,6 +1,6 @@
#! /bin/sh
#!/bin/sh
set -e
set -eo pipefail
if [ " ${ S3_ACCESS_KEY_ID } " = = "**None**" ] ; then
echo "Warning: You did not set the S3_ACCESS_KEY_ID environment variable."
@ -1,8 +1,7 @@
#! /bin/sh
#!/bin/sh
# exit if a command fails
set -e
set -eo pipefail
apk update
@ -10,16 +9,8 @@ apk update
apk add mysql-client
# install s3 tools
apk add python py-pip
apk add python3 py3 -pip
pip install awscli
apk del py-pip
# install go-cron
apk add curl
curl -L --insecure https://github.com/odise/go-cron/releases/download/v0.0.6/go-cron-linux.gz | zcat > /usr/local/bin/go-cron
chmod u+x /usr/local/bin/go-cron
apk del curl
# cleanup
rm -rf /var/cache/apk/*
@ -1,6 +1,6 @@
#! /bin/sh
#!/bin/sh
set -e
set -eo pipefail
if [ " ${ S3_S3V4 } " = "yes" ] ; then
aws configure set default.s3.signature_version s3v4
@ -9,5 +9,6 @@ fi
if [ " ${ SCHEDULE } " = "**None**" ] ; then
sh backup.sh
else
exec go-cron " $SCHEDULE " /bin/sh backup.sh
echo " $SCHEDULE /bin/sh /backup.sh " > /etc/crontabs/root
exec crond -d 8 -f
fi
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install node & npm
apt-get update && apt-get install -y nodejs npm
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install octave 3.6.2 (less needed as frontend)
apt-get update && apt-get install -y octave less
@ -28,6 +28,7 @@ pgbackups3:
S3_SECRET_ACCESS_KEY: secret
S3_BUCKET: my-bucket
S3_PREFIX: backup
POSTGRES_HOST: host
POSTGRES_DATABASE: dbname
POSTGRES_USER: user
POSTGRES_PASSWORD: password
@ -1,6 +1,6 @@
#! /bin/sh
set -e
set -eo pipefail
set -o pipefail
if [ " ${ S3_ACCESS_KEY_ID } " = "**None**" ] ; then
@ -1,7 +1,7 @@
#! /bin/sh
# exit if a command fails
set -e
set -eo pipefail
apk update
@ -1,6 +1,6 @@
#! /bin/sh
set -e
set -eo pipefail
if [ " ${ S3_S3V4 } " = "yes" ] ; then
aws configure set default.s3.signature_version s3v4
@ -1,7 +1,7 @@
#! /bin/sh
# exit if a command fails
set -e
set -eo pipefail
apk update
@ -1,6 +1,6 @@
#! /bin/sh
set -e
set -eo pipefail
set -o pipefail
if [ " ${ S3_ACCESS_KEY_ID } " = "**None**" ] ; then
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install node & npm
apt-get update && apt-get install -y nodejs npm
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install curl (needed to install rust)
apt-get update && apt-get install -y curl gdb g++-multilib lib32stdc++6 libssl-dev libncurses5-dev
@ -1,7 +1,7 @@
#! /bin/sh
# exit if a command fails
set -e
set -eo pipefail
# install s3cmd
apk update
@ -1,6 +1,6 @@
#! /bin/sh
set -e
set -eo pipefail
echo "Running s3cmd ..."
@ -1,7 +1,7 @@
#! /bin/bash
# exit if a command fails
set -e
set -eo pipefail
# install node & npm
apt-get update && apt-get install -y nodejs npm
@ -1,6 +1,6 @@
#! /bin/sh
set -e
set -eo pipefail
replace_in_index ( ) {
if [ " $1 " != "**None**" ] ; then