Last active
June 23, 2021 02:59
-
-
Save reedip/afc38dce9f06095b2061343e0f9bc067 to your computer and use it in GitHub Desktop.
query-exporter to be deployed
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 openstack-base:0.0.1-3 AS compile-image | |
RUN yum install -y git epel-release && yum clean all | |
RUN yum install -y python3-virtualenv | |
RUN virtualenv-3 /opt/openstack | |
ENV PATH="/opt/openstack/bin:$PATH" | |
RUN yum install -y python3 gcc gcc-c++ python3-pip python3-devel | |
RUN yum install -y mariadb-devel libpq-devel && \ | |
yum install -y unixODBC \ | |
yum install -y unixODBC-devel && yum install -y bash | |
RUN yum install -y bash mariadb-devel libpq-devel | |
RUN pip3 install aiohttp PyMySQL | |
RUN pip3 install mysqlclient pyodbc query-exporter | |
FROM openstack-base:0.0.1-3 AS build-image | |
COPY --from=compile-image /opt/openstack /opt/openstack | |
COPY --from=compile-image /bin /opt/openstack/bin | |
COPY --from=compile-image /usr/lib64 /usr/lib64 | |
ENV PATH="/opt/openstack/bin:$PATH" | |
EXPOSE 9560/tcp | |
ENTRYPOINT ["/opt/openstack/bin/query-exporter"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment