Fix minor PyCharm issues

This commit is contained in:
Ayaz Salikhov
2022-03-18 23:29:14 +02:00
parent aa14e4498c
commit bcf5118cb7
23 changed files with 56 additions and 54 deletions

View File

@@ -43,7 +43,7 @@ For example, you can build and deploy a `jupyter/all-spark-notebook` by modifyin
```dockerfile
FROM jupyter/all-spark-notebook:b418b67c225b
...
# Your RUN commands and so on
```
Once you modify the Dockerfile, don't forget to rebuild the image.
@@ -135,8 +135,8 @@ FQDN=host.mydomain.com EMAIL=myemail@somewhere.com \
bin/letsencrypt.sh
```
Also, be aware that Let's Encrypt certificates are short lived (90 days).
If you need them for a longer period of time, you'll need to manually setup a cron job to run the renewal steps.
Also, be aware that Let's Encrypt certificates are short-lived (90 days).
If you need them for a longer period of time, you'll need to manually set up a cron job to run the renewal steps.
(You can reuse the command above.)
### Can I deploy to any Docker Machine host?

View File

@@ -9,11 +9,11 @@ set -e
# Get domain and email from environment
[ -z "${FQDN}" ] && \
echo "ERROR: Must set FQDN environment varable" && \
echo "ERROR: Must set FQDN environment variable" && \
exit 1
[ -z "${EMAIL}" ] && \
echo "ERROR: Must set EMAIL environment varable" && \
echo "ERROR: Must set EMAIL environment variable" && \
exit 1
# letsencrypt certificate server type (default is production).

View File

@@ -15,7 +15,7 @@ MACHINE_NAME="${1}" && [ -z "${MACHINE_NAME}" ] && echo "${USAGE}" && exit ${E_B
# Use SOFTLAYER_DOMAIN env var if domain name not set as second arg
DOMAIN="${2:-$SOFTLAYER_DOMAIN}" && [ -z "${DOMAIN}" ] && \
echo "Must specify domain or set SOFTLAYER_DOMAIN environment varable" && \
echo "Must specify domain or set SOFTLAYER_DOMAIN environment variable" && \
echo "${USAGE}" && exit ${E_BADARGS}
IP=$(docker-machine ip "${MACHINE_NAME}")