add some of server (diesel, eventlet, gevent, paste, twisted, waitress, wsgiref) in some os
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
FROM python:2.7
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y unzip wget
|
||||
|
||||
@@ -8,7 +10,7 @@ RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
rm -rf /web2py/applications/examples && \
|
||||
cd /web2py && \
|
||||
openssl genrsa 1024 > web2py.key && chmod 400 web2py.key && \
|
||||
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=c/ST=st/L=l/O=o/OU=ou/CN=cn.com' -key web2py.key > web2py.crt && \
|
||||
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=ID/ST=Jakarta/L=Jakarta/O=stifix/OU=IT/CN=stifix.com' -key web2py.key > web2py.crt && \
|
||||
openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info && \
|
||||
chmod 755 -R /web2py
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/App/web2py-rocket-ssl
|
||||
docker build -t username/app-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name app-web2py-rocket-ssl username/app-web2py-rocket-ssl
|
||||
docker build -t your_username/app-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name app-web2py-rocket-ssl your_username/app-web2py-rocket-ssl
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/App/web2py-rocket-ssl
|
||||
docker login -u username
|
||||
docker build -t username/app-web2py-rocket-ssl .
|
||||
docker push username/app-web2py-rocket-ssl
|
||||
docker login -u your_username
|
||||
docker build -t your_username/app-web2py-rocket-ssl .
|
||||
docker push your_username/app-web2py-rocket-ssl
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/app-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name app-web2py-rocket-ssl username/app-web2py-rocket-ssl
|
||||
docker build -t your_username/app-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name app-web2py-rocket-ssl your_username/app-web2py-rocket-ssl
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
Reference in New Issue
Block a user