If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
# Pull base image. The official docker openjdk-8 image is used here. | |
FROM java:8-jdk | |
# Copy HiveMQ to container | |
COPY hivemq.zip /tmp/ | |
#Install wget and unzip, then download and install HiveMQ. | |
RUN \ | |
apt-get install -y wget unzip &&\ | |
unzip /tmp/hivemq.zip -d /opt/ &&\ |
If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
upstream rocketserver { | |
server 127.0.0.1:3000; | |
} | |
server { | |
server_name yourdomain.com; | |
error_log /var/log/nginx/rocketserver_error.log; | |
location / { |
FROM node:6-alpine | |
USER node | |
RUN mkdir /home/node/src | |
WORKDIR /home/node/src | |
COPY package.json . |
#!/bin/bash | |
cd /home/appuser/deploywebhook | |
#/home/appuser/.local/bin/pipenv run python main.py | |
echo -e "Ejecutando web service..." | |
/home/appuser/.local/bin/pipenv run gunicorn yourproject.wsgi --bind 127.0.0.1:8000 |
[Unit] | |
Description = servicio para aplicacion deploywebhook | |
[Service] | |
User=appuser | |
Group=appuser | |
ExecStart=/home/appuser/startapp.sh | |
Restart=always | |
RestartSec=5 | |
KillSignal=SIGQUIT |
#!/usr/bin/env bash | |
PATHGIT=$(pwd)/.git/ | |
if [[ ! -d $PATHGIT ]]; then | |
echo -e "This is not a Git repo. Run it on a git repo..." | |
exit 2; | |
else | |
curl --output $PATHGIT/hooks/checkenv.py https://gist.githubusercontent.com/Jaxmetalmax/14199d353855730568e88d2dfc0487c6/raw/18e8642439e71ea6e14e9827889fe37efd7319d8/checkenvfiles.py | |
curl --output $PATHGIT/hooks/pre-commit https://gist.githubusercontent.com/Jaxmetalmax/e2644337cbd76b9bee7b129a231f89cd/raw/80fb9d924a1dd457f49ac6b1561079f7efdae20f/precommit.sh |
#!/bin/bash | |
python $(pwd)/.git/hooks/checkenv.py | |
if [[ $? -ne 0 ]]; then | |
echo -e "Check you .env files..." | |
exit 2; | |
else | |
exit 0; | |
fi |
import os.path | |
listvars=[] | |
listexvars=[] | |
varsnotlisted=[] | |
my_path = os.path.abspath(os.path.dirname(__file__)) | |
filevar = os.path.join(my_path,"../../.env") | |
filevarex = os.path.join(my_path,"../../.env.example") |
I hereby claim:
To claim this, I am signing this object: