From f8d35507e6557c3d27d7710422c0c70a36c0913a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Wed, 21 Nov 2018 16:34:49 -0500 Subject: [PATCH] Remove file extension from scripts --- Dockerfile | 2 +- README.md | 10 +++++----- deploy.sh => deploy | 0 undeploy.sh => undeploy | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename deploy.sh => deploy (100%) rename undeploy.sh => undeploy (100%) diff --git a/Dockerfile b/Dockerfile index 3ef9ff2..12c9edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,6 @@ RUN apk --update add \ rm -rf /tmp/src && \ rm -rf /var/cache/apk/* -COPY *.sh /usr/local/bin/ +COPY deploy undeploy /usr/local/bin/ RUN chmod +x /usr/local/bin/* diff --git a/README.md b/README.md index 8622d7e..7db4b3d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Scripts were created for the latest Portainer API, which at the time of writing ## How to use -Two scripts are included: `deploy.sh` and `undeploy.sh`. Both scripts use the following environment variables to connect to the portainer instance: +Two scripts are included: `deploy` and `undeploy`. Both scripts use the following environment variables to connect to the portainer instance: - `PORTAINER_USER` (string): Username - `PORTAINER_PASSWORD` (string): Password @@ -27,20 +27,20 @@ Two scripts are included: `deploy.sh` and `undeploy.sh`. Both scripts use the fo - `PORTAINER_ENDPOINT` (int): Which endpoint to use. Defaults to `1`. - `HTTPIE_VERIFY_SSL` ("yes" or "no"): Whether to verify SSL certificate or not. Defaults to `"yes"`. -### deploy.sh +### deploy This script deploys a stack. The stack is created if it does not exist, otherwise it is updated. You must pass the stack name and the path to the docker-compose file as arguments: ```bash -./deploy.sh mystack docker-compose.yml +./deploy mystack docker-compose.yml ``` -### undeploy.sh +### undeploy This script removes a stack. You must pass the stack name as argument: ```bash -./undeploy.sh mystack +./undeploy mystack ``` ## License diff --git a/deploy.sh b/deploy similarity index 100% rename from deploy.sh rename to deploy diff --git a/undeploy.sh b/undeploy similarity index 100% rename from undeploy.sh rename to undeploy