# docker-entrypoint **Repository Path**: liwen_test_sync_group/docker-entrypoint ## Basic Information - **Project Name**: docker-entrypoint - **Description**: Python script to verify required variables before continuing to startup for Drone plugins - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-11 - **Last Updated**: 2025-07-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docker-entrypoint Python script to verify required variables before continuing to startup for Drone plugins. ## Description This script can be used as a `ENTRYPOINT` for a Drone plugin to verify the required variables for the plugin to work. It will also remove the make avaialbe the variable without the `PLUGIN_` prefix. There are three different types of variables: * `required_vars` All variables listed here are required. If not provided it will exit with `1`. * `optional_vars` Any variable that is not required, but may be needed for debug purposes. * `secret_vars` Variables listed in the `required_vars` or `optional_vars` list that won't be printed when `DEBUG` is set to `True`. The only Python requirement is the `yaml` module. ## Example Dockerfile ``` FROM alpine:latest # Install required packages RUN apk --no-cache add python py-yaml COPY entrypoint.yaml / COPY docker-entrypoint.py / COPY startup.sh / RUN chmod +x /startup.sh RUN chmod +x /docker-entrypoint.py ENTRYPOINT ["/docker-entrypoint.py"] CMD ["/startup.sh"] ```