Last active
January 1, 2025 21:23
-
-
Save cometaj2/adf8cd72697ace88053848b74299b3f5 to your computer and use it in GitHub Desktop.
jsonf (port 80) and hco (port 9000) hcli examples in docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.11-alpine3.16 | |
EXPOSE 80 | |
EXPOSE 9000 | |
RUN pip install --upgrade pip | |
RUN pip install hcli_core | |
RUN pip install gunicorn | |
RUN echo -e "[config]\n\ | |
core.auth = False\n\ | |
mgmt.port = 9000\n\ | |
[default]\n\ | |
username = admin\n\ | |
password = *\n\ | |
salt = *" > /test_credentials && \ | |
chmod 600 /test_credentials | |
CMD gunicorn --workers=5 --threads=5 -b 0.0.0.0:80 -b 0.0.0.0:9000 "hcli_core:connector(config_path=\"/test_credentials\")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment