This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dab939
commit 7833ae6
Showing
16 changed files
with
77 additions
and
77 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,30 @@ FROM centos:7 | |
LABEL maintainer "Devtools <[email protected]>" | ||
LABEL author "Konrad Kleine <[email protected]>" | ||
ENV LANG=en_US.utf8 | ||
ENV F8_INSTALL_PREFIX=/usr/local/auth | ||
ENV AUTH_INSTALL_PREFIX=/usr/local/auth | ||
|
||
# Create a non-root user and a group with the same name: "auth" | ||
ENV F8_USER_NAME=auth | ||
RUN useradd --no-create-home -s /bin/bash ${F8_USER_NAME} | ||
ENV AUTH_USER_NAME=auth | ||
RUN useradd --no-create-home -s /bin/bash ${AUTH_USER_NAME} | ||
|
||
COPY bin/auth ${F8_INSTALL_PREFIX}/bin/auth | ||
COPY config.yaml ${F8_INSTALL_PREFIX}/etc/config.yaml | ||
COPY bin/auth ${AUTH_INSTALL_PREFIX}/bin/auth | ||
COPY config.yaml ${AUTH_INSTALL_PREFIX}/etc/config.yaml | ||
|
||
# Install little pcp pmcd server for metrics collection | ||
# would prefer only pmcd, and not the /bin/pm*tools etc. | ||
COPY pcp.repo /etc/yum.repos.d/pcp.repo | ||
RUN yum install -y pcp && yum clean all && \ | ||
mkdir -p /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \ | ||
chown -R ${F8_USER_NAME} /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \ | ||
chown -R ${AUTH_USER_NAME} /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \ | ||
chmod -R ug+rw /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp | ||
COPY ./auth+pmcd.sh /auth+pmcd.sh | ||
EXPOSE 44321 | ||
|
||
|
||
# From here onwards, any RUN, CMD, or ENTRYPOINT will be run under the following user | ||
USER ${F8_USER_NAME} | ||
USER ${AUTH_USER_NAME} | ||
|
||
WORKDIR ${F8_INSTALL_PREFIX} | ||
WORKDIR ${AUTH_INSTALL_PREFIX} | ||
ENTRYPOINT [ "/auth+pmcd.sh" ] | ||
|
||
EXPOSE 8089 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.