Remove file extension from scripts

This commit is contained in:
Juan Carlos Mejías Rodríguez 2018-11-21 16:34:49 -05:00
parent 8893ced8d8
commit f8d35507e6
4 changed files with 6 additions and 6 deletions

View File

@ -20,6 +20,6 @@ RUN apk --update add \
rm -rf /tmp/src && \ rm -rf /tmp/src && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
COPY *.sh /usr/local/bin/ COPY deploy undeploy /usr/local/bin/
RUN chmod +x /usr/local/bin/* RUN chmod +x /usr/local/bin/*

View File

@ -18,7 +18,7 @@ Scripts were created for the latest Portainer API, which at the time of writing
## How to use ## 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_USER` (string): Username
- `PORTAINER_PASSWORD` (string): Password - `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`. - `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"`. - `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: 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 ```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: This script removes a stack. You must pass the stack name as argument:
```bash ```bash
./undeploy.sh mystack ./undeploy mystack
``` ```
## License ## License

View File