mirror of
https://github.com/PurpleI2P/pyseeder
synced 2025-01-30 16:44:16 +00:00
commit
cfd7ae4b9a
@ -16,6 +16,8 @@ RUN apk --no-cache add python3 py3-pip build-base git openssl-dev musl-dev pytho
|
|||||||
# 2. Adding required libraries to run i2pd to ensure it will run.
|
# 2. Adding required libraries to run i2pd to ensure it will run.
|
||||||
RUN apk --no-cache add python3 openssl
|
RUN apk --no-cache add python3 openssl
|
||||||
|
|
||||||
|
RUN mkdir /netDb
|
||||||
|
|
||||||
VOLUME "$DATA_DIR"
|
VOLUME "$DATA_DIR"
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
@ -12,11 +12,14 @@ else
|
|||||||
PRIVKEY_FILE="$DATA_DIR/data/private_key.pem"
|
PRIVKEY_FILE="$DATA_DIR/data/private_key.pem"
|
||||||
CERT_FILE=` echo $DATA_DIR/data/$SIGNER_ID.crt | sed 's/@/_at_/' `
|
CERT_FILE=` echo $DATA_DIR/data/$SIGNER_ID.crt | sed 's/@/_at_/' `
|
||||||
RESEED_FILE="$DATA_DIR/output/i2pseeds.su3"
|
RESEED_FILE="$DATA_DIR/output/i2pseeds.su3"
|
||||||
I2PD_DIR="/i2pd_data"
|
NETDB_DIR="/i2pd_data/netDb"
|
||||||
|
if [ ! -d $NETDB_DIR ]; then
|
||||||
|
NETDB_DIR="/netDb"
|
||||||
|
fi
|
||||||
|
|
||||||
$COMMAND keygen --signer-id $SIGNER_ID --no-encrypt \
|
$COMMAND keygen --signer-id $SIGNER_ID --no-encrypt \
|
||||||
--private-key $PRIVKEY_FILE --cert $CERT_FILE
|
--private-key $PRIVKEY_FILE --cert $CERT_FILE
|
||||||
$COMMAND reseed --netdb $I2PD_DIR/netDb --signer-id $SIGNER_ID --no-encrypt \
|
$COMMAND reseed --netdb $NETDB_DIR --signer-id $SIGNER_ID --no-encrypt \
|
||||||
--private-key $PRIVKEY_FILE --outfile $RESEED_FILE
|
--private-key $PRIVKEY_FILE --outfile $RESEED_FILE
|
||||||
$COMMAND serve --private-key $PRIVKEY_FILE --cert $CERT_FILE --file $RESEED_FILE
|
$COMMAND serve --private-key $PRIVKEY_FILE --cert $CERT_FILE --file $RESEED_FILE
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user