Compare commits
7 commits
master
...
run-locall
Author | SHA1 | Date | |
---|---|---|---|
|
8db91abf9e | ||
|
767ba26a9c | ||
|
2c1dc14eaf | ||
|
1f815bad85 | ||
|
d3a44eb38e | ||
|
dbb500f8e8 | ||
|
0857806acf |
9 changed files with 42 additions and 15 deletions
|
@ -5,4 +5,5 @@ checkout = git clone https://github.com/CAcertOrg/cats cacert-cats
|
||||||
checkout = git clone git+ssh://git.cacert.org/srv/git/cacert-mgr.git cacert-mgr
|
checkout = git clone git+ssh://git.cacert.org/srv/git/cacert-mgr.git cacert-mgr
|
||||||
|
|
||||||
[cacert-software]
|
[cacert-software]
|
||||||
checkout = git clone git+ssh://git.cacert.org/srv/git/cacert-devel.git cacert-software
|
#checkout = git clone git+ssh://git.cacert.org/srv/git/cacert-devel.git cacert-software
|
||||||
|
checkout = git clone -b run-locally https://github.com/jandd/cacert-devel.git cacert-software
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
FROM debian:jessie
|
FROM debian/eol:jessie
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -i \
|
||||||
|
-e 's@\(^deb http://deb\..*\)$@#\1@' \
|
||||||
|
-e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \
|
||||||
|
/etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
@ -42,6 +42,7 @@ services:
|
||||||
CRL_DIRECTORY: /srv/certs/crl
|
CRL_DIRECTORY: /srv/certs/crl
|
||||||
DEFAULT_HOSTNAME: www.cacert.localhost
|
DEFAULT_HOSTNAME: www.cacert.localhost
|
||||||
SECURE_HOSTNAME: secure.cacert.localhost
|
SECURE_HOSTNAME: secure.cacert.localhost
|
||||||
|
TVERIFY_HOSTNAME: tverify.cacert.localhost
|
||||||
INSECURE_PORT: 8080
|
INSECURE_PORT: 8080
|
||||||
SECURE_PORT: 8443
|
SECURE_PORT: 8443
|
||||||
RETURN_ADDRESS: "returns@cacert.localhost"
|
RETURN_ADDRESS: "returns@cacert.localhost"
|
||||||
|
@ -101,6 +102,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- certstaging:/srv/certs
|
- certstaging:/srv/certs
|
||||||
- signersockets:/srv/sockets
|
- signersockets:/srv/sockets
|
||||||
|
- webdbincl:/home/cacert/www/includes/
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- smtp
|
- smtp
|
||||||
|
@ -127,3 +129,4 @@ volumes:
|
||||||
certstaging: { }
|
certstaging: { }
|
||||||
signersockets: { }
|
signersockets: { }
|
||||||
signerdata: { }
|
signerdata: { }
|
||||||
|
webdbincl: { }
|
||||||
|
|
|
@ -23,7 +23,7 @@ if [ ! -f /srv/ca/gpg/gpg_root_0/secring.gpg ]; then cp /srv/testca/gpg/gpg_root
|
||||||
if [ ! -f /srv/ca/gpg/gpg_root_0/pubring.gpg ]; then cp /srv/testca/gpg/gpg_root_0/pubring.gpg /srv/ca/gpg/gpg_root_0/pubring.gpg; fi
|
if [ ! -f /srv/ca/gpg/gpg_root_0/pubring.gpg ]; then cp /srv/testca/gpg/gpg_root_0/pubring.gpg /srv/ca/gpg/gpg_root_0/pubring.gpg; fi
|
||||||
|
|
||||||
rm -f /srv/sockets/signer
|
rm -f /srv/sockets/signer
|
||||||
socat -d -d PTY,link=/dev/ttyUSB0 UNIX-LISTEN:/srv/sockets/signer 2>&1 &
|
socat -d -d "PTY,link=${SERIAL_PORT}" UNIX-LISTEN:/srv/sockets/signer 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd /srv/CommModule/
|
cd /srv/CommModule/
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
socat -d -d UNIX:/srv/sockets/signer PTY,link=/dev/ttyS0 2>&1 &
|
export SERIAL_PORT=/dev/ttyUSB0
|
||||||
|
|
||||||
|
socat -d -d "UNIX:/srv/sockets/signer" "PTY,link=${SERIAL_PORT}" 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
export SERIAL_PORT=/dev/ttyS0
|
echo "<?php mysql_connect(\"${MYSQL_WEBDB_HOSTNAME}\", \"${MYSQL_WEBDB_USER}\", \"${MYSQL_WEBDB_PASSWORD}\");" > "/home/cacert/www/includes/mysql.php"
|
||||||
|
|
||||||
cd /srv/CommModule/
|
cd /srv/CommModule/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
FROM debian:jessie
|
FROM debian/eol:jessie
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -i \
|
||||||
|
-e 's@\(^deb http://deb\..*\)$@#\1@' \
|
||||||
|
-e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \
|
||||||
|
/etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
FROM debian:jessie
|
FROM debian/eol:jessie
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -i \
|
||||||
|
-e 's@\(^deb http://deb\..*\)$@#\1@' \
|
||||||
|
-e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \
|
||||||
|
/etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
gnupg \
|
gnupg \
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
FROM debian:jessie
|
FROM debian/eol:jessie
|
||||||
|
|
||||||
COPY testca/root/ca.crt.pem /usr/local/share/ca-certificates/testca_root.crt
|
COPY testca/root/ca.crt.pem /usr/local/share/ca-certificates/testca_root.crt
|
||||||
COPY testca/class3/ca.crt.pem /usr/local/share/ca-certificates/testca_class3.crt
|
COPY testca/class3/ca.crt.pem /usr/local/share/ca-certificates/testca_class3.crt
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -i \
|
||||||
|
-e 's@\(^deb http://deb\..*\)$@#\1@' \
|
||||||
|
-e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \
|
||||||
|
/etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
FROM debian:jessie
|
FROM debian/eol:jessie
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -i \
|
||||||
|
-e 's@\(^deb http://deb\..*\)$@#\1@' \
|
||||||
|
-e 's@\(^deb http://security\..*\)$@deb http://archive.debian.org/debian-security jessie/updates main@' \
|
||||||
|
/etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
@ -35,6 +39,7 @@ RUN apt-get update \
|
||||||
php5-recode \
|
php5-recode \
|
||||||
psmisc \
|
psmisc \
|
||||||
wamerican \
|
wamerican \
|
||||||
|
wget \
|
||||||
whois \
|
whois \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
|
Loading…
Reference in a new issue